Thanks for your help on this...
While the initial problem (of the grid not redrawing on vid exit/close) is resolved - I know have the problem that on my Roku XS - I get a green flash when I close the video. However, I do not have this problem on my Roku LT.
What am I doing wrong??!
screenFacade = CreateObject("roGridScreen")
screenFacade.show()
grid.Close()
video.SetContent(videoclip)
video.show()
lastSavedPos = 0
statusInterval = 10 'position must change by more than this number of seconds before saving
while true
vidmsg = wait(0, video.GetMessagePort())
if type(vidmsg) = "roVideoScreenEvent" then
print "showVideoScreen | vidmsg = "; vidmsg.GetMessage() " | index = "; vidmsg.GetIndex()
if vidmsg.isScreenClosed()
print "Screen closed"
exit while
elseif vidmsg.isRequestFailed()
print "Video request failure: "; vidmsg.GetIndex(); " " vidmsg.GetData()
elseif vidmsg.isStatusMessage()
print "status message: "; vidmsg.GetMessage()
elseif msg.isButtonPressed()
print "Button pressed: "; vidmsg.GetIndex(); " " vidmsg.GetData()
elseif vidmsg.isPlaybackPosition()
print "playback position: "; vidmsg.GetIndex()
else
print "Unexpected event type: "; vidmsg.GetType()
end if
else
print "Unexpected message class: "; type(vidmsg)
end if
end while
screenFacade.close()
As per theEndless's suggestion - I tried closing the Grid, after launching the Facade.... however - I can't work out how to restart the Grid, when the Video closes. I tried grid.Show(), but it just crashed out.