Check the on / mute status of the device settings

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.

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