ok I have the problem that you select the episode makes it perfect strike to go back again to the top of the list
EpisodeScreen.brs
sub ShowEpisodeScreen(show, leftBread, rightBread)
Dbg("episode url: ", show.url)
Dbg("episode rss: ", show.content)
mrss = NWM_MRSS(show.url,show.content)
content = mrss.GetEpisodes()
if content.Count() = 0
' TODO: show an error dialog
return
end if
if false
screen = CreateObject("roPosterScreen")
screen.SetMessagePort(CreateObject("roMessagePort"))
screen.SetListStyle("flat-episodic-16x9")
'screen.SetListStyle("flat-category")
selectedEpisode = 0
screen.SetContentList(content)
end if
if true
screen = CreateObject("roGridScreen")
screen.SetGridStyle("four-column-flat-landscape")
'screen.SetDisplayMode("scale-to-fit")
screen.SetDisplayMode("photo-fit")
screen.SetMessagePort(CreateObject("roMessagePort"))
doCerts(screen)
numrows = content.count() + 1
selectedEpisode = 0
screen.SetupLists(numrows) ' count of rows
labels = []
row = 0
col = 1
gridarr = []
for each i in content
gridarr.push(i)
if col = content.count()
labels.push(leftBread) ' ("row " + str(row))
screen.setContentList(row,gridarr)
gridarr = []
row = row + 1
col = 0
end if
col = col + 1
next
if row < numrows
labels.push(leftBread) ' ("row " + str(row))
screen.setContentList(row,gridarr)
end if
screen.setListNames(labels)
end if
screen.SetBreadcrumbText(leftBread, rightBread)
screen.Show()
while true
msg = wait(0, screen.GetMessagePort())
if msg <> invalid
if msg.isScreenClosed()
exit while
else if msg.isListItemFocused()
selectedEpisode = msg.GetIndex()
selectedEpisodeGrid = msg.getData()
else if msg.isListItemSelected()
if Type(screen) = "roGridScreen"
selectedEpisode = ShowSpringboardScreen(content, selectedEpisodeGrid, leftBread, "")
screen.SetFocusedListItem(selectedEpisode,selectedEpisodeGrid)
else
selectedEpisode = ShowSpringboardScreen(content, selectedEpisode, leftBread, "")
screen.SetFocusedListItem(selectedEpisode)
'screen.Show()
end if
else if msg.isRemoteKeyPressed()
if msg.GetIndex() = 13
if content[selectedEpisode].streamFormat = "mp3"
ShowAudioScreen(content, selectedEpisode, leftBread, "")
else
ShowVideoScreen(content[selectedEpisode])
end if
end if
end if
end if
end while
end sub
as I can do that again you have selected episode
Our system http://www.rokumanager.com