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

.on('meta') not work on jwplayer 7


.on('meta') not work on jwplayer 7, i have trying on many versions like, 7.1, 7.2, my code are below,

<!DOCTYPE html>
<html lang="en">
<script>
</script>
<head>
<meta name='viewport' content="initial-scale=1, maximum-scale=1, user-scalable=0">
<meta charset="utf-8">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

<title> Player</title>
</head>
<body>
<div id="streamroot"></div>

</body>

<script src="//ssl.p.jwpcdn.com/player/v/7.2.4/jwplayer.js"></script>
<script src="//cdn.streamroot.io/jw/7.1/provider.js"></script>
<script>
jwplayer.key = "KEY"
playerInstance = jwplayer('streamroot');
playerInstance.setup({
file: "http://multitv-lh.akamaihd.net/i/NWS001_1@330159/master.m3u8",
primary: 'flash',
p2pConfig: {streamrootKey: "E0RL0i6pDFU/wyZgpjfQdA+Cn1he6Dumz/D4XA=="},
hlsjsConfig: {}, // possible hls.js options
srDashConfig: {} // possible streamroot-dash options

});
playerInstance.on('meta', function(event) {
console.log(event.metadata);
});

</script>
</html>

1 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

I have verified that .on(“meta”) is working fine with the stream you have provided. However, you have a free account which does not support HLS playback. You would have to upgrade to a Premium account, or higher, to use HLS or DASH streaming with our player. You can find more information on our pricing page.

Thank you.

This question has received the maximum number of answers.