mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / HLSSettings Object / defaultAudioCodec Property
In This Topic
    defaultAudioCodec Property
    In This Topic
    Description

    Audio Codec hint.

    Default: undefined

    Property type
    Read-write property
    Syntax
    Visual Basic
    Public Property defaultAudioCodec As String
    Remarks

    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:

    • mp4a.40.2 (AAC-LC)
    • p4a.40.5 (HE-AAC)
    • undefined (guess based on sampling rate)
    See Also