@UnstableApi
class CueEncoder


Encodes data that can be decoded by CueDecoder.

Summary

Public constructors

Public functions

ByteArray<Byte>!
encode(cues: (Mutable)List<Cue!>!, durationUs: Long)

Encodes a Cue list and duration to a byte array that can be decoded by decode.

Public constructors

CueEncoder

CueEncoder()

Public functions

encode

fun encode(cues: (Mutable)List<Cue!>!, durationUs: Long): ByteArray<Byte>!

Encodes a Cue list and duration to a byte array that can be decoded by decode.

Parameters
cues: (Mutable)List<Cue!>!

Cues to be encoded.

durationUs: Long

Duration to be encoded, in microseconds.

Returns
ByteArray<Byte>!

The serialized byte array.