Software Archive
Read-only legacy content
17061 Discussions

Mute Device

ch_r
Beginner
221 Views

Hello!

i'm not sure if ist the right place to ask this question here. I am making an app which displays Interstitials via the AdMob Plugin Pro.

So it can happen that the Interstitials play videos with sound. Is there a way to mute the device or turn down the sound?

I hope someone can help me with the problem!

 

0 Kudos
1 Solution
Dale_S_Intel
Employee
221 Views
0 Kudos
2 Replies
Dale_S_Intel
Employee
221 Views

>You can try using the media plugin to set the volume to 0.  I haven't tried it, but it should be something like this:

>media.setVolume(0.0);

 

Ooops, nevermind.  That only sets it for whatever the media object is playing.  You'll need to find a plugin that controls the device volume (cf http://www.telerik.com/forums/phone-volume-control).


 

 

0 Kudos
Dale_S_Intel
Employee
222 Views

This one seems to work for me, even though it looks like it hasn't been touched in a couple years:

https://github.com/radiantfm/fm.radiant.cordova.utils.volume

http://phonegap-plugins.com/plugins/radiantfm/fm.radiant.cordova.utils.volume

 

 

0 Kudos
Reply