Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked April 14th 2010 by JeanSebastien GALLOO
  • iphone
  • mediaplayer
  • sound
  • volume
0 Comments

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
    
    — answered April 14th 2010 by Martijn Pannevis
    permalink
    0 Comments
  • 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 :-)

    — answered April 14th 2010 by JeanSebastien GALLOO
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.