Open lucafaggianelli opened 4 years ago
+1
If anyone stumbles upon this problem, make sure you are hosting your website with https, otherwise __onGCastApiAvailable will not trigger.
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
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.