Discussion Forums  >  Uncategorized

Replies: 3    Views: 516

creedifee
Aspiring developer
Profile
Posts: 19
Reg: Jan 11, 2012
Tyler, TX
190
02/17/12 07:47 AM (10 years ago)

How do I keep phone from powering down while html5 audio plays in my iOS app?

Hi folks, I have an app that plays audio using the html5 audio tag in a webview. I am now testing on real phones and find that while playing my audio the phone powers off (sleep) like it usually does if you do not touch the screen for a time. Is there any way to stop this? Perhaps there is a JavaScript function that can invisibly simulate an action to keep the screen alive? Any ideas would be much appreciated.
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
Fourm Star
like
02/23/12 03:05 AM (10 years ago)
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
Fourm Star
like
02/23/12 03:07 AM (10 years ago)
 
creedifee
Aspiring developer
Profile
Posts: 19
Reg: Jan 11, 2012
Tyler, TX
190
like
02/24/12 05:16 PM (10 years ago)
Thanks so much teqbean!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.