Your Digital Media Has Never Looked So Good

 
peterede
Topic Author
Posts: 1
Joined: Wed Jun 26, 2019 6:34 pm

Playing audio stops when screensaver activates

Wed Jun 26, 2019 6:37 pm

I have a Roku Channel that plays a playlist of songs and uses observefield on the state value of the music player to detect when a song finishes in order to play the next one but when the screensaver activates the function is not called after the song ends so the next song does not play.
 
joetesta
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

Re: Playing audio stops when screensaver activates

Thu Jun 27, 2019 1:30 pm

This might work for you: "disableScreenSaver": Set this to true to suppress the screensaver. This is typically used to suppress the screensaver when playing audio-only streams. https://developer.roku.com/docs/references/scenegraph/media-playback-nodes/video.md

If not, you could also use ECP while audio is playing to send a keypress from within the app every 59 seconds or so, that will prevent screensaver.
aspiring
 
User avatar
squirreltown
Posts: 865
Joined: Sun Apr 21, 2013 2:20 pm

Re: Playing audio stops when screensaver activates

Thu Jun 27, 2019 1:58 pm

joetesta wrote:
not, you could also use ECP while audio is playing to send a keypress from within the app every 59 seconds or so, that will prevent screensaver.

Mercifully, this trick has been replaced with the 

appmanager.UpdateLastKeyPressTime() 

trick.
you can also use 

appmanager.GetScreensaverTimeout() 

to find the interval to run it. 
Kinetics Screensavers
 

Who is online

Users browsing this forum: No registered users and 6 guests