问题
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.
回答1:
A bit twisted but don't think there is simpler way:
- create
roDeviceInfo
, callGetIPAddrs()
to determine IP of the box - create
roUrlTransfer
, callsetURL("http://"+IP+":8060/launch/33739")
, then sayPostFromString()
回答2:
Nas Banov answer inspired me to write an article on dev.to regarding launching Roku Channel from within another channel. I hope my post will make it even more clear on how to do this.
来源:https://stackoverflow.com/questions/22021954/how-do-i-open-another-channel-from-one-channel-in-roku