@UnstableApi
public final class CueDecoder


Decodes data encoded by CueEncoder.

Summary

Public constructors

Public methods

CuesWithTiming
decode(long startTimeUs, byte[] bytes)

Decodes a byte array into a CuesWithTiming instance.

CuesWithTiming
decode(long startTimeUs, byte[] bytes, int offset, int length)

Decodes a byte array into a CuesWithTiming instance.

Public constructors

CueDecoder

public CueDecoder()

Public methods

decode

public CuesWithTiming decode(long startTimeUs, byte[] bytes)

Decodes a byte array into a CuesWithTiming instance.

Parameters
long startTimeUs

The value for startTimeUs (this is not encoded in bytes).

byte[] bytes

Byte array produced by encode

Returns
CuesWithTiming

Decoded CuesWithTiming instance.

decode

public CuesWithTiming decode(long startTimeUs, byte[] bytes, int offset, int length)

Decodes a byte array into a CuesWithTiming instance.

Parameters
long startTimeUs

The value for startTimeUs (this is not encoded in bytes).

byte[] bytes

Byte array containing data produced by encode

int offset

The start index of cue data in bytes.

int length

The length of cue data in bytes.

Returns
CuesWithTiming

Decoded CuesWithTiming instance.