Closed datcorona closed 3 years ago
cast button only appears if there are chrome-cast devices nearby, if your tv doesn't has a built-in chrome-cast it will not be considered as available device.
And if you wonder why a tv with no built-in chrome-cast appears in youtube and Netflix dialog apps, it is because these 2 applications uses DIAL protocol to communicate with their tv-version app installed in the tv.
You can reference to this article to know how youtube and Netflix uses the DIAL protocol:
Please make sure you are running the app using a real device and not an emulator as discovery doesn't work on emulators.
Here is some additional information for integrating Cast: https://developers.google.com/cast/docs/android_sender/integrate?hl=en#initialize_the_cast_context
In addition to verifying that devices are on your network, if you are using your own receiver ID, be sure that either your devices are added or the receiver is published: https://cast.google.com/publish/#/overview