googlecast / CastVideos-android

Reference Android Sender w/ Framework API: CastVideos-android application shows how to cast videos from an Android device that is fully compliant with the Cast Design Checklist.
Apache License 2.0
345 stars 183 forks source link

Cast button not appearing #107

Open AllwinJohnson opened 3 years ago

AllwinJohnson commented 3 years ago

I pulled this project and run into my device, but the cast icon on appbar not appearing even If the device and Chromecast or Android TV are connected to the same network.

So I found I need to register the sender app. So I made a new application ID in this project and added it to the newly registered cast SDK console that I brought, after replacing the app-id in demo app with the new one there is no changes that I see.

I found this Unavailable: When Web Receivers are not available, the Cast button does not appear in cast button Should I need to add a web receiver? Can I get a working sample project? The HayStack TV in this website also not working for me.

jtromo commented 3 years ago

Have you gone through this guide for registering your Receiver App? https://developers.google.com/cast/docs/registration#applications

The receiver app either needs to be published or your devices need to be registered for the Cast button to appear.