[TIMOB-7177] Android: createSound plays sound even if phone is on silent
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-03-20T18:44:37.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | exalture |
Reporter | Pedro Enrique |
Assignee | Sunila |
Created | 2012-01-13T13:06:30.000+0000 |
Updated | 2017-03-13T17:59:34.000+0000 |
Description
Problem:
Sound plays even if phone is mutedCode Sample:
var win = Ti.UI.createWindow();
var btn = Ti.UI.createButton({title:'Clcik Here'});
var sound = Ti.Media.createSound({url:'sound.wav'});
btn.addEventListener('click', function(){
sound.play();
});
win.add(btn);
win.open();
To Reproduce
Use the attached "sound.wav" and the provided code and press the button to listen to the sound. Then turn the phone to vibrate and press againAttachments
File | Date | Size |
---|---|---|
sound.wav | 2012-01-13T13:06:30.000+0000 | 60908 |
Tested with 2.0.1GA2 on a Samsung Galaxy S2, issue still seems to exist.
There is separate volume control for ringtone and music. If I make the volume for music to 0, then I don't hear the sound.
Closing ticket as invalid.