Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Contributor
chrisaiv
Posts: 3
Registered: ‎11-09-2010
My Device: Playbook
My Carrier: None
Accepted Solution

Keep Audio Playing while in Dim (or Sleep?) mode

I've written an HTTP Live Streaming client but the audio seems to cut out when a user manually dims the Playbook. I'm currently using NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE; to keep the Playbook from sleeping but I'd like to find a more elegant approach.  Is there anyway to keep the music from stopping when placed in Sleep Mode?




Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Keep Audio Playing while in Dim (or Sleep?) mode

You'll likely want to look into the QNXSystemPowerMode stuff, starting with the Knowledge Base article on it.

 

As a crude first test, try putting <inactivePowerMode>throttled</inactivePowerMode> in your blackberry-tablet.xml file, or use the equivalent code approach by setting 

QNXSystem.system.inactivePowerMode = QNXSystemPowerMode.THROTTLED;

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
shawnblais
Posts: 439
Registered: ‎10-25-2010
My Device: Not Specified

Re: Keep Audio Playing while in Dim (or Sleep?) mode

Wow that actually works! Nice find!

Please use plain text.
New Contributor
chrisaiv
Posts: 3
Registered: ‎11-09-2010
My Device: Playbook
My Carrier: None

Re: Keep Audio Playing while in Dim (or Sleep?) mode

Brilliant! Thank you!
Please use plain text.