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 (JIRA)" <ji...@apache.org> on 2012/06/07 09:36:22 UTC
[jira] [Created] (CB-879) Support to set the volume when playing
short sounds
Dominik created CB-879:
--------------------------
Summary: 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: Android, iOS
Affects Versions: 1.7.0
Reporter: Dominik
Assignee: Joe Bowser
Fix For: 1.8.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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436929#comment-13436929 ]
Shazron Abdullah commented on CB-879:
-------------------------------------
@Guillaime please file another specific feature request regarding this, but this feature is not about syncing volumes, but setting a specific one for a file.
> 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396350#comment-13396350 ]
Shazron Abdullah commented on CB-879:
-------------------------------------
Hey Fil, when did we remove Media.create? I still see it in cordova-js:
https://github.com/apache/incubator-cordova-js/blob/master/lib/common/plugin/Media.js
Let me know before I implement this setVolume thing on iOS, which will depend on Media.create
> 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396932#comment-13396932 ]
Filip Maj commented on CB-879:
------------------------------
I've resolved CB-845 and CB-846 as won't fix so you can move forward with this issue Shaz.
> 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396360#comment-13396360 ]
Filip Maj commented on CB-879:
------------------------------
Sounds like back to the mailing list with this. IMO not worth it. You got 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Jesse MacFadyen (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396367#comment-13396367 ]
Shazron Abdullah commented on CB-879:
-------------------------------------
Yup I'll post to the ML
> 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396359#comment-13396359 ]
Shazron Abdullah commented on CB-879:
-------------------------------------
So does that mean create is staying "in" then? It is a no-op already on iOS, but if create is staying in, putting in setVolume is easy, if not, it's just slightly more complicated.
> 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
[jira] [Updated] (CB-879) Support to set the volume when playing
short sounds
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon MacDonald updated CB-879:
-------------------------------
Component/s: (was: Android)
WP7
Docs
Affects Version/s: 1.8.0
Fix Version/s: (was: 1.8.0)
1.9.0
Assignee: Shazron Abdullah (was: Simon MacDonald)
There is already a setVolume method for Android and BB. This should get added to iOS/WP7 and then documented for the 1.9.0 release.
> 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: Docs, iOS, 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Guillaume Charhon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436774#comment-13436774 ]
Guillaume Charhon commented on CB-879:
--------------------------------------
With phonegap 1.9.0 and iOS 5.1.1 it seems that the device volume is not taken into account.
> 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396356#comment-13396356 ]
Filip Maj commented on CB-879:
------------------------------
We have issues set up for removing the create action (CB-845 and CB-846) but like I said I don't think it's worth the refactor effort on Android.
> 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
[jira] [Resolved] (CB-879) Support to set the volume when playing
short sounds
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-879.
---------------------------------
Resolution: Fixed
fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/850a08b6
> 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396355#comment-13396355 ]
Filip Maj commented on CB-879:
------------------------------
Can we just no-op create actions on other platforms? Android uses create atm, and would require a large refactor to get it out. Not worth it before this API is trashed anyways.
> 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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Dominik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292691#comment-13292691 ]
Dominik commented on CB-879:
----------------------------
I think calling setVolume() on Android doesn't work in this case because it cannot be called prior to playing the sound. This is because the MediaPlayer instance is created in startPlaying() (see last line in code fragment below, taken from 1.7)
---
public void startPlaying(String file, float volume) {
if (this.recorder != null) {
Log.d(LOG_TAG, "AudioPlayer Error: Can't play in record mode.");
this.handler.sendJavascript("cordova.require('cordova/plugin/Media').onStatus('" + this.id + "', "+MEDIA_ERROR+", { \"code\":"+MEDIA_ERR_ABORTED+"});");
}
// If this is a new request to play audio, or stopped
else if ((this.mPlayer == null) || (this.state == MEDIA_STOPPED)) {
try {
// If stopped, then reset player
if (this.mPlayer != null) {
this.mPlayer.reset();
}
// Otherwise, create a new one
else {
this.mPlayer = new MediaPlayer();
----
and a call to
---
public void setVolume(float volume) {
this.mPlayer.setVolume(volume, volume);
}
---
will fail if mPlayer is not created yet.
We can call setVolume() right after startPlaying() but this would mean that the sound starts to play with the default volume (in my case it has already finished playing once the volume is set).
> 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
[jira] [Updated] (CB-879) Support to set the volume when playing
short sounds
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj updated CB-879:
-------------------------
Component/s: webOS
mobile-spec
CordovaJS
Bada
> 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
[jira] [Assigned] (CB-879) Support to set the volume when playing
short sounds
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon MacDonald reassigned CB-879:
----------------------------------
Assignee: Simon MacDonald (was: Joe Bowser)
> 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: Android, iOS
> Affects Versions: 1.7.0
> Reporter: Dominik
> Assignee: Simon MacDonald
> Fix For: 1.8.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
[jira] [Commented] (CB-879) Support to set the volume when playing
short sounds
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292873#comment-13292873 ]
Filip Maj commented on CB-879:
------------------------------
This supports the approach some platforms used before were, when you called `new Media` it would fire off `exec` with a `create` action. We just removed the create action recently though... sigh.
> 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