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

蹲街弑〆低调 提交于 2019-12-29 09:07:16

问题


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, call GetIPAddrs() to determine IP of the box
  • create roUrlTransfer, call setURL("http://"+IP+":8060/launch/33739"), then say PostFromString()



回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!