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: 
peterede
Reel Rookie

Playing audio stops when screensaver activates

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.
0 Kudos
3 REPLIES 3
joetesta
Roku Guru

Re: Playing audio stops when screensaver activates

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
0 Kudos
squirreltown
Roku Guru

Re: Playing audio stops when screensaver activates

"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
0 Kudos
Komag
Roku Guru

Re: Playing audio stops when screensaver activates

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.