Class: shaka.transmuxer.ADTS

Constructor

new ADTS()

Source:

Members

AAC_SAMPLES_PER_FRAME :number

Type:
  • number
Source:

Methods

getFrameDuration(sampleratenon-null) → {number}

Parameters:
Name Type Description
samplerate number
Source:
Returns:
Type
number

getFullFrameLength(datanon-null, offsetnon-null) → {number}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
number

getHeaderLength(datanon-null, offsetnon-null) → {number}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
number

getSilentFrame(codec, channelCount) → {Uint8Array}

Parameters:
Name Type Description
codec string
channelCount number
Source:
Returns:
Type
Uint8Array

isHeader(datanon-null, offsetnon-null) → {boolean}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
boolean

isHeaderPattern(datanon-null, offsetnon-null) → {boolean}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
boolean

parseHeader(datanon-null, offsetnon-null) → {?{headerLength: number, frameLength: number}}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
?{headerLength: number, frameLength: number}

parseInfo(datanon-null, offsetnon-null) → {?{sampleRate: number, channelCount: number, codec: string}}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
?{sampleRate: number, channelCount: number, codec: string}

probe(datanon-null, offsetnon-null) → {boolean}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
boolean