item= {
SDPosterUrl:logoName
HDPosterUrl:logoName
Stream: streamName
Title: chanName
exten: extName
}
showSpringboardScreen(item)
Function showSpringboardScreen(item as object) As Boolean
port = CreateObject("roMessagePort")
screen = CreateObject("roSpringboardScreen")
print "showSpringboardScreen"
screen.SetMessagePort(port)
screen.AllowUpdates(false)
if item <> invalid and type(item) = "roAssociativeArray"
screen.SetContent(item)
endif
screen.SetDescriptionStyle("generic")
screen.ClearButtons()
screen.AddButton(1,"Play")
screen.AddButton(2,"Go Back")
screen.AddButton(3,"Add Favorite")
screen.SetStaticRatingEnabled(false)
screen.AllowUpdates(true)
screen.Show()
downKey=3
selectKey=6
while true
msg = wait(0, screen.GetMessagePort())
if type(msg) = "roSpringboardScreenEvent"
if msg.isScreenClosed()
print "Screen closed"
exit while
else if msg.isButtonPressed()
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
if msg.GetIndex() = 1 'PLAY STREAM
playcontent (item.stream, item.chanName, item.exten) 'SEND INFO TO PLAYER
else if msg.GetIndex() = 2
return true
endif
else
closeout()
print "Unknown event: "; msg.GetType(); " msg: "; msg.GetMessage()
endif
else
print "wrong type.... type=";msg.GetType(); " msg: "; msg.GetMessage()
endif
end while
return true
End Function
app = CreateObject("roAppManager")
secondaryText = "#FFED6D"
primaryText = "#FFED6D"
buttonText = "#C0C0C0"
buttonHighlight = "#ffffff"
backgroundColor = "#000000"
theme = {
BackgroundColor: backgroundColor
GridScreenOverhangSliceHD: "pkg:/images/roku-app-overhang.png"
GridScreenOverhangSliceSD: "pkg:/images/roku-app-overhang.png"
GridScreenOverhangLogoHD: ""
GridScreenOverhangLogoSD: ""
GridScreenOverhangOffsetSD_X: "230"
GridScreenOverhangOffsetSD_Y: "72"
GridScreenOverhangOffsetHD_X: "230"
GridScreenOverhangOffsetHD_Y: "72"
BreadcrumbTextLeft: "#FFED6D"
BreadcrumbTextRight: "#FFED6D"
BreadcrumbDelimiter: "#FFED6D"
ThemeType: "generic-dark"
ListItemText: secondaryText
ListItemHighlightText: primaryText
ListScreenDescriptionText: secondaryText
ListItemHighlightHD: "pkg:/images/selected-bg.png"
ListItemHighlightSD: "pkg:/images/selected-bg.png"
}
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!