Skip to main content
emmau10371638
Inspiring
January 9, 2017
Question

After DEACTIVATE mode air ios app sound mutes automatically

  • January 9, 2017
  • 1 reply
  • 579 views

hello,

AIR IOS APP, AS3.

I hope someone can help me. Sound stops automatically  on the iPad for a while  when the  ACTIVATED mode has been started.

The longer the iPad is in the  DEACTIVATED mode,the longer the sound stops. After a while it starts to play.

It doesn't matter I put (sound ) code or not to the script.

how can I fix the problem?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 9, 2017

i've never had a problem using an activate listener to restart sound.  are you using a listener?

emmau10371638
Inspiring
January 9, 2017

NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, onDeactivate);

function onDeactivate(e:Event):void {

SoundMixer.stopAll();

}

NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, onActivate);

function onActivate(e:Event):void {

clock2.play(0,1000);

}

it works ...only after a while.

also without  the whole code above I  have the same problem after the sleeping mode.the sound starts later.

i will check tomorrow the code on another iPad.

kglad
Community Expert
Community Expert
January 11, 2017

Tnx kglad voor the reply,

It was not the problem. I think maybe the problem is the swf  is a level from the main.swf.

maybe I can use the keep_awake mode, something like that.


i don't understand your setup.