I am exploring Google ChromeCast api and i am having some questions. Is it possible to launch and auto connect Youtube application to chrome cast device from my app? I am able to connect my application with chrome cast automatically but not getting hoe to connect youtube without clicking on cast icon.
Asked
Active
Viewed 914 times
1 Answers
0
You may want to first check Google Cast SDK Additional Developer Terms of Service wherein it was mentioned under Developer policies that:
- 3.4.8 must not automatically cast content. Content should only be cast in response to a user request to cast that content;
To connect YouTube app to Chromecast device, please check Discovery Troubleshooting wherein it was mentioned that YouTube apps uses some specialized discovery mechanisms.
Lastly, you may want to check these SO posts for additional insights and also possible options that you may want to try:
-
This app is not going to be publish on play store. Its for my own use so i am not worried about developer polishes. I am just exploring to connect youtube app to chrome cast by direct launching from my app. – P.K. Mar 06 '17 at 09:16