Class: shaka.transmuxer.ADTS
Constructor
new ADTS()
- Source:
Members
AAC_SAMPLES_PER_FRAME :number
Type:
- 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
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
Parameters:
Name |
Type |
Description |
data |
Uint8Array
|
|
offset |
number
|
|
- Source:
Returns:
-
Type
-
boolean
Parameters:
Name |
Type |
Description |
data |
Uint8Array
|
|
offset |
number
|
|
- Source:
Returns:
-
Type
-
boolean
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