You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use concatenatingMediaSource to play my video list seamlessly. But recently I need to pause video when current video reaches to end before playing next video. I paused the video in the onPositionDiscontinuity callback, but the first frame of next video occurred. I also tryed to stop decode thread in the method "canKeepCodec" in MediaCodecVideoRenderer, but still didn't satisfy my need.
Should I custom a new MediaSource?
The text was updated successfully, but these errors were encountered:
That's a duplicate of #5660. In short, you need to send a message which pauses the player at the end of the playback. But sending messages is not precise enough by default to do that in the right moment. So the linked enhancement is to allow sending precise messages for cases where playback needs to be interrupted at a precise playback position.
Yes, that's one way to work around that. Unfortunately, you won't get the automatic prebuffering in this case and buffering will only start when you seek.
I use concatenatingMediaSource to play my video list seamlessly. But recently I need to pause video when current video reaches to end before playing next video. I paused the video in the onPositionDiscontinuity callback, but the first frame of next video occurred. I also tryed to stop decode thread in the method "canKeepCodec" in MediaCodecVideoRenderer, but still didn't satisfy my need.
Should I custom a new MediaSource?
The text was updated successfully, but these errors were encountered: