Commit 9810ccf7 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Same mute button for lua http interface

parent 49831d15
......@@ -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>
......
......@@ -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 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment