Hello,
on my multibitrate live stream served by a Wowza Streaming Engine and embedded with JW Player 7 I get a seekbar and elapsed time instead of the text "Live Broadcast" on client side (flash, rtmp). I don't had this problem with a different HLS multibitrate live stream in the past.
Embed code looks like this:
Player wird geladen...
var playerInstance = jwplayer("Player");
playerInstance.setup({
playlist: [{
//image: "/assets/myVideo.jpg",
sources: [{
file: "http://domain-name/livestream/ngrp:live_all/jwplayer.smil?domain=domain-name:80"
},{
file: "http://domain-name/livestream/ngrp:live_all/playlist.m3u8"
}]
}],
width: "100%",
androidhls: true,
rtmp: {
bufferlength: 0.5
}
});
jwplayer().on("error", function(event) {
if (event.message == 'Cannot load M3U8: No levels in manifest' || event.message == 'Cannot load M3U8: No levels to play' || event.message == 'Cannot load M3U8: 404 not found' || event.message == 'Cannot load M3U8: 403 status code' || event.message == 'Error loading stream: ID not found on server' || event.message == 'Error loading stream: Could not connect to server') {
console.log("Cannot load stream.");
setTimeout(function(){
jwplayer().stop();
jwplayer().play();
console.log("Retrying stream.");
}, 5000);
}
});
Why it doesn't shows the "Live Broadcast" label?
The live stream runs great and switching the resolutions also works fine but a seekbar makes no sense in this situation.
Regards,
Andreas.
↧