I have a roPosterScreen (arced-landscape) with 30 posters.
I'm storing the posters on a server with links to them in an xml file. I read in the xml and set the SDPosterURL and HDPosterURL to the respective URLs. The images download and display, but when I'm navigating, it takes about 1-2 seconds to move from 1 selection to the next.
I thought maybe it was taking so long because it was downloading the image each time I selected a new one, so I packaged the images into the channel and referenced them local, but it's still very slow.
Here is my screen code
Function showTeamPosterScreen(screen As Object) As Integer
if validateParam(screen, "roPosterScreen", "showPosterScreen") = false return -1
m.curShow = 0
teams = getTeams()
screen.SetContentList(teams)
screen.Show()
while true
msg = wait(0, screen.GetMessagePort())
if type(msg) = "roPosterScreenEvent" then
print "showTeamPosterScreen | msg = "; msg.GetMessage() " | index = "; msg.GetIndex()
if msg.isListFocused() then
m.curShow = 0
screen.SetFocusedListItem(m.curShow)
print "msg.GetIndex = "; msg.GetIndex()
if msg.GetIndex() = 0 then
screen.SetContentList(getShowsForLive())
else if msg.GetIndex() = 1 then
screen.SetContentList(getVodCategories())
end if
print "list focused | current category = "; m.curCategory
else if msg.isListItemSelected() then
m.curShow = msg.GetIndex()
print "list item selected | current show = "; m.curShow
if teams[m.curShow].SubCat = 3 then
print "preShowTeamGamesScreen"
subScreen = preShowTeamGamesScreen("On-Demand by Team", teams[m.curShow].Title)
if subScreen=invalid then
print "unexpected error in preShowTeamGamesScreen"
return -1
end if
showTeamGamesScreen(subScreen, teams[m.curShow].TeamId)
end if
screen.SetFocusedListItem(m.curShow)
print "list item updated | new show = "; m.curShow
else if msg.isScreenClosed() then
return -1
end if
end If
end while
End Function
brockoli