google / google/ExoPlayer

Support pausing at a frame-accurate position

Open
#5,660 16 comments 1 reaction 1 assignee Claimed by @tonihei View on GitHub
enhancement low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hello, I have a question to consult
My English is not very good, please forgive me

I will be more MediaSource add ConcatenatingMediaSource ,
I want to listen CurrentWindowIndex to finish playing

```
@Override
public void onLoadingChanged(boolean isLoading) {
int curTime = (int) (player.getCurrentPosition() );
int time = (int) (player.getBufferedPosition() );
System.out.println("播放: onLoadingChanged " + curTime + "--->" + time);
if (time != 0 && curTime == time) {
player.setPlayWhenReady(false);
}
}
}
```
I can't do it that way

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.