I created simple page with JW player and enabled cast option. First time I open player and cast to my chromecast everything works nice. However if I open new page with different video source, and try to cast it popups alert that other video is already casting and that I need to stop it, which is also fine. But when I stop the cast and try to cast new video it just doesn't work. There is blue casting icon in the middle of my TV and that's it. Trying again won't work also. So I need to refresh the page, and even then sometimes works, sometimes not.
var playerInstance = jwplayer("player");
playerInstance.setup({
playlist: [{
sources: [
{
"file": "http://path.to/file.mp4",
"preload": "none"
},
]
}],
"primary": "html5",
"hlshtml": true,
width: "100%",
aspectratio: "16:9",
cast:{}
});
↧