Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7177] Android: createSound plays sound even if phone is on silent

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-03-20T18:44:37.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsexalture
ReporterPedro Enrique
AssigneeSunila
Created2012-01-13T13:06:30.000+0000
Updated2017-03-13T17:59:34.000+0000

Description

Problem:

Sound plays even if phone is muted

Code 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 again

Attachments

FileDateSize
sound.wav2012-01-13T13:06:30.000+000060908

Comments

  1. Junaid Younus 2012-05-17

    Tested with 2.0.1GA2 on a Samsung Galaxy S2, issue still seems to exist.
  2. Sunila 2013-03-20

    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.
  3. Lee Morris 2017-03-13

    Closing ticket as invalid.

JSON Source