Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

Content in a roVideoScreen

I need help understand this code
Title: "My Video"
StreamFormat: "hls"
Stream: { URL: ""}

Can you explain what the brackets are for in this code example Why not use one bracket:
Title: "My Video"
StreamFormat: "hls"
Stream: { URL: ""}

Why do we need all of these brackets:

Title: "My Video"
StreamFormat: "hls"
Stream: [color=#BF0000]{[/color] URL: ""[color=#BF0000]}[/color]
0 Kudos
1 Reply
Level 8

Re: Content in a roVideoScreen

square brackets indicate an array:




Curly brackets indicate an RoAssociativeArray:




I could be wrong, but I think the code you posted has some extra brackets that are from an attempt to colorize the code when you posted it, this makes the code almost unreadable, don't try to colorize code you post on the forum, just copy, paste, highlight and click "code" button before posting.

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos