
how to play streaming from wowza (play on any device)
Hi.
My company have purchase JW Player PREMIUM (Version 7).
On production page current support rtmp and hls (see in below) how to add mpeg dash stream for single page display on any device.
Thank you.
<!-- html code -->
.
<script type="text/javascript">
jwplayer("live_player").setup({
logo: {
file: '/images/logo-stream.png',
link: 'https://localhost/'
},
skin : 'six',
image: '/images/live-720.jpg',
sources: [{
file: "http://localhost/Application/smil:{$channel}/manifest.f4m"
},{
file: "http://localhost/Application/smil:{$channel}/playlist.m3u8"
}],
rtmp: {
bufferlength: 3
},
fallback: false,
width: "100%",
aspectratio: "16:9",
});
jwplayer("live_player").onMeta(function(event){
if(event.metadata.bandwidth) {
var html = 'bandwidth: '+event.metadata.bandwidth;
html += ', screenwidth: '+ event.metadata.screenwidth;
html += ', qualitylevel: '+event.metadata.qualitylevel;
html += ', transitioning: '+event.metadata.transitioning;
html += ', bufferfill: '+event.metadata.bufferfill;
document.getElementById('abr').innerHTML = html;
}
});
</script>
<!-- html code -->