问题标签 [brightscript]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - 如何为 Roku 编译 C++ 代码?
我有一个使用 Java 和 cpp 代码的 android 流式客户端应用程序。我想将我的应用程序移植到 Roku。我了解 Roku 仅推荐使用 BrightScript 进行应用程序开发。
1)根据此链接(Roku 中的 C/C++ 开发),游戏应用程序可以使用橘子酱在 cpp 中编写并为 Roku 编译。
2)但是这个链接(Roku app development with Marmalade有多可行?)清楚地表明marmalade不能用于流媒体应用程序。
3) 我的问题是 (A) 是否可以为 roku 编译 cpp?
(B) 在哪里可以找到构建工具链?
(C) 如果 UI 是使用 BrightScript 开发的,我如何从中调用 cpp 函数?
roku - 如何在brightscript中存储通道的roAssociativeArray?
这是存储收藏频道列表的功能。但我无法将数组存储在注册表中,因为只能将字符串作为输入
roku - 如何在场景图组件中使用 roImageCanvas
我正在使用场景图组件来开发带有MarkupList和MarkupGrid的应用程序。我想在用户退出应用程序时打开一个自定义对话框。我正在使用roImageCanvas创建自定义对话框,但不知道如何实现。Main.brs 文件代码是...
和 roImageCanvas 代码是...
通常我希望用户退出应用程序 showImageCanvas() 时应该被调用。我也尝试将 showImageCanvas() 代码放在场景文件中,但它总是给出错误,所以请告诉我我做错了什么。
roku - 更改来自 roku 的 CURL 请求的默认超时
来自 roUrlTransfer 对象的 AsyncPostFromString 方法生成一个超时为 30 秒的 CURL 请求。
IE
有谁知道是否有任何方法可以使用 Roku SDK 更改 CURL 超时的默认值?
android - 为什么快进/快退按钮第一次工作太慢
我正在使用视频节点开发视频播放器。我的问题是当我在视频播放/缓冲期间按第一次快进/快退按钮时,按钮不起作用。按 4-6 次快进或快退按钮后,它工作正常,但第一次我必须按 4-6 次按钮然后工作。我的代码是...
事件处理程序代码是...
请建议我应该有什么问题?问题与视频文件格式或编码/解码或其他有关吗?
roku - 如何在 ROKU 中从当前频道 (A) 启动另一个频道 (B)
- 显示所有频道
- 如果已安装,单击频道会将用户带到频道
如果未安装,则允许用户安装。
if IsChannelIstalled(channelID) then ECP_Command(“launch/channelID?contentID=deep_link_param) else ECP_Command(“install/channelID?contentID=deep_link_param) end if
提前谢谢了!!!
xml - Unable to parse xml string in Brightscript
I am currently trying to create an application for Roku where the user can find and watch some of the most recent recorded church services available from my church's archives. To do this, I access an API containing an XML document with data pertaining to said recordings. The document contains an element called ArrayOfMediaModel which has at least 30 or more elements within it which are called MediaModel nodes. My hope is to parse the information from these nodes in order to create and play video feed for the end user
That being said, I can't seem to parse the information. Every time I try, I get the following error in the command prompt:
Function call operator () attempted on non-function. (runtime error &he0) in pkg:/source/CreateRecentMenu.brs(8)
Here is the code I have for this operation. As you can assume by the title, it is written in Brightscript.
The GetXML function retrieves data from the XML file specified by the url (which, again, I removed for the sake of posting here) and returns a string. I have tested the result of this and I am confident that it properly returns the string as is intended.
Reading over the documentation of Roku Brightscript, it seems like this should work but it does not. It is also my understanding that, in order to retrieve any meaningful information from the xml document, I have to perform the Parse() function to the xml string. Any help provided is greatly appreciated.
eclipse - Roku - 日食上的 Brightscript 不起作用
现在我正在学习 Roku 的BrightScript
. 我发现eclipse是一个很好的BrightScript
开发IDE。但我不确定,我应该在他们的 Roku 开发者网站上注册吗?我有一个示例代码。当我以前运行代码时,它显示了这个
我只是从这里按照他们的指示进行的。
我不知道,如何解决这个问题。我不知道为什么会这样。请帮我解决这个问题。另外,你可以给我正确的BrightScript
发展方向。而且更可观。
这是详细信息。
Eclipse:面向 Java 开发人员的 Eclipse IDE
版本:Juno Service Release 2
版本号:20130225-0426
操作系统:ubuntu 14.04
谢谢
xml - 在 Brightscript 中使用 XML 的困难
我在使用 Brightscript 和处理 XML 内容方面都非常缺乏经验,但我目前面临着同时开发 roku 应用程序的挑战。目前,我需要弄清楚如何对在线文档中的一些 XML 进行排序,以获取一些必要的数据。任何意见,将不胜感激。
这是 XML 文档的样子。(MediaModel 节点中存在更多项目,但我认为我不需要它们。)
尽管进行了总结,但这就是文档的范围。我需要从 XML 中提取的最重要的信息项是标题、描述、图像和 mp4。
在当前状态下,我拥有的代码只是解析 XML 内容,但这就是我目前拥有的代码。
到目前为止,我试图从文档中获取所需信息的尝试已被证明是破坏程序的。再次,非常感谢任何建议。谢谢你。
编辑:我能够确定 xml_str 字符串无效,我不确定是什么原因。这是我将 XML 代码作为字符串获取的代码。
到目前为止,这是我能够使连接正常工作的唯一方法。再次感谢任何帮助。
android - 视频节点的搜索场工作不正常
我正在使用场景图组件的视频节点制作视频播放器。我的问题是当我设置搜索字段时,
m.video.seek = 20
它就像从 15 秒或 18 秒开始播放,但不是从 20 秒的确切位置开始播放。我的代码是...
视频文件格式在 roku 应用程序的清单文件中m3u8
使用ui_resolutions=fhd
。
这个问题与流格式或其他有关吗?请帮我。