Forum Discussion
5 Replies
- RokuJoelBinge WatcherYou need to return a code (you choose what that code is and its meaning)from the ShowVideoScreen and check the value of that code in the showDetailScreen function and depending on the code, return to the home screen. An example:
in showVideoScreen:
if msg.isScreenClosed()
print "Screen closed"
return -2
in showDetailScreen:
code=showVideoScreen(showList[showIndex])
if code=-2 then
return -2
end if
However it is not standard to return to the top, instead you should return to your springboard screen.
- Joel - bandalVisitorThanks, it is a request from a customer that wants it this way. I agree we should return to the springboard screen.
Update: I tried it but still pops back to the Resume Playing and Play. versus to the main Category Icons. - RokuJoelBinge WatcherYou need to have every condition that exits the video return a -2, so msg.isfullresult() msg.isrequestfailed() msg.is requestsucceeded() should all return a -2, and of course your test in the showDetailsScreen function should be immediately after the video playback functino returns. Also you'll probably want to modify the showVideoScreen function like:
function showVideoScreen(episode as object) as integer
- Joel - destrukStreaming StarIt's not standard coding, but you could also simply use the External Control Protocol to re-launch your channel which would 'indubitably' bring them to the home screen rather than stepping up the tree closing all the screens in sequence to the home screen. 🙂
- RokuJoelBinge WatcherThat is so inelegant.
- Joel