Skip to main content
Inspiring
October 3, 2011
Question

AIR 3 ios app not muted by iPhone physical mute switch

  • October 3, 2011
  • 2 replies
  • 4108 views

hey

my app keeps playing sounds even when the iPhone 3g's physical mute button is switched

is that a bug?

Saar

This topic has been closed for replies.

2 replies

Participant
October 17, 2011

my store guests are angry on ios.

lisachao
Adobe Employee
Adobe Employee
October 3, 2011

Hi Saar,

The "Mute" switch is actually for system alerts and notifications, not the overall system volume.

If a user expressly asks for a function that involves sound (like a movie or listening to music) the mute does not affect those apps.

But while watching the movie, with the Mute switch on, you will not get system notifications to interrupt the sound, like when you get a new E-mail.

The overall system volume has not been changed and is still controlled with the volume toggle buttons.

Hope this helps!

-Lisa Chao

Adobe Flash Runtime team

saarikoAuthor
Inspiring
October 3, 2011

hey Lisa

thanx 4 the answer

i understand that this is not a bug but intended but Adobe should pay attention to implementing smooth user interface - check out Angry Birds for instance and you will see (or actually hear) that the mute switch mutes the app, just as it's software button does also.

all other games i have on my iPhone act the same way

i think Adobe should at least give the option, by actionscript,  to mute the overall sound with the switch.

while you are right about movies being played, games should be muted. that is what the regular ios user expects

thanx again

Saar

October 4, 2011

Hi Sariko:

You can achieve this by using native extensions.You can use the simple code given at http://stackoverflow.com/questions/5560555/avaudiosession-category-not-working-as-documentation-dictates this will return bool value stating the state of the mute switch and then your app may decide to play sounds or stop them. You can google for Sample iOS native extensions to get started.

Little More Explaination:

The iOS gives the app an opprtunity to state the kind of Audio that is being played. (Music, Ambient Audio like game sounds and many more) and then based on this category iOS defines Audio Behaviours like if it can be mixed with other sounds, wheather mute switch is respected etc. This behaviour is very specific to iOS which may not be found on other Mobile Platforms(not sure though).