Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
peterede
Level 7

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
joetesta
Level 10

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
Level 8

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
Level 9

Re: Playing audio stops when screensaver activates

0 Kudos