【发布时间】:2017-09-05 01:26:44
【问题描述】:
我需要帮助理解深度链接,因为我们的 Roku 场景图应用程序被 Roku 拒绝了。
Roku 在此处解释深度链接:https://sdkdocs.roku.com/display/sdkdoc/Deep+Linking,但该文档并未详细说明有关深度链接的所有信息。例如,我们如何获取 contentId 和 mediaType?
这是我们在启动时运行的main() 函数:
function main(args as Dynamic) as Void
print "args" args
if (args.ContentId <> invalid) and (args.MediaType <> invalid)
if (args.mediaType = "season")
HomeScreen()
end if
end if
end function
应用程序启动后,我们打印 args,得到这个关联数组。但是,这不会显示任何 contentId 和 mediaType。
<Component: roAssociativeArray> =
{
instant_on_run_mode: "foreground"
lastExitOrTerminationReason: "EXIT_UNKNOWN"
source: "auto-run-dev"
splashTime: "1170"
}
使用此 curl 命令,应用程序成功启动并显示 contentId 和 mediaType:
curl -d "" "http://10.1.1.114:8060/launch/dev?contentID=e59066f501310da32b54ec0b64319be0&MediaType=season"
请帮助我们并提供更好的示例来轻松理解和实施深度链接。
【问题讨论】:
标签: roku brightscript scenegraph