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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cast button does not show when using application id.

oromanos opened this issue · comments

I am using the code as is in this repository. The cast button does not show up if I use my application id.
Also more than 50% of the time, there is an error in the console stating

Uncaught ReferenceError: cast is not defined
at CastPlayer.initializeCastPlayer (CastVideos.js?=18:179)
at window.__onGCastApiAvailable (CastVideos.js?
=18:1643)
at chrome.cast.ha (cast_sender.js:94)

What do I need to fix this issue?

I also noticed that if I use my application id and try to cast. It casts the whole tab and not just the video.

Is your receiver published?

If it is not published, you will need to register your devices that are being used for the Cast button to display.

Please make sure you are following all of the steps in the registration guide: https://developers.google.com/cast/docs/registration