Playing sound when app runs in background

Hi,

I have been working on a free app with corona for the past month, and I forgot to check on one detail, which however turns out to be crucial: users must be able to start playing an audio file (which can last up to an hour and is in the documents folder once downloaded) and then turn off their screen so that they can just listen without using battery life due to the screen being needlessly turned on...However, I'm not able to find anything relevant on the docs or on the forums, NOT even anywhere when searching on google.

I did test all the following methods, without success:
1)media.playVideo
2)audio.loadSound
3)audio.loadStream
4)media.newEventSound

So I started believing that it wasn't possible to make this happen with Corona SDK...I did however find an app made with Corona, which is free, called URNoiseMaker: when you go to the "people" tab, and press the first applause which is a sound of around 6 seconds, does play in the background when I turn off the screen...

I'd really appreciate any help at all on this

I actually just found the solution to this, will post it soon to share it with anyone who could need this.

that would b awesome

c

In the meanwhile, others should search the forums for 'AudioSession'.

views:1158 update:2011/9/28 9:01:40
corona forums © 2003-2011