Quantcast
Viewing all articles
Browse latest Browse all 2800

Quality metrics

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: setInterval(updateStats, 500); function updateStats(){ 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 and using JW Player API? What is wrong? Thank you!

Viewing all articles
Browse latest Browse all 2800

Trending Articles