Your Digital Media Has Never Looked So Good

Search found 789 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 53
by joetesta
Thu Aug 09, 2018 5:10 pm
Forum: Roku Developer Program
Topic: ButtonGroup never hasFocus
Replies: 3
Views: 301

Re: ButtonGroup never hasFocus

Yeah it is confusing.  Apparently only one node can have focus at a time, and according to the button group doc, "When the ButtonGroup node has focus, it sets the key focus on a single one of its child Button nodes." https://sdkdocs.roku.com/display/sdkdoc/ButtonGroup So once that child bu...
by joetesta
Tue Aug 07, 2018 8:16 am
Forum: Roku Developer Program
Topic: Querying and adjusting the Roku TV's volume
Replies: 5
Views: 866

Re: Querying and adjusting the Roku TV's volume

yeah it's definitely a hack, I could be wrong but my guess is you will be waiting a long, long time for Roku to add any such feature (expose TV's volume) assuming it's possible..
by joetesta
Mon Aug 06, 2018 11:19 am
Forum: Roku Developer Program
Topic: Maskgroup Masksize bug
Replies: 0
Views: 264

Maskgroup Masksize bug

I have verified there is a bug with Maskgroup.  To generate a MWE (minimum working example) download the example from here  https://sdkdocs.roku.com/display/sdkdoc/MaskGroup 1)  Edit MainScene.xml and remove the animation block entirely. 2)  zip and view in FHD (1920 x 1080) 3) Change Roku display t...
by joetesta
Mon Aug 06, 2018 11:10 am
Forum: Roku Developer Program
Topic: Maskgroup Example is broken
Replies: 0
Views: 207

Maskgroup Example is broken

The example downloadable here https://sdkdocs.roku.com/display/sdkdoc/MaskGroup does not animate. 
by joetesta
Sun Aug 05, 2018 5:30 pm
Forum: Roku Developer Program
Topic: Difference between m and m.top
Replies: 3
Views: 546

Re: Difference between m and m.top

`m.top` is part of object creation managed by BrightScript/RSG such that anything put into (or made as an entry/attribute/field/property w/e you want to call it) `m.top` automatically becomes part of the objects public scope and thus m.top will allow external agents access to read/edit and possibly...
by joetesta
Sun Aug 05, 2018 5:25 pm
Forum: Roku Developer Program
Topic: Get Poster/image dimensions
Replies: 3
Views: 375

Re: Get Poster/image dimensions

As long as the component is defined in xml, boundingRect() works correctly in the component's init()
cheers,
Joe
by joetesta
Sat Aug 04, 2018 5:17 pm
Forum: Roku Developer Program
Topic: Difference between m and m.top
Replies: 3
Views: 546

Re: Difference between m and m.top

"m" is the private local associative array (the doc calls it "the m object reference") "top" a default element of m, node reference that refers to the component itself.  m.top should be used sparingly and only when needed to set and observe fields from outside the node....
by joetesta
Fri Aug 03, 2018 6:30 pm
Forum: Roku Developer Program
Topic: Button to Listen to Focus Event?
Replies: 2
Views: 370

Re: Button to Listen to Focus Event?

button and Group (which button is extended from) don't have a focusPercent field, afaik. You could do this;  In your .brs script, add an observer to the button's focusedChild: ...   m.button.observeField("focusedChild", "focusChanged") ... sub focusChanged()   if m.button.hasFocu...
by joetesta
Fri Aug 03, 2018 7:35 am
Forum: Roku Developer Program
Topic: Navigation: How to skip a row or menu item
Replies: 6
Views: 324

Re: Navigation: How to skip a row or menu item

yes sorry was meaning to do this last night before I fell asleep, in init()   m.markuplist = m.top.findnode("markupListID")   m.markuplist.observeField("itemFocused", "focusChanged")   m.lockedIndex = 3 end sub sub focusChanged()   itemFocused = m.markuplist.itemFocused...
by joetesta
Fri Aug 03, 2018 7:26 am
Forum: Roku Developer Program
Topic: Get Poster/image dimensions
Replies: 3
Views: 375

Re: Get Poster/image dimensions

One way to get the on-screen dimensions of a node is to use https://sdkdocs.roku.com/display/sdkdoc/ifSGNodeBoundingRect#ifSGNodeBoundingRect-boundingRect() node.boundingRect().width and node.boundingRect().height
by joetesta
Fri Aug 03, 2018 7:11 am
Forum: Roku Developer Program
Topic: Calling a function from main.brs
Replies: 2
Views: 335

Re: Calling a function from main.brs

did you try this?
https://sdkdocs.roku.com/display/sdkdoc/interface

Add to your HomeScene xml:
<interface>
   <function name="myfunction" />
</interface>


Does it work from scene?
by joetesta
Thu Aug 02, 2018 5:09 pm
Forum: Roku Developer Program
Topic: Querying and adjusting the Roku TV's volume
Replies: 5
Views: 866

Re: Querying and adjusting the Roku TV's volume

worst case you could probably send 100 volumedown's in a row then assume it's at 0
by joetesta
Thu Aug 02, 2018 8:05 am
Forum: Roku Developer Program
Topic: Navigation: How to skip a row or menu item
Replies: 6
Views: 324

Re: Navigation: How to skip a row or menu item

dam it i wrote the code example then this forum told me to log in again and everything I wrote is lost :(
by joetesta
Wed Aug 01, 2018 2:35 pm
Forum: Roku Developer Program
Topic: Navigation: How to skip a row or menu item
Replies: 6
Views: 324

Re: Navigation: How to skip a row or menu item

you could observe the markupList's " itemFocused" field and when it becomes equal to your locked item, set jumpToItem to the next item. You can probably use the field" itemUnfocused"  so you know which direction the user is navigating and determine the appropriate item to jump to.
by joetesta
Mon Jul 30, 2018 8:33 pm
Forum: Roku Developer Program
Topic: setFocus question
Replies: 4
Views: 584

Re: setFocus question

yeah, no need to apologize, we are all learning and the docs aren't the easiest to follow.   To answer your question, "yes"  any Node element can be made focusable by setting its "focusable" field to true https://sdkdocs.roku.com/display/sdkdoc/Node so in your example, add to you...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 53