getAudioBitrate
Description
Returns the bitrate of the audio quality currently chosen, in bits per second.
Returns undefined
if no content is loaded.
Note for multi-Period contents:
This method will only return the chosen audio bitrate for the Period that is currently playing.
In DirectFile mode (see loadVideo options),
this method returns "undefined".
Syntax
const bitrate = player.getAudioBitrate();
- return value
number|undefined
: Bitrate of the current audio quality chosen.undefined
if none is chosen yet.