Play android application content to chromecast -
I have an Android app that is able to flip the photo received by an internal FTP server in the main activity. After a step-by-step Google example, I've successfully added the Chromecast button to the app and I can select the available devices.
Now, the final target photo play has to be inserted into the activity on the selected Chromecast device so far, when the device is being asked to launch the app, the configured URL is accessed in it. Do I want to take care of creating video content for serving that URL? Or is it possible to run the activity of my app directly?
When you launch an app on Chromecast, the device is configured for the app you have configured for the html The page loads and after that point, it's just an HTML page; If you want to show a picture with a certain URL, then you have to pass that URL through your receiver (using cast SDK) and that URL should point to your image (i.e. your media content is served by a web server It should be done in the cloud or on your phone inside your sender).
You can also use the "Presentation" API and use the cast device as a second display and in the pursuit of this approach you can show the device you want to cast.
Samples of both methods can be found in our repo, you can learn more about artists and more about it.
Comments
Post a Comment