Deprecate ExoPlayer TextComponent.

PiperOrigin-RevId: 391077147
This commit is contained in:
samrobinson 2021-08-16 18:21:02 +01:00 committed by Oliver Woodman
parent ef0bfa487f
commit d58e8df252

View File

@ -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 {
@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. */