Class: shaka.transmuxer.MpegAudio

Constructor

new MpegAudio()

Source:
See:

Members

BITRATES_MAP_ :Array.<number>

Type:
  • Array.<number>
Source:

BYTES_IN_SLOT_ :Array.<number>

Type:
  • Array.<number>
Source:

MPEG_AUDIO_SAMPLE_PER_FRAME :number

Type:
  • number
Source:

SAMPLES_COEFFICIENTS_ :Array.<!Array.<number>>

Type:
  • Array.<!Array.<number>>
Source:

SAMPLINGRATE_MAP_ :Array.<number>

Type:
  • Array.<number>
Source:

Methods

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) → {?{sampleRate: number, channelCount: number,frameLength: number, samplesPerFrame: number}}

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

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

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