Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

API 'onMeta' check bandwidth? kbps?


I am trying to capture the used "bandwidth/network data" via JavaScript API 'onMeta', see your demo page has output the 'kbps' info, but trying on my site, only output the bandwidth info.

Can using the bandwidth to calculate the 'used network data'?? & can I know the unit of bandwidth. I am now using player version 6.9.

Coding Below:
var player = jwplayer("video_player").setup({
file: "https://stream.url.:smilfile.videofile.m3u8",
autostart: false
});

player.onMeta(function(event){
console.log(event.metadata);
})

3 Community Answers

Heidi

JW Player Support Agent  
0 rated :

Hello,

The JW Player API documentation for version 6.9 is no longer publicly facing. Are you able to update your player to the latest version JW 7.12?

Heidi

Heidi Williams-Foy
Support Team Lead
JW Player

shams

User  
0 rated :

Hi ,

Now i updated jw.7.9.3 version. But i want use on('bufferChange') event metadata object bandwidth option. how can i user that. here is a api link i want example for metadata object in bufferChange event
https://developer.jwplayer.com/jw-player/docs/javascript-api-reference/#buffer

Heidi

JW Player Support Agent  
0 rated :

Hello,

Have you tried:

jwplayer().on(‘bufferChange’, function(e) {
console.log(’Buffer has changed, the metadata object is ’+e.metadata)
});

Please note this only works with HLS in Flash mode.

Heidi

This question has received the maximum number of answers.