You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2012/07/17 23:57:34 UTC

[jira] [Commented] (CB-879) Support to set the volume when playing short sounds

    [ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416643#comment-13416643 ] 

Jesse MacFadyen commented on CB-879:
------------------------------------

What was the result of this? 

I see setVolume in cordova-js, even for Windows Phone, but I see no documentation at all!
I see from the above that the value is a float from 0-1, but it would be nice to not have to dig through code to find out critical info like this. 

                
> 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