-
1. Re: Mute/Unmute toggle button on iOS devices doesn't mute AIR 4.0 apps
Colin Holgate Feb 18, 2014 2:38 PM (in response to edmunditor)We have chosen to stop honoring the mute switch, because a lot of our support emails are from people who think the app doesn’t have any sound. Our apps are still approved by Apple.
But out of interest, as I happen to be updating an app right now, I re-enabled the line:
SoundMixer.audioPlaybackMode = AudioPlaybackMode.AMBIENT;
and sure enough the mute switch works. Which makes me think that you’re testing on a device that has the mute switch set to do auto rotation lock.
-
2. Re: Mute/Unmute toggle button on iOS devices doesn't mute AIR 4.0 apps
edmunditor Feb 18, 2014 3:23 PM (in response to Colin Holgate)Whoops, I looked into this further. So I was testing with headphones to not interrupt coworkers, it turns out that even if iOS tells you that it's muting/unmuting, the audio keeps playing because the headphones are plugged. Did not realize that this was the expected behavior! In MEDIA mode it seems to not have any effect but this is also the case when playing music out of the native Music app, so it seems to bee the correct behavior.
We DID have a bug that our app was being set to MEDIA due to a bad legacy AIR version check that we implemented. Once we fixed that and force it to AMBIENT, and tested without headphones plugged in, things are back to normal.
False alarm!
-
3. Re: Mute/Unmute toggle button on iOS devices doesn't mute AIR 4.0 apps
Colin Holgate Feb 18, 2014 3:29 PM (in response to edmunditor)Yes, that thing with using headphones was a surprise to me too.
Make sure to update your bug report, so they don’t spend too much time on it!
-
4. Re: Mute/Unmute toggle button on iOS devices doesn't mute AIR 4.0 apps
tom_ayz May 10, 2014 12:32 AM (in response to Colin Holgate)I am still having this problem. Cant get it to work with air 4.o. Any ideas?
-
5. Re: Mute/Unmute toggle button on iOS devices doesn't mute AIR 4.0 apps
Colin Holgate May 10, 2014 4:37 AM (in response to tom_ayz)You have to do these things if you want the mute switch to work:
import flash.media.AudioPlaybackMode;
SoundMixer.audioPlaybackMode = AudioPlaybackMode.AMBIENT;


