brightscript

C or C++ development in Roku

时光毁灭记忆、已成空白 提交于 2019-12-12 17:50:52
问题 Is it possible to develop applications for Roku in C or C++ as the SDK is written in C ? If yes, how? If no, then which languages other than Brightscript can apps be developed in? 回答1: My understanding is yes, at least with games and the Marmalade SDK https://www.roku.com/developer. I actually just downloaded the SDK and have not looked at it in much detail yet, but as it seems, developing for Roku involves a mix of Brightscript, C++ and Java (Android). Hope that helps! 来源: https:/

Trouble playing vid pre-roll ad in Roku

自古美人都是妖i 提交于 2019-12-12 04:22:29
问题 I'm trying to add VAST video pre-roll ads to the SThree sample Roku SDK project (the "Simple Grid with Video and Details page (.zip)" version). I can get it to work on app start by putting the following code into main.brs : library "Roku_Ads.brs" ... Sub RunUserInterface() ... raf = Roku_Ads() raf.setAdPrefs(false) 'disable back-filled ads raf.setDebugOutput(true) raf.setAdUrl("http://pubads.g.doubleclick.net/gampad/ads?slotname=/82114269/Video/fallbacktest&sz=1920x1080&url=[http://roku.com

Roku: Playback is not smooth on Roku-4 device for 1080p@60fps HEVC content

老子叫甜甜 提交于 2019-12-12 02:14:16
问题 I am running "customvideoplayer" sample application present inside roku SDK on a Roku-4 device. I got the roku SDK from this link: http://wwwimg.roku.com/static/sdk/RokuSDK.zip I am testing a 1080p@60fps HEVC stream. The Roku-4 is connected to a 1080p@60fps TV. The issue is that the playback is not smooth. I can see some frames are rendered for more time compare to others. My questions are: 1) According to Roku documentation(Link: https://sdkdocs.roku.com/display/sdkdoc/Video+Encoding

Why the items in all the rows of row list are getting repeated in brightscript

你离开我真会死。 提交于 2019-12-12 01:23:35
问题 I am trying to use rowlist which contain 3 rows. Each row will contain 11 items. But when it is getting displayed, after 11 items, again items are getting repeated in all the rows. Below are the XML files. BrowseScreen.xml <?xml version="1.0" encoding="utf-8" ?> <component name="BrowseScreen" extends="Group"> <children> <!-- The main content --> <RowList id="BrowseRowList" itemComponentName="customItem" focusXOffset="[0]" itemSize="[1920,500]" numRows="3" drawFocusFeedback="false"

Maintain Focus with two textbox and button using Brightscript

拟墨画扇 提交于 2019-12-11 08:48:32
问题 I created a one Login Form in the bright script. It's following ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' TextBox 1 ' Here the focus is active I set by default in TextBox field active = true TextBox 2 ' Here the press down key to active true Button 1 ' Here again press down key to focus true ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

How to implement Deep Linking in Roku SG application?

两盒软妹~` 提交于 2019-12-11 04:07:57
问题 I need help understanding deep linking, because our Roku Scene Graph application was rejected by Roku. Roku explains deep linking here: https://sdkdocs.roku.com/display/sdkdoc/Deep+Linking, but this documentation is not detailing all information about deep linking. For example, how do we get the contentId and mediaType? Here is our main() function that runs on launch: function main(args as Dynamic) as Void print "args" args if (args.ContentId <> invalid) and (args.MediaType <> invalid) if

Remove white spaces from BrightScript string

本秂侑毒 提交于 2019-12-11 03:18:27
问题 I am attempting to remove leading and trailing white spaces from my string using regex regexQuote = CreateObject("roRegex", "/^[ ]+|[ ]+$/g+", "i") regexQuote.ReplaceAll(noSpaceString) print noSpaceString [EDIT] regexQuote = CreateObject("roRegex", "/^[ ]+|[ ]+$/g", "") print len(noSpaceString) //this value includes leading white spaces, which I dont want I also tried regexQuote = CreateObject("roRegex", "/^[ ]+|[ ]+$/", "") And tried regexQuote = CreateObject("roRegex", "/(^\s*)|(\s*$)/", ""

Roku: Reading a text file present in server

人走茶凉 提交于 2019-12-10 23:09:02
问题 I want to read a text file present in a server from my Roku program. I reffered the following question. Read and write from temp file in Roku The above link has solution to read file from tmp/. So, I tried something like this: text=ReadAsciiFile("<server_file_path>/file.txt") But it is not able to open the file. Is there any other way to read a text file present in server? 回答1: ReadAsciiFile() is only used to read files from pkg:/ and tmp:/ directories. You should use rourltransfer for this.

How to Access another file Label using a Brightscript?

独自空忆成欢 提交于 2019-12-02 08:35:08
问题 I'm trying to simple navigation. And I tried more than one way to open another screen. Hide/show concept (But It's working only single File). Using View Stack (But Still Not Working) Using tag and inside the tag to call another file. (But Its error has given Interface not a member of BrightScript Component) Using the same tag and inside the tag to call another file. (But It does not fetch the value from another file). Here My First File Write a code to First Screen Main.brs screen =

How to Access another file Label using a Brightscript?

只愿长相守 提交于 2019-12-02 07:37:13
I'm trying to simple navigation. And I tried more than one way to open another screen. Hide/show concept (But It's working only single File). Using View Stack (But Still Not Working) Using tag and inside the tag to call another file. (But Its error has given Interface not a member of BrightScript Component) Using the same tag and inside the tag to call another file. (But It does not fetch the value from another file). Here My First File Write a code to First Screen Main.brs screen = CreateObject("roSGScreen") 'one Application only once roSGScreen m.port = CreateObject("roMessagePort") screen