Constructor
new AAC()
- Source:
- See:
-
- ISO/IEC 14496-3 (AudioSpecificConfig)
- ISO/IEC 14496-1 (descriptors)
Members
OBJECT_TYPE_LC_ :number
Audio object types of MPEG-4 Audio: AAC LC and HE-AAC (with SBR); 31 is the
escape value.
Type:
- number
- Source:
OBJECT_TYPE_MPEG4_AUDIO_ :number
objectTypeIndication of MPEG-4 Audio (ISO/IEC 14496-3).
Type:
- number
- Source:
SL_PREDEFINED_MP4_ :number
The SL config predefined value reserved for use in MP4 files.
Type:
- number
- Source:
STREAM_TYPE_AUDIO_ :number
streamType 5 (audio) shifted into the top six bits, plus the reserved bit
that is always set.
Type:
- number
- Source:
TAG_ES_ :number
Tags of the MPEG-4 descriptors that make up an esds box.
Type:
- number
- Source:
Methods
buildEsds(decoderConfignon-null, objectTypeIndicationopt) → {Uint8Array}
Builds the payload of the esds box around the decoder configuration.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
decoderConfig |
Uint8Array | The AudioSpecificConfig of AAC. Codecs that need no configuration (MPEG audio) give it empty. | |
objectTypeIndication |
number |
<optional> |
The codec that the stream has. |
- Source:
Returns:
- Type
- Uint8Array
descriptor_(tag, …payloadnon-null) → {Uint8Array}
Builds an MPEG-4 descriptor: a tag, a length and the payload.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
tag |
number | ||
payload |
Uint8Array |
<repeatable> |
- Source:
Returns:
- Type
- Uint8Array
getCodecs(audioSpecificConfignon-null, sampleRateopt, nullable, outputSampleRateopt, nullable) → {string}
Gets the RFC 6381 codec string of an AAC stream.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
audioSpecificConfig |
Uint8Array | ||
sampleRate |
number |
<optional> <nullable> |
The sample rate of the AAC core. |
outputSampleRate |
number |
<optional> <nullable> |
The sample rate of the output, which is twice the core's when HE-AAC is signaled implicitly. |
- Source:
Returns:
- Type
- string