Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom video player event loop problem

Hi

I have problem with closing custom video player and going back to previous screen. My case is that from the Grid Screen on press on some item i am playing live stream in custom video player, custom video player have also event loop for navigation thru list of streaming urls but also on back button ( which is index 0 ) on the remote i set this two lines of code so i can close video player and image canvas:
m.player.Stop()
m.canvas.Close()

After closing the video player and the image canvas i am back to the Grid Screen but now event loop on Grid Screen is not working, is there any solution for this or some idea for what is wrong and how can i solve this?

Thanks
0 Kudos
1 REPLY 1
RokuJoel
Binge Watcher

Re: Custom video player event loop problem

add return -1 (or whatever type your video playback function is set to return) after the m.canvas.close. Normally though that would go in an if / then:


...
else if msg.isscreenclosed() then
return -1
else if...

0 Kudos