2
votes

I am adding Chromecast to an Android app, which is not streaming media. So I base my code on the tutorials and the "CastHelloText" sample project according to the instructions from Google. I can run the app, press the cast button and then cast to my TV.

But the only thing I see is the webpage for the Receiver Application URL, which I wrote for the "Custom receiver" in the developer console. I never see the content of the app on the TV, just the webpage for the URL.

How can I proceed to cast the app, not the URL? I have read Google's tutorials and information about Chromecast, but it is difficult to find a straight approach on how to get this to work.

1
What do you mean by "cast the app"? Do you want to cast the entire sender screen to the receiver (like the Google Cast app's Cast Screen / Audio feature), or cast a single view (e.g., for your music visualization app, the remote display would only show the visualizer view, without any extra material)?plátano plomo

1 Answers

0
votes

If you want to "mirror" a certain view in your app on a cast device, you'd need to use the Remote Display Apis, and that, by the way, doesn't need a custom receiver. I don't know what documentation you have read but the best starting point would be the official cast documentation for developers.