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

Chromecast if already casting broken


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:{}
});

4 Community Answers

George

JW Player Support Agent  
1 rated :

Seems like a bug, I’ll escalate this to engineering.

George

JW Player Support Agent  
0 rated :

Hi,

So it turns out this is almost expected behavior as Chromecast is initialized with ORIGIN_SCOPED as the auto join policy.
https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.AutoJoinPolicy

What exactly are you trying to do?

Dan

User  
0 rated :

Hi,

Well I have video site, and once I cast one video it works, but if I go to another video and cast it doesn't. I basically just wan't that after I stop one cast, and run second, to make it work.

George

JW Player Support Agent  
0 rated :

Hi,

If I begin casting on this page:
http://qa.jwplayer.com.s3.amazonaws.com/~george/chromecast_demo_hls.html

Then stop casting and go to the page via my button on the bottom, I’m able to begin casting again.

This question has received the maximum number of answers.