Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71A2CDCB9 for ; Thu, 5 Jul 2012 13:49:40 +0000 (UTC) Received: (qmail 15847 invoked by uid 500); 5 Jul 2012 13:49:38 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 15660 invoked by uid 500); 5 Jul 2012 13:49:38 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 15566 invoked by uid 99); 5 Jul 2012 13:49:36 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2012 13:49:36 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id BF63E1402B8 for ; Thu, 5 Jul 2012 13:49:35 +0000 (UTC) Date: Thu, 5 Jul 2012 13:49:33 +0000 (UTC) From: "Becky Gibson (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <832244966.8481.1341496175789.JavaMail.jiratomcat@issues-vm> In-Reply-To: <91619480.14312.1335903414108.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (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) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407103#comment-13407103 ] Becky Gibson commented on CB-620: --------------------------------- Apple does give several options for how sound should behave in an application. As noted above, PhoneGap/Cordova has changed the behavior of whether or not sounds play when the mute button is engaged. We can extend the media api to provide options for how to handle audio - see http://developer.apple.com/library/ios/#DOCUMENTATION/Audio/Conceptual/AudioSessionProgrammingGuide/Configuration/Configuration.html for the iOs categories. However, whenever we have discussed extending the media api to add more features this has been nixed in favor of an overhaul to better match the w3c apis. > 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