Commit d58e8df2 by samrobinson Committed by Oliver Woodman

Deprecate ExoPlayer TextComponent.

PiperOrigin-RevId: 391077147
parent ef0bfa48
...@@ -382,10 +382,15 @@ public interface ExoPlayer extends Player { ...@@ -382,10 +382,15 @@ public interface ExoPlayer extends Player {
VideoSize getVideoSize(); VideoSize getVideoSize();
} }
/** The text component of an {@link ExoPlayer}. */ /**
* @deprecated Use {@link Player} instead, as the {@link TextComponent} methods are a part of the
* {@link Player interface}.
*/
@Deprecated
interface TextComponent { interface TextComponent {
/** Returns the current {@link Cue Cues}. This list may be empty. */ /** @deprecated Use {@link Player#getCurrentCues()} instead. */
@Deprecated
List<Cue> getCurrentCues(); List<Cue> getCurrentCues();
} }
...@@ -950,8 +955,12 @@ public interface ExoPlayer extends Player { ...@@ -950,8 +955,12 @@ public interface ExoPlayer extends Player {
@Nullable @Nullable
VideoComponent getVideoComponent(); VideoComponent getVideoComponent();
/** Returns the component of this player for text output, or null if text is not supported. */ /**
* @deprecated Use {@link Player} instead, as the {@link TextComponent} methods are a part of the
* {@link Player interface}.
*/
@Nullable @Nullable
@Deprecated
TextComponent getTextComponent(); TextComponent getTextComponent();
/** Returns the component of this player for playback device, or null if it's not supported. */ /** Returns the component of this player for playback device, or null if it's not supported. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment