Check the on / mute status of the device settings


#1

When using cordova-plugin-media with

var media = new Media(getMediaURL('sounds/msg_in.mp3'));
media.play();

sound is played, regardless of whether on / mute status of the device settings. How do I track it?
Thanks in advance for your reply.


#2

use following pugin to get the volume information before you play sound
fm.radiant.cordova.utils.volume