googlecast / CastVideos-chrome

Reference Chrome Sender w/ Framework API: CastVideos-chrome application shows how to cast videos from Chrome browser that is fully compliant with the Cast Design Checklist.
Apache License 2.0
281 stars 117 forks source link

Cast button doesn't appear on mobile #33

Open lucafaggianelli opened 4 years ago

lucafaggianelli commented 4 years ago

On Chrome Android, chromecast SDK simply doesn't work, it's not loaded at all, I have this issue also on a sender app I made, it looks like window['__onGCastApiAvailable'] is not called at all.

Actually, if you play a video in Chrome Android, a cast icon appears in the top left corner of the <video> element but it seems a Chrome native thing, not the cast button implemented in this repo.

harry-harish commented 4 years ago

+1

Dalesjo commented 3 years ago

If anyone stumbles upon this problem, make sure you are hosting your website with https, otherwise __onGCastApiAvailable will not trigger.

jtromo commented 3 years ago

Chrome Android is supported.

Is your receiver app published? +1 to Dalesjo's suggestion that your website needs to be hosted with https as well.

Also are there any devices on the network?

Here's some information to help troubleshoot: https://developers.google.com/cast/docs/registration#devices