mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Deprecate ExoPlayer TextComponent.
PiperOrigin-RevId: 391077147
This commit is contained in:
parent
ef0bfa487f
commit
d58e8df252
1 changed files with 12 additions and 3 deletions
|
|
@ -382,10 +382,15 @@ public interface ExoPlayer extends Player {
|
|||
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 {
|
||||
|
||||
/** Returns the current {@link Cue Cues}. This list may be empty. */
|
||||
/** @deprecated Use {@link Player#getCurrentCues()} instead. */
|
||||
@Deprecated
|
||||
List<Cue> getCurrentCues();
|
||||
}
|
||||
|
||||
|
|
@ -950,8 +955,12 @@ public interface ExoPlayer extends Player {
|
|||
@Nullable
|
||||
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
|
||||
@Deprecated
|
||||
TextComponent getTextComponent();
|
||||
|
||||
/** Returns the component of this player for playback device, or null if it's not supported. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue