getVideoBitrate
Description
Returns the bitrate of the video 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 video bitrate for the Period that is currently playing.
In DirectFile mode (see loadVideo options),
this method returns "undefined".
Syntax
const bitrate = player.getVideoBitrate();
- return value
number|undefined
: Bitrate of the current video quality chosen.undefined
if none is chosen yet.