We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The sound volume property not working if set at creation time on Android
const sound=Titanium.Media.createSound({ url, volume});
FIXING WORKAROUND:
Set it separately:
sound.volume=volume;
Set the sound volume
Play as 1 or as 0
X
Android
12.4.0.GA
No response
The text was updated successfully, but these errors were encountered:
working fine here
var win = Ti.UI.createWindow(); var tf = Ti.UI.createTextField({value: "0.5"}) win.addEventListener("click", function() { var player = Ti.Media.createSound({ url: "/boing.mp3", volume: tf.value }); player.play(); }) win.add(tf); win.open();
i can change the volume in the textfield and click in the window to play the sound. The volume is changing.
Tested with Ti 12.4.0.GA
Sorry, something went wrong.
@Informate did you test the code and verify if it is working for you too?
I will do it as soon as I'll can. Anyway I found the volume problem inside a service. I'll make a deeper test but it will take some time.
No branches or pull requests
I have searched and made sure there are no existing issues for the issue I am filing
Description
The sound volume property not working if set at creation time on Android
FIXING WORKAROUND:
Set it separately:
Expected Behavior
Set the sound volume
Actual behavior
Play as 1 or as 0
Reproducible sample
X
Steps to reproduce
X
Platform
Android
SDK version you are using
12.4.0.GA
Alloy version you are using
No response
The text was updated successfully, but these errors were encountered: