Class CueEncoder


  • @Deprecated
    public final class CueEncoder
    extends Object
    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 Detail

      • CueEncoder

        public CueEncoder()
        Deprecated.
    • Method Detail

      • encode

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