@UnstableApi
class CueDecoder


Decodes data encoded by CueEncoder.

Summary

Public constructors

Public functions

CuesWithTiming!
decode(startTimeUs: Long, bytes: ByteArray!)

Decodes a byte array into a CuesWithTiming instance.

CuesWithTiming!
decode(startTimeUs: Long, bytes: ByteArray!, offset: Int, length: Int)

Decodes a byte array into a CuesWithTiming instance.

Public constructors

CueDecoder

CueDecoder()

Public functions

decode

fun decode(startTimeUs: Long, bytes: ByteArray!): CuesWithTiming!

Decodes a byte array into a CuesWithTiming instance.

Parameters
startTimeUs: Long

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

bytes: ByteArray!

Byte array produced by encode

Returns
CuesWithTiming!

Decoded CuesWithTiming instance.

decode

fun decode(startTimeUs: Long, bytes: ByteArray!, offset: Int, length: Int): CuesWithTiming!

Decodes a byte array into a CuesWithTiming instance.

Parameters
startTimeUs: Long

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

bytes: ByteArray!

Byte array containing data produced by encode

offset: Int

The start index of cue data in bytes.

length: Int

The length of cue data in bytes.

Returns
CuesWithTiming!

Decoded CuesWithTiming instance.