-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClippedMediaSource ends sooner than expected when using REPEAT_MODE_ALL or ConcatenatingMediaSource #4583
Comments
Thanks for reporting! We'll provide a fix for that. |
Great! Is there any time estimate for that fix? Also, if you could provide some guidance I am happy to try to solve it. Thanks for your attention. |
Debugging ExoPlayer it seems like the next media period preparation finishes before the actual period playback. Then the next period playback starts when the preparation finishes, skipping the last ms of the first period. However, I am not sure how to proceed to fix it. |
The fix should be pushed to the development branch soon. |
Period transitions with non-zero start position happen too early as the playing period is advanced as soon as the renderer offset is reached not taking into account that the start position needs to be added to that. Issue:#4583 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206310328
The commit did the job, thanks for the great work! |
Issue description
Clipped video playback ends sooner than expected when repeat mode is Player.REPEAT_MODE_ALL or when it is combined with other clips using ConcatenatingMediaSource.
Reproduction steps
Setup a simple ExoPlayer instance:
Logging player.currentPosition
With
Player.REPEAT_MODE_OFF
orplayer.prepare(clippingMediaSource)
PlayerPresenter: 0
PlayerPresenter: 14
PlayerPresenter: 14
PlayerPresenter: 14
PlayerPresenter: 14
...
PlayerPresenter: 686
PlayerPresenter: 706
PlayerPresenter: 706
With
Player.REPEAT_MODE_ALL
orplayer.prepare(concatenatingMediaSource)
PlayerPresenter: 14
PlayerPresenter: 14
...
PlayerPresenter: 400
PlayerPresenter: 400
PlayerPresenter: 400
PlayerPresenter: -300
PlayerPresenter: -300
PlayerPresenter: -300
PlayerPresenter: -300
Link to test content
I was able to reproduce this issue with any local mp4.
Version of ExoPlayer being used
2.8.2
Device(s) and version(s) of Android being used
However it doesn't seem to be a device specific issue.
The text was updated successfully, but these errors were encountered: