I've been working with JWPlayer API and I want to get download video bitrate and current buffer level in seconds for dash content. I use the following functions:
var qualityLevels = jwplayer().getQualityLevels()
var visualQuality = jwplayer().getVisualQuality();
var currentQuality = jwplayer().getCurrentQuality();
visualBitrate = qualityLevels[currentQuality].bitrate;
console.log("visualBitrate = ", visualBitrate);
But 'currentQuality' is always equals 0 and 'visualBitrate' = undefined. getCurrentQuality() should returns the index of the currently active quality level. Moreover qualityLevels = jwplayer().getQualityLevels() doen't have property 'bitrate'.
qualityLevels includes only: contentType, label and level_id
How can I get <download video bitrate value> and <current buffer level value> using JW Player API? What is wrong?