]> git.sesse.net Git - vlc/commitdiff
Added mute button to http interface
authorAdrien Cunin <adri2000@ubuntu.com>
Sat, 4 Sep 2010 14:25:11 +0000 (16:25 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 4 Sep 2010 17:55:39 +0000 (19:55 +0200)
It lacks an icon for now and doesn't have the "unmute" ability.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
share/http/dialogs/main
share/http/js/functions.js

index ecf038a0766b9ef7aef3ab5d59440e3f3e9fa37e..244c4d9f83b3ac9bb204c90d60a79953c9dc9639 100644 (file)
@@ -94,6 +94,10 @@ sout and playlist .
       <img src="images/volume_up.png" alt="Increase Volume" />
       <span class="btn_text">Increase Volume</span>
     </button>
+    <button id="btn_volume_mute" onclick="volume_mute();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Mute Volume" >
+      <img src="images/volume_mute.png" alt="Mute Volume" />
+      <span class="btn_text">Mute Volume</span>
+    </button>
   </div>
   <div id="status">
     <span id="state">(?)</span>
index 9ecce150de2d5ce60033d8305ea071c9c711c66a..c09222cbdd5bc587cc5a236159974caa6aefa4a7 100644 (file)
@@ -379,6 +379,10 @@ function volume_up()
 {
     loadXMLDoc( 'requests/status.xml?command=volume&val=%2B20', parse_status );
 }
+function volume_mute()
+{
+    loadXMLDoc( 'requests/status.xml?command=volume&val=0', parse_status );
+}
 function seek( pos )
 {
     loadXMLDoc( 'requests/status.xml?command=seek&val='+pos, parse_status );