Search code examples
rokubrightscript

How do I open another channel from one channel in Roku?


I am able to use curl to get apps and the apps id from my computer in Roku device. And ultimately, I am able to launch channels using curl from my local computer with e.g. curl -d '' 'http://192.x.x.x:8060/launch/33739' but what I am looking for is doing similar operation where I will have a list of channels and then I should be able to open the channels.

In external Control Guide of Roku in http://sdkdocs.roku.com/display/sdkdoc/External+Control+Guide it is said that it can be done, but it doesn't have a detailed information how this can be done. So, can someone help me find a way to do this?

Thanks in advance.


Solution

  • A bit twisted but don't think there is simpler way:

    • create roDeviceInfo, call GetIPAddrs() to determine IP of the box
    • create roUrlTransfer, call setURL("http://"+IP+":8060/launch/33739"), then say PostFromString()