[
https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396340#comment-13396340
]
Shazron Abdullah commented on CB-879:
-------------------------------------
Android implementation is based on a float value between 0.0 to 1.0:
https://github.com/apache/incubator-cordova-android/blob/master/framework/src/org/apache/cordova/AudioHandler.java#L339-353
> Support to set the volume when playing short sounds
> ---------------------------------------------------
>
> Key: CB-879
> URL: https://issues.apache.org/jira/browse/CB-879
> Project: Apache Cordova
> Issue Type: Bug
> Components: Bada, CordovaJS, Docs, iOS, mobile-spec, webOS, WP7
> Affects Versions: 1.7.0, 1.8.0
> Reporter: Dominik
> Assignee: Shazron Abdullah
> Fix For: 1.9.0
>
>
> Looking at
> http://docs.phonegap.com/en/edge/cordova_media_media.md.html#media.play
> it seems like PhoneGap doesn't allow to set the volume when we play audio
> files (in order that it is set prior to when the playing actually starts). In
> my case I would like to pass the volume as a parameter to this method here:
> function playAudio(url)
> in order to play a short beep.
> I looked at the PhoneGap implementation for Android and iOS and it seems to
> be easy to implement on these two platforms.
> Would it make sense to add support for this?
--
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