diff --git a/RELEASENOTES.md b/RELEASENOTES.md index c7bb21f239..98e8659397 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -33,6 +33,8 @@ * `SubtitleView` no longer implements `TextOutput`. `SubtitleView` implements `Player.Listener`, so can be registered to a player with `Player.addListener`. + * Fix initial timestamp display in `PlayerControlView` + ([#9524](https://github.com/google/ExoPlayer/issues/9254)). * Extractors: * MP4: Correctly handle HEVC tracks with pixel aspect ratios other than 1. * TS: Correctly handle HEVC tracks with pixel aspect ratios other than 1. diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java index 9ebefcdcda..fad7753e17 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java @@ -508,6 +508,9 @@ public class PlayerControlView extends FrameLayout { shuffleOnContentDescription = resources.getString(R.string.exo_controls_shuffle_on_description); shuffleOffContentDescription = resources.getString(R.string.exo_controls_shuffle_off_description); + + currentPosition = C.TIME_UNSET; + currentBufferedPosition = C.TIME_UNSET; } /**