[vlc-commits] commit: Same mute button for lua http interface (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Sat Sep 4 19:58:57 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Sep 4 19:58:34 2010 +0200| [9810ccf7f16a8d7241ad33c763b031abe6f1cf3d] | committer: Jean-Baptiste Kempf
Same mute button for lua http interface
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9810ccf7f16a8d7241ad33c763b031abe6f1cf3d
---
share/lua/http/dialogs/main | 5 +++++
share/lua/http/js/functions.js | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/share/lua/http/dialogs/main b/share/lua/http/dialogs/main
index e213b4b..55b302e 100644
--- a/share/lua/http/dialogs/main
+++ b/share/lua/http/dialogs/main
@@ -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>
diff --git a/share/lua/http/js/functions.js b/share/lua/http/js/functions.js
index d965e06..d751716 100644
--- a/share/lua/http/js/functions.js
+++ b/share/lua/http/js/functions.js
@@ -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 );
More information about the vlc-commits
mailing list