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.
1 Answer
-
You can stop the device going to sleep using the 'idleTimerDisabled' setting
https://developer.appcelerator.com/apidoc/mobile/1.3/Titanium.App-module
But I don't know about keeping audio playing when the device goes to sleep.