You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Dominik Schraner <do...@gmail.com> on 2012/06/07 05:25:58 UTC
How to set the volume when we play sounds?
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?
Re: How to set the volume when we play sounds?
Posted by Simon MacDonald <si...@gmail.com>.
There is a setVolume for Android and BB but it needs to get into iOS
and then documented.
Simon Mac Donald
http://hi.im/simonmacdonald
On Wed, Jun 6, 2012 at 11:25 PM, Dominik Schraner
<do...@gmail.com> wrote:
> 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?