@UnstableApi
public final class CueEncoder


Encodes data that can be decoded by CueDecoder.

Summary

Public constructors

Public methods

byte[]
encode(List<Cue> cues, long durationUs)

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

Public constructors

CueEncoder

public CueEncoder()

Public methods

encode

public byte[] encode(List<Cue> cues, long durationUs)

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

Parameters
List<Cue> cues

Cues to be encoded.

long durationUs

Duration to be encoded, in microseconds.

Returns
byte[]

The serialized byte array.