Copy link to clipboard
Copied
Hi,
It appears that for each version of AIR from 4 till 15 beta, a sound could not be played when the device is put into sleep mode after pressing the POWER button.
I'm experiencing the following issue on ios 7 devices(ipad air, iphone 5). I've created a simple app - an infinite timer which plays a short sound(~3 sec long) in every 4 sec. After pressing the POWER button the sound stops playing. When the app is back into foreground, after a few seconds the
sound's playback is restored. The app sounds are not interrupted when it is put into background with the HOME button.
Here is the src code:
package
{
import flash.display.Sprite;
import flash.events.TimerEvent;
import flash.media.Sound;
import flash.utils.Timer;
import flash.desktop.NativeApplication
public class TestSound extends Sprite
{
[Embed(source="../assets/sounds/sport_air_horn_reverb.mp3")]
public static var SoundHorn:Class
public function TestSound()
{
NativeApplication.nativeApplication.executeInBackground = true;
const sound:Sound = new SoundHorn()
const timer:Timer = new Timer(4000)
timer.addEventListener(TimerEvent.TIMER, function(e:TimerEvent):void {
trace('play horn')
sound.play()
} )
timer.start()
}
}
}
I've enabled background execution as you can see and configured the info additions as so:
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
Copy link to clipboard
Copied
Any help?
Copy link to clipboard
Copied
Could you please open a new bug report on this over at bugbase.adobe.com? When adding the bug, please include the sample code above or a sample application so we can quickly test this out internally. If you'd like to keep this private, feel free to email the attachment to me directly (ccampbel@adobe.com).
Once added, please post back with the bug number and I'll start the internal investigation.
Copy link to clipboard
Copied
Hi, Chris
I would like to know if this issue was fixed because I am experiencing the same problem in my app. Can you help me find this issue in the bugbase?