incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Walters <deedu...@gmail.com>
Subject Re: How to set the volume when we play sounds?
Date Thu, 31 May 2012 12:59:13 GMT
FYI, Android and BB (in 1.8) implement a setVolume() API on the Media
object. Specify a value between 0.0 and 1.0:

media.setVolume('0.5');

One deficiency is that there is not currently a corresponding
getVolume() implemented.

On Thu, May 31, 2012 at 7:47 AM, Brian LeRoux <b@brian.io> wrote:
> Hi Dominik, I had a quick look around and there is prior art here (in
> opera anyhow) [1] so I think tis a good addition. We've slated to have
> a second look at media post 2.x in the roadmap so I updated it there.
> [2]
>
> 1. http://dev.opera.com/articles/view/html5-audio-radio-player/
> 2. http://wiki.apache.org/cordova/RoadmapProjects
>
> On Wed, May 30, 2012 at 6:39 PM, dominik schraner
> <dominik.schraner@nware.in.th> 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 my case I would like to pass the volume as a parameter to this
>> method here:
>>
>> function playAudio(url)
>>
>>
>> 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?
>>

Mime
View raw message