diff --git a/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerControlView.java b/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerControlView.java index ab954343cc..adecd7df5c 100644 --- a/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerControlView.java +++ b/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerControlView.java @@ -561,13 +561,10 @@ public class LegacyPlayerControlView extends FrameLayout { } /** - * Sets whether the time bar should show all windows, as opposed to just the current one. If the - * timeline has a period with unknown duration or more than {@link - * #MAX_WINDOWS_FOR_MULTI_WINDOW_TIME_BAR} windows the time bar will fall back to showing a single - * window. - * - * @param showMultiWindowTimeBar Whether the time bar should show all windows. + * @deprecated Replace multi-window time bar display by merging source windows together instead, + * for example using ExoPlayer's {@code ConcatenatingMediaSource2}. */ + @Deprecated public void setShowMultiWindowTimeBar(boolean showMultiWindowTimeBar) { this.showMultiWindowTimeBar = showMultiWindowTimeBar; updateTimeline(); diff --git a/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java b/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java index c8424ca82e..81f90398a3 100644 --- a/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java +++ b/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java @@ -663,13 +663,10 @@ public class PlayerControlView extends FrameLayout { } /** - * Sets whether the time bar should show all windows, as opposed to just the current one. If the - * timeline has a period with unknown duration or more than {@link - * #MAX_WINDOWS_FOR_MULTI_WINDOW_TIME_BAR} windows the time bar will fall back to showing a single - * window. - * - * @param showMultiWindowTimeBar Whether the time bar should show all windows. + * @deprecated Replace multi-window time bar display by merging source windows together instead, + * for example using ExoPlayer's {@code ConcatenatingMediaSource2}. */ + @Deprecated public void setShowMultiWindowTimeBar(boolean showMultiWindowTimeBar) { this.showMultiWindowTimeBar = showMultiWindowTimeBar; updateTimeline(); diff --git a/libraries/ui/src/main/java/androidx/media3/ui/PlayerView.java b/libraries/ui/src/main/java/androidx/media3/ui/PlayerView.java index 0c726e4eaa..0c8be97f38 100644 --- a/libraries/ui/src/main/java/androidx/media3/ui/PlayerView.java +++ b/libraries/ui/src/main/java/androidx/media3/ui/PlayerView.java @@ -1113,10 +1113,11 @@ public class PlayerView extends FrameLayout implements AdViewProvider { } /** - * Sets whether the time bar should show all windows, as opposed to just the current one. - * - * @param showMultiWindowTimeBar Whether to show all windows. + * @deprecated Replace multi-window time bar display by merging source windows together instead, + * for example using ExoPlayer's {@code ConcatenatingMediaSource2}. */ + @SuppressWarnings("deprecation") // Forwarding to deprecated method. + @Deprecated @UnstableApi public void setShowMultiWindowTimeBar(boolean showMultiWindowTimeBar) { Assertions.checkStateNotNull(controller);