docs/doc/reference/com/google/android/exoplayer2/text/CueEncoder.html
Package com.google.android.exoplayer2.text
[@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.
Constructors | Constructor | Description |
| --- | --- |
| CueEncoder() |
Deprecated.
|
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.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public CueEncoder()
Deprecated.
-
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.