Questions tagged [roku]

"Roku" is a video streaming player and platform, developed and sold by the company "Roku, Inc."

[Roku, Inc.][1] was founded in 2002 by Anthony Wood, the founder of ReplayTV (one of the first DVRs). "Roku" means six in Japanese, a reference to this being the 6th company that Wood has launched.

Roku Inc develops both the hardware and software for the eponymous Roku platform. The company manufactures and sells the [Roku][2] set-top boxes - as well as licenses the platform to manufacturers (e.g. Hisense, TCL, Insignia, Sharp) of "RokuTV" smart TVs.

Development for the Roku platforms is done primarily through BrightScript, a scripting language very similar to Visual Basic. A sister company - BrightSign - uses Brightscript for their commercial sign and display products.

More information can be found at http://www.roku.com

[1] https://en.wikipedia.org/wiki/Roku,_Inc.

[2] https://en.wikipedia.org/wiki/Roku

496 questions
3
votes
4 answers

Navigation concept in Roku

I am facing some issue in screen navigation in Roku Brightscript. Please, anyone, help me how I can manage 5-6 screen in my Roku project. I want to navigate from 1 to 2 screen and also want to back from that screen. This is some major issue I have…
3
votes
1 answer

Click button not fire a click Event and how to navigate another panel in ROKU

I create the Login panel in Roku. At a Login time, I click ok button to navigate another panel it is possible. I create a login panel with using two text boxes one for username and another for password and two buttons one for sign-in and another for…
3
votes
2 answers

Roku: Is it standard practice to unobserve unused variables after observing them?

Say I was observing a variable m.someObject.observeField("content", "onContentChanged") after a certain period of time I no longer need m.someObject. Do I need to cleanup and call m.someObject.unobserveField("content") or can I just leave it?
mco
  • 1,809
  • 15
  • 31
3
votes
2 answers

Roku Ad Framework : Failed to create mediaPlayer

RAF fails to render the mediaPlayer for ads and idles on the buffering screen. I can still exit video playback without issues. This is when I make the call to showAds(). if adPod <> invalid AND adPod.count() > 0 ? "Playing pre-roll ad" …
3
votes
2 answers

How to implement Anvato SDK?

I want to implement Anvato SDK for playing ads. After some R&D I found Platform SDKs description from "https://dev.anvato.net/", there Anvato SDK have briefly described only, we have not found any SDK pakage or demo code, that could implementation…
Balbant Singh
  • 187
  • 1
  • 10
3
votes
4 answers

Disabling remote (trick play) buttons in a Roku live streaming application video node?

I'm having trouble disabling the remote control buttons like "fast forward", "pause", etc. in my Roku application. It is a very simple application that just has the one main scene, which only creates a video node that plays a live stream of our…
Anon Mouse
  • 31
  • 2
3
votes
1 answer

How to use Interface in brightscript for functions

I want a function need to be called using interface-implementation model. I have read that roku has provision to have a function inside the interface portion in brightscript's document. So I tried but failed. Could anyone help me?
ganka
  • 191
  • 1
  • 11
3
votes
3 answers

How do I call XML code from Brightscript for a Roku Channel?

I'm trying to populate a Label List using the below XML Roku Channel, Scenegraph code. I'm getting these errors: BRIGHTSCRIPT: ERROR: roSGScreen: creating MAIN|TASK-only component failed on RENDER thread:…
neowinston
  • 7,584
  • 10
  • 52
  • 83
3
votes
3 answers

Programmatically Upload Roku Channel without Eclipse Plugin

I was wondering if it was possible to upload the zip file of a channel to a roku device using a terminal. It seems like it should be possible because there is a plugin available for Eclipse, but my goal is to not use Eclipse if possible. Any help…
Alex Bieg
  • 355
  • 2
  • 15
3
votes
2 answers

Creating a page for date entry for Roku?

I'm working on a Roku app and we want the user's date of birth. Trying not to get too complex on the parsing end (so would prefer to not just have a text box where the user can enter whatever they want). I looked into using a roPinEntryDialog, but…
Cassidy
  • 3,328
  • 5
  • 39
  • 76
3
votes
3 answers

Is it possible to assign an anonymous function to a global associative array property?

New to roku/brightscript development: Is it possible to add an object to the global associative array (accessible by all components), that has a method defined as one of the properties, and call that method? Main.brs: function Main() init() end…
neoRiley
  • 465
  • 6
  • 11
3
votes
1 answer

How do you get error code from syncronous roUrlTransfer call

I have this piece of code that gets and parses JSON from an HTTPS url: Function GetJson(sUrl As String) As dynamic if sUrl = invalid return invalid httpGet = CreateObject("roUrlTransfer") httpGet.SetURL(sUrl) …
rynop
  • 50,086
  • 26
  • 101
  • 112
3
votes
2 answers

How to Check if an Array Contains a Value in brightscript Efficiently?

Given an roArray: found = CreateObject("roArray", 0, true) found.push("a") found.push("b") found.push("c") What is the best way to check if value s = "s"?
Ronald Chu
  • 33
  • 1
  • 4
3
votes
2 answers

Change the default timeout for CURL request from roku

The AsyncPostFromString method from roUrlTransfer object generates a CURL request with a timeout of 30secs. i.e port = CreateObject ("roMessagePort") ut = CreateObject ("roUrlTransfer") ut.setMessagePort(port) ut.AsyncPostFromString(data) Does…
André Leal
  • 186
  • 1
  • 8
3
votes
4 answers

Find Date Difference in BrightScript

I have an issue with datetime. I have two strings. e.g 24-9-15 and 2-10-15. Both are two strings. I want to find out the difference (in days) between them. Can you please help me out?
Developer
  • 103
  • 12
1
2
3
33 34