incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-620) Phonegap needs a way to detect the state of the iPhone mute button (unsure about other platforms and if they have mute buttons)
Date Fri, 03 Aug 2012 15:00:04 GMT

     [ https://issues.apache.org/jira/browse/CB-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah resolved CB-620.
---------------------------------

    Resolution: Won't Fix

See issue links. We can't detect it reliably on iOS > 4.
                
> Phonegap needs a way to detect the state of the iPhone mute button (unsure about other
platforms and if they have mute buttons)
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-620
>                 URL: https://issues.apache.org/jira/browse/CB-620
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Andrew
>            Assignee: Shazron Abdullah
>
> So, I am using sound effects as part of my interface. Currently I am playing clicks when
the user touches one of the buttons, however I have some other stuff I may add soon. I am
using the Media object and media.play to do this (perhaps there is a better way I am simply
missing).
> I noticed that my Phonegap app still makes the clicks even when I click the mute button,
so I looked for details on how to fix this. As far as I could see, from numerous posts about
this, there isn't a way. This seems bizarre to me. I couldn't find an answer to the problem.
Someone posted a 1-sentence reply and a link to a Stackoverflow answer that was completely
in Obj-C, so I don't what they were talking about.
> I even found one post that said that in version 1.0 the mute button DID work, but people
complained that audio wouldn't play when the phone was on mute, so the behaviour was changed.
Which is craaaaaaaazy. Someone from Nitobi wrote "If sound is critical to your application
then it should ignore the state of the mute switch", which again is craaaazy.
> I love Phonegap because, up until now, everything I've tried with it has seemed like
an actual native iOs app, and I haven't had those "ugh, ____ feature doesn't work and it makes
this look like a cheap kludge" moments I've had with every other alternative to Obj-C that
I've tried. This, however, is one of those things.
> iPhone users are used to clicking the mute switch while using an app to turn the sound
off, perhaps to talk to someone or whatnot. I do it all the time. If I did it, and the interface
kept making sounds, I would instantly hate whatever app I was using, and probably look to
replace it immediately. Not having a way for Phonegap developers to mute their app is bizarre,
and, while I'm not going to complain to Apple about it, I can't believe they're approving
apps that exhibit this behavior, it seems like the EXACT kind of reason they rejects apps
for. I have never read the HIG rules as far as muting sounds goes however, because it's SUCH
a standard thing, 100% of native apps just do it, it's not even an issue. 
> So, what can be done? Is there something I'm missing? I guess right now I'm going to
have to leave sounds out of my interface, but that's lazy, and as someone who cares deeply
about having a polished, professional interface, adding audio cues is something high on my
list of must-haves. I'm not too happy about just giving them up because there's no event to
detect the mute button.
> I sure hope I am making a fool of myself and have missed something easy, and that there's
a simple solution to this!
> Andrew T.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message