Closed Romantic-LiXuefeng closed 5 years ago
@ojw28 Did you already had the time to look into this issue? Is there anything I can do to support you?
Reproducible on the latest development branch.
Thanks for reporting. We'll provide a fix for this soon.
The commit above fixes the issue.
@tonihei thanks! Hope to give me some information about how was this bug generated?
@ojw28 I find that when the player plays the first clip video ,press home button, then resume to play,there is no this bug. Hope you give me some explanation.
The bug occurred because the player creates the element at which playback starts with a default position of zero until we know more. In your case, this default position was non-zero (because of the clipping) and we forgot to set the right offset at one point.
Not sure why you don't see the bug with the first video? I was able to reproduce the issue with the first and the second video in a concatenation.
ExoPlayer version: v2.8.4 The sample code is :
I use a ClippingMediaSource to split one video into two video at point 15s, then concatenate them. When the player begins to play the second video, I pressed home button, then resume to play, I find that the TimeBar's current position is negative. The logs like this: