DASH: Keep paused buffered data even if period is removed
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I'm playing dynamic DASH with multi-period. Is there a way to prevent ExoPlayer from jumping to the live edge while it's in paused state? The playback position jumps to the live-edge when MPD is updated.
Our expected behaviour is that when it's paused, the video screen remains the same even if the playback position gets out of the current period.
It seems that there are at least two places in the code that trigger the jumps. One is onInputFormatChanged() in MediaCodecRenderer, and the other one is https://github.com/google/ExoPlayer/blob/76962d50f1d80941d6768e4e765fa4ff010705e7/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java#L503 in ExoPlayerImplInternal.
Is there an opinionated way to configure the player so it stops updating MPD when the player is paused and the playback position is out of the current period?
We're using ExoPlayer 2.9.4.
Contributor guide
Assessment
This issue has not been assessed yet.