[
https://issues.apache.org/jira/browse/CB-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13296002#comment-13296002
]
Shazron Abdullah commented on CB-905:
-------------------------------------
To get a snapshot current system volume:
http://stackoverflow.com/a/7791498
To get a callback when the system volume changes:
http://ios.biomsoft.com/2011/12/07/taking-control-of-the-volume-buttons-on-ios-like-camera/
<-- but this is overkill for our application, since the hardware buttons will
adjust the media volume when it is playing.
Fix would be to set the current media volume based on the system volume. This
is done right before the audio is played here:
https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVSound.m#L199
This should be good enough.
> Hardware volume buttons don't effect Media API playback
> -------------------------------------------------------
>
> Key: CB-905
> URL: https://issues.apache.org/jira/browse/CB-905
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.8.0
> Environment: iPad 2/iOS 5.1.1
> iPhone 4/iOS 5.1.1
> Reporter: Nathan Demick
> Assignee: Shazron Abdullah
> Fix For: 1.9.0
>
>
> When using the Media API, the hardware volume buttons don't change the
> playback volume unless the button is pressed at these same time the sound is
> played.
> Expected behavior: hardware volume buttons change Media API playback volume
> regardless of whether media is currently being played.
--
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