Titanium Community Questions & Answer Archive

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

Audio stream fades out and stops when iPhone display goes to sleep.

I have built a simple Shoutcast Radio streaming app for an online radio station. It works great, but when the iPhone display goes to sleep the audio fades out and then stops.

Apps I have downloaded from the app store that play audio appear to continue to play after the display goes to sleep.

Is this possible in Appcelerator? It's kinda important for an app like this.

— asked May 28th 2010 by Shealan Forshaw
  • audio
  • audioplayer
  • radio
  • shoutcast
  • stream

1 Answer

  • You can stop the device going to sleep using the 'idleTimerDisabled' setting


    But I don't know about keeping audio playing when the device goes to sleep.

    — answered May 28th 2010 by Kosso
    1 Comment
    • did u try to set audiosession mode to playback ..

      — commented April 2nd 2011 by Primoris online
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.