google / google/ExoPlayer

DASH: Keep paused buffered data even if period is removed

Open
#7,081 2 comments 0 reactions 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

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

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.