【问题标题】:How to lauch another channel(B) from current channel(A) in ROKU如何从 ROKU 中的当前频道 (A) 启动另一个频道 (B)
【发布时间】:2016-06-16 20:00:51
【问题描述】:
  1. 显示所有频道
  2. 如果安装了频道,点击频道会将用户带到频道
  3. 如果没有安装,允许用户安装。

    如果 IsChannelIstalled(channelID) 那么 ECP_Command(“启动/频道ID?contentID=deep_link_param) 别的 ECP_Command(“安装/channelID?contentID=deep_link_param) 结束如果

提前非常感谢!!!

【问题讨论】:

  • 这是作业还是面试题?!我的意思是你显然知道必须做什么,你只是列举了步骤......

标签: roku brightscript


【解决方案1】:

这是一个可能对您有所帮助的函数:

sub launchChannel(channelId as String, params = "" as String)
    urlTransfer = createObject("roURLTransfer")
    ipAddress = createObject("roDeviceInfo").getIPAddrs().eth0

    url = "http://" + ipAddress + ":8060/launch/" + channelId

    if params.len() > 0
        url = url + "?" + params
    end if

    urlTransfer.setURL(url)
    urlTransfer.postFromString("")
end sub

更多信息请查看External Control Guide

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-17
    相关资源
    最近更新 更多