언어 설정

Menu
Sites
Language
Mute the sound of device on button click

Hi,

   I want to mute the sound of device when i click a buuton.

I want to create a button and when i click on the button the sound of the device should be mute.

 

 

Please help me

Thanks and regards

Mohit Kumar

 

Responses

2 댓글
AVSukhov

Hello,

More info about Sound API you can found here:

https://developer.tizen.org/development/guides/web-application/tizen-features/multimedia/sound

https://developer.tizen.org/development/tutorials/web-application/tizen-features/multimedia/sound

Palitsyna

Hello,

try following code:

tizen.sound.setVolume("MEDIA", 0);

use one of the following parameters according to your purpose:

  • SYSTEM - for system sounds
  • NOTIFICATION - for notifications
  • ALARM - for alarm
  • MEDIA - for media playback
  • VOICE - for voice
  • RINGTONE - for the phone ring

 

You can find more information here: https://developer.tizen.org/dev-guide/2.4b/org.tizen.web.apireference/html/device_api/mobile/tizen/sound.html