Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mkenya
Visitor

How do I setup Grid Screen? Instructions Where?

I just bought my ROKU and have created my channel from the TED test files using videoplayer.

Is there a place i can get a step by step setup of a grid screen like Crackle.

When viewers select my channel i would like them to land on a grid layout like crackle .

I looked at the roGrid Sample Zips but they do not show instructions.
I have combed thru the PDF manual and it does not help much.
I am a newbie in the ROKU development environment.

Thanks in advance.
0 Kudos
6 REPLIES 6
mkenya
Visitor

Re: How do I setup Grid Screen? Instructions Where?

Honestly, no one has bothered to answer this? Is it that difficult? Or is it just too easy?
0 Kudos
bandal
Visitor

Re: How do I setup Grid Screen? Instructions Where?

It's like a puzzle it depends on how many pieces to complete it, with some people helping here and there every week or month. Good luck.
DA
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: How do I setup Grid Screen? Instructions Where?

Basic setup of a grid screen looks like this. See the Component Reference for detailed documentation on the grid screen: http://sdkdocs.roku.com/display/RokuSDKv43/roGridScreen

port = CreateObject("roMessagePort")
screen = CreateObject("roGridScreen")
screen.SetMessagePort(port)
screen.SetupLists(2) ' 2 rows
screen.SetListNames(["Row 1", "Row 2"])
screen.SetContentList(0, [{title: "Row 1, Item 1"}]) ' an array of content-meta-data
screen.SetContentList(1, [{title: "Row 2, Item 1"}])
screen.Show()
0 Kudos
mkenya
Visitor

Re: How do I setup Grid Screen? Instructions Where?

Thanks for that.
Now how do i link that image to a play screen?
Once I get this working I promise to post a working sample which one can replace with there own info.
0 Kudos
TCNHD
Visitor

Re: How do I setup Grid Screen? Instructions Where?

Am still trying to understand after the grid is created. then How to you code the selected item to call a particular video play screen.. and also what files does that code goes into?

Thanks
Total Caribbean Network
www.tcnhd.com
0 Kudos
TCNHD
Visitor

Re: How do I setup Grid Screen? Instructions Where?

"RokuChris" wrote:
Basic setup of a grid screen looks like this. See the Component Reference for detailed documentation on the grid screen: http://sdkdocs.roku.com/display/RokuSDKv43/roGridScreen

port = CreateObject("roMessagePort")
screen = CreateObject("roGridScreen")
screen.SetMessagePort(port)
screen.SetupLists(2) ' 2 rows
screen.SetListNames(["Row 1", "Row 2"])
screen.SetContentList(0, [{title: "Row 1, Item 1"}]) ' an array of content-meta-data
screen.SetContentList(1, [{title: "Row 2, Item 1"}])
screen.Show()


Where do you place this codes???
Total Caribbean Network
www.tcnhd.com
0 Kudos