Back to Exoplayer

CueEncoder (ExoPlayer library)

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

latest2.6 KB
Original Source

Package com.google.android.exoplayer2.text

Class CueEncoder


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

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.

Encodes data that can be decoded by CueDecoder.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | CueEncoder() | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | byte[] | encode​(List<Cue> cues) | Deprecated.

Encodes an List of Cue to a byte array that can be decoded by CueDecoder. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

CueEncoder

public CueEncoder()

Deprecated.

Method Detail

- 

encode

public byte[] encode​([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.

Encodes an List of Cue to a byte array that can be decoded by CueDecoder. Parameters:cues - Cues to be encoded.Returns:The serialized byte array.