How can i Mute android Media player programmatically?

Mute media player:

<pre class="default prettyprint prettyprinted"><code><span class="pln">mp</span><span class="pun">.</span><span class="pln">setvolume</span><span class="pun">(</span><span class="lit">0</span><span class="pun">,</span><span class="lit">0</span><span class="pun">);</span></code></pre>

for Unmute or full volume

<pre class="default prettyprint prettyprinted"><code><span class="pln">mp</span><span class="pun">.</span><span class="pln">setvolume</span><span class="pun">(</span><span class="lit">1</span><span class="pun">,</span><span class="lit">1</span><span class="pun">);</span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="pun"> </span></code></pre>
It's only fair to share...Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInEmail this to someoneBuffer this pageDigg thisFlattr the authorShare on StumbleUponPin on PinterestShare on YummlyShare on VKShare on RedditPrint this pageShare on Tumblr
Related Posts

2 Comments

  1. Fae Abatiell June 13, 2015 Reply

Add a Comment

Your email address will not be published. Required fields are marked *