Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TrackSelection does not arbitrarily jumb to live
This is a fix for issue google#9347 Once the MaskingMediaPeriod completes `prepare()` (when the masked HlsMediaPeriod reports the first real Timeline with a duration and window start position) and the `preparePositionUs` is used by the player in the `onPrepared()` callback to set the render position it should not use it again. The bug is a track selection causes a jump to live if you are at position 0 in the timeline, even after playback was started from the live point (the prepare position override). # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Thu Sep 2 11:30:31 2021 -0700 # # On branch p-fix-exo-issue-9347 # Changes to be committed: # modified: library/core/src/main/java/com/google/android/exoplayer2/source/MaskingMediaPeriod.java # modified: library/core/src/main/java/com/google/android/exoplayer2/source/MaskingMediaSource.java # # Untracked files: # validation_data.json #
- Loading branch information