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: 
Kosso1
Binge Watcher

How to prevent ScreenSaver while playing live Audio

Hi,

One of the Screens in our app is a live radio stream player for our radio station. 
The screen constantly updates with which show and track is playing. 

We would rather not have the screensaver kick in while the Audio node is playing, thinking the app is idle. 

Is this possible?


0 Kudos
4 REPLIES 4
speechles
Roku Guru

Re: How to prevent ScreenSaver while playing live Audio

m.player.disableScreenSaver = true

0 Kudos
Kosso1
Binge Watcher

Re: How to prevent ScreenSaver while playing live Audio

Hi.

Thanks.  But that field is for a Video node, not an Audio node. 

Very confusing why this field wouldn't also be available for an Audio node, since I've never had to set it for our Video player, as the screensaver never kicks in while playing video anyway.


I assume my only option is to use an 'invisible' Video node?

 

0 Kudos
speechles
Roku Guru

Re: How to prevent ScreenSaver while playing live Audio

It works on the audio node too. Roku has documentation wrong. Try it and see for yourself.

0 Kudos
Kosso1
Binge Watcher

Re: How to prevent ScreenSaver while playing live Audio

Hi. 

Hmm , I did try it earlier, but got the error: 

Warning occurred while setting a field of an RoSGNode
-- Tried to set nonexistent field "disablescreensaver" of a "Audio" node

And I just tested it again and the screensaver still kicked in.
 
Using an invisible Video node for our audio stream seems to work just fine. 🙂 


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.