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 7035372b32..24dbde6a72 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 @@ -343,8 +343,8 @@ public class PlayerControlView extends FrameLayout { private long[] extraAdGroupTimesMs; private boolean[] extraPlayedAdGroups; private long currentWindowOffset; - private long currentPosition; - private long currentBufferedPosition; + private long currentPosition = C.POSITION_UNSET; + private long currentBufferedPosition = C.POSITION_UNSET; public PlayerControlView(Context context) { this(context, /* attrs= */ null);