Audio Codec hint.
Default: undefined
Audio Codec hint.
Default: undefined
Visual Basic |
---|
Public Property defaultAudioCodec As String |
If audio Codec is not signaled in variant manifest, or if only a stream manifest is provided, hls.js tries to guess audio Codec by parsing audio sampling rate in ADTS header. If sampling rate is less or equal than 22050 Hz, then hls.js assumes it is HE-AAC, otherwise it assumes it is AAC-LC. This could result in bad guess, leading to audio decode error, ending up in media error. It is possible to hint default audiocodec to hls.js by configuring this value as below: