[
https://issues.apache.org/jira/browse/CB-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13296056#comment-13296056
]
Shazron Abdullah commented on CB-905:
-------------------------------------
Ok, the approach above is not good enough -- the "hardware volume" button
controls the ringer/device volume. The volume you are seeing above is correct,
it is the same volume as the iPod music player - which is separate from the
ringer/device volume.
To set/get the ringer volume, you would have to use MPVolumeView
http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPVolumeView_Class/Reference/Reference.html
... but this class is opaque and visual only. There are a lot of hacks just to
get the ringer/device volume, which I don't think we want to go into:
http://blog.stormyprods.com/2009/06/adjusting-iphone-master-volume.html
So, right now, this doesn't look possible.
> 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