Reputation: 884
Using a mobile app, it is possible to "Cast" media from your mobile app to a Roku device on the same network. I do not understand the mechanism being used which allows a remote device (YouTube Android app for example) to cause the selected Roku to open the YouTube channel and start playing the video. I have looked though the Roku developer documentation and am unable to locate any way to launch a channel without the user choosing that channel.
Upvotes: 0
Views: 768
Reputation: 764
Adding to the Alejandro Cotilla answer, You can check some simple implementation of the External Control API here on this repo.
Upvotes: 0
Reputation: 2621
This is one way of doing it:
http://<device-ip>:8060/launch/<your-app-id>?contentId=<movie-id-in-your-api>&mediaType=movie
.install/appID
command also launches the app after
it's installed the same way the launch/appID
command would.Example:
sub main(args as dynamic)
contentID = args.contentID
mediaType = args.mediaType
if contentID <> invalid and mediaType <> invalid
// Either store the parameters for later use in the app, or make the
// requests to your content API right here.
end if
end sub
More details on Deep Linking here.
Upvotes: 1