Back to Exoplayer

TextOutput (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/text/TextOutput.html

latest2.4 KB
Original Source

Package com.google.android.exoplayer2.text

Interface TextOutput


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceTextOutput

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Receives text output.

Method Summary

All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | onCues​(CueGroup cueGroup) | Deprecated.

Called when there is a change in the CueGroup. | | default void | onCues​(List<Cue> cues) | Deprecated. Use onCues(CueGroup) instead.

|

Method Detail

- 

onCues

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")default void onCues​([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Cue](Cue.html "class in com.google.android.exoplayer2.text")> cues)

Deprecated. Use onCues(CueGroup) instead.

Called when there is a change in the Cues.

Both onCues(List) and onCues(CueGroup) are called when there is a change in the cues. You should only implement one or the other.

- 

onCues

void onCues​([CueGroup](CueGroup.html "class in com.google.android.exoplayer2.text")cueGroup)

Deprecated.

Called when there is a change in the CueGroup.

Both onCues(List) and onCues(CueGroup) are called when there is a change in the cues. You should only implement one or the other.