Media Player Volume shut down when iPhone go in "sleep mode"
Hi, i used the Kitchensink code (Phone -> Sound -> Remote Streaming) to read a radio audio flux (mp3)
My problem is that when iPhone go in sleep mode (shutdown screen), the sound goes off and when i go back to the iPhone, sound comes back.
What are parameters to avoid this "sound shutting down" ?
Thanks very much
2 Answers
-
Thanks for mentioning this: I didn't test long enough yet to notice.
The solution seems to be at:
https://developer.appcelerator.com/question/3731/wake-lock—stop-the-phone-powering-off
Basically, it's this:Ti.App.idleTimerDisabled = true; // to disable going to sleep
-
Thanks very much.
That's do not avoid volume stop when clicking on top iPhone Button but avoid sleep during the use of app so that's subtile but enough :-)