peterede
Reel Rookie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2019
06:37 PM
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.
3 REPLIES 3
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2019
01:30 PM
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.
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

squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2019
01:58 PM
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

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2019
02:42 AM
Re: Playing audio stops when screensaver activates
Is that part of this?
https://developer.roku.com/docs/references/brightscript/interfaces/ifappmanager.md
https://developer.roku.com/docs/references/brightscript/interfaces/ifappmanager.md