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: 
hard85
Visitor

brightscript template

I need help

Template tab not show?


0 Kudos
1 REPLY 1
dcrandall
Visitor

Re: brightscript template

There's not really a 'from template' here. It's more doing in code something like:

http://sdkdocs.roku.com/display/sdkdoc/roPosterScreen


Function Main()
port = CreateObject("roMessagePort")
poster = CreateObject("roPosterScreen")
poster.SetBreadcrumbText"[location1]", "[location2]")
poster.SetMessagePort(port)
list = CreateObject("roArray", 10, true)
For i = 0 To 10
o = CreateObject("roAssociativeArray")
o.ContentType = "episode"
o.Title = "[Title]"
o.ShortDescriptionLine1 = "[ShortDescriptionLine1]"
o.ShortDescriptionLine2 = "[ShortDescriptionLine2]"
o.Description = ""
o.Description = "[Description] "
o.Rating = "NR"
o.StarRating = "75"
o.ReleaseDate = "[<mm/dd/yyyy]"
o.Length = 5400
o.Categories = []
o.Categories.Push("[Category1]")
o.Categories.Push("[Category2]")
o.Categories.Push("[Category3]")
o.Actors = []
o.Actors.Push("[Actor1]")
o.Actors.Push("[Actor2]")
o.Actors.Push("[Actor3]")
o.Director = "[Director]"
list.Push(o)
End For
poster.SetContentList(list)
poster.Show()

While True
msg = wait(0, port)
If msg.isScreenClosed() Then
return -1
ElseIf msg.isListItemSelected()
print "msg: ";msg.GetMessage();"idx: ";msg.GetIndex()
End If
End While
End Function


So, fill-in the fields with a project name, do some code, right-click the project and go to 'export' and 'export' to your roku that is in develop mode. You may have to manually enter the IP address as I do sometimes.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.