]> git.sesse.net Git - vlc/commitdiff
Same mute button for lua http interface
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 4 Sep 2010 17:58:34 +0000 (19:58 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 4 Sep 2010 17:58:34 +0000 (19:58 +0200)
share/lua/http/dialogs/main
share/lua/http/js/functions.js

index e213b4b3a6dd2d84110cc04f2ff860134ca178c1..55b302e2e23fbf0cdb946cdc69236f36e3764db9 100644 (file)
@@ -94,6 +94,11 @@ 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 d965e06b82bd85dca8fc66711ccd5b4e8bd2cfe7..d751716c0fc4ebb880fb2a17200d97c17b390557 100644 (file)
@@ -374,6 +374,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 );