<div>adding support for speed of playing added in http interface</div><div><br></div><div>diff --git a/share/http/dialogs/main b/share/http/dialogs/main</div><div>index 244c4d9..96773a3 100644</div><div>--- a/share/http/dialogs/main</div>
<div>+++ b/share/http/dialogs/main</div><div>@@ -98,6 +98,14 @@ sout and playlist .</div><div> <img src="images/volume_mute.png" alt="Mute Volume" /></div><div> <span class="btn_text">Mute Volume</span></div>
<div> </button></div><div>+ <button id="btn_speed_down" onclick="rate_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease Speed" ></div>
<div>+ <img src="images/slow.png" alt="Decrease Speed" /></div><div>+ <span class="btn_text">Decrease Speed</span></div><div>+ </button></div><div>+ <button id="btn_speed_up" onclick="rate_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase Speed" ></div>
<div>+ <img src="images/fast.png" alt="Increase Speed" /></div><div>+ <span class="btn_text">Increase Speed</span></div><div>+ </button></div><div> </div></div>
<div> <div id="status"></div><div> <span id="state">(?)</span></div><div>@@ -105,6 +113,8 @@ sout and playlist .</div><div> Time : <span id="time">(?)</span>/<span id="length">(?)</span></div>
<div> -</div><div> Volume : <span id="volume">(?)</span></div><div>+ -</div><div>+ Speed : <span id="rate">(?)</span></div><div> <br/></div><div> <!-- progress bar --></div>
<div> <img src="images/slider_left.png" alt="slider left" /><span id="progressbar" style="background-image: url( 'images/slider_bar.png' ); width: 408px; height:16px; position:absolute;" onclick="slider_seek( event, this );" onmousemove="slider_move( event, this );"><img src="images/slider_point.png" alt="slider point" style="position:relative; left:0px;" id="main_slider_point" onmousedown="slider_down( event, this );" onmouseup="slider_up( event, this.parentNode );" onmouseout="slider_up( event, this.parentNode );"/></span><img src="images/slider_right.png" alt="slider right" style="position:relative;left:408px;" /></div>
<div>diff --git a/share/http/js/functions.js b/share/http/js/functions.js</div><div>index c09222c..3d6c1bb 100644</div><div>--- a/share/http/js/functions.js</div><div>+++ b/share/http/js/functions.js</div><div>@@ -383,6 +383,14 @@ function volume_mute()</div>
<div> {</div><div> loadXMLDoc( 'requests/status.xml?command=volume&val=0', parse_status );</div><div> }</div><div>+function rate_up()</div><div>+{</div><div>+ loadXMLDoc( 'requests/status.xml?command=rate&val=150', parse_status );</div>
<div>+}</div><div>+function rate_down()</div><div>+{</div><div>+ loadXMLDoc( 'requests/status.xml?command=rate&val=-150', parse_status );</div><div>+}</div><div> function seek( pos )</div><div> {</div><div>
loadXMLDoc( 'requests/status.xml?command=seek&val='+pos, parse_status );</div><div>@@ -471,6 +479,8 @@ function parse_status()</div><div> set_text( 'length', format_time( length ) );</div>
<div> if( status.getElementsByTagName( 'volume' ).length != 0 )</div><div> set_text( 'volume', Math.floor(status.getElementsByTagName( 'volume' )[0].firstChild.data/5.12)+'%' );</div>
<div>+<span class="Apple-tab-span" style="white-space:pre"> </span> if( status.getElementsByTagName( 'rate' ).length != 0 )</div><div>+ set_text( 'rate', (status.getElementsByTagName( 'rate' )[0].firstChild.data)+'%' );</div>
<div> var statetag = status.getElementsByTagName( 'state' );</div><div> if( statetag.length > 0 )</div><div> {</div><div>diff --git a/share/http/requests/README.txt b/share/http/requests/README.txt</div>
<div>index cfd5a09..6e437b1 100644</div><div>--- a/share/http/requests/README.txt</div><div>+++ b/share/http/requests/README.txt</div><div>@@ -100,6 +100,12 @@ status.xml:</div><div> +1H:2M -> seek 1 hour and 2 minutes forward</div>
<div> -10% -> seek 10% back</div><div> </div><div>+> change playing speed(rate)</div><div>+ ?command=rate&val=<val></div><div>+ Allowed values are of the form:</div><div>+ <int><span class="Apple-tab-span" style="white-space:pre"> </span>To increase speed</div>
<div>+ -<int><span class="Apple-tab-span" style="white-space:pre"> </span>To decrease speed</div><div>+</div><div> playlist.xml:</div><div> =============</div><div> < get the full playlist tree</div><div>diff --git a/share/http/requests/status.xml b/share/http/requests/status.xml</div>
<div>index da6d3ca..7088df6 100644</div><div>--- a/share/http/requests/status.xml</div><div>+++ b/share/http/requests/status.xml</div><div>@@ -116,6 +116,9 @@</div><div> <vlc id="if" param1="command value 'volume' strcmp 0 =" /></div>
<div> <vlc id="rpn" param1="val value vlc_volume_set" /></div><div> <vlc id="end"/></div><div>+ <vlc id="if" param1="command value 'rate' strcmp 0 =" /></div>
<div>+ <vlc id="rpn" param1="'rate' 'VLC_OBJECT_INPUT' vlc_var_get val + 'rate' 'VLC_OBJECT_INPUT' vlc_var_set" /></div><div>+ <vlc id="end"/></div>
<div> <vlc id="if" param1="command value 'seek' strcmp 0 =" /></div><div> <vlc id="rpn" param1="val value vlc_seek" /></div><div> <vlc id="end"/></div>
<div>@@ -126,6 +129,7 @@</div><div> <vlc id="end" /></div><div> <root></div><div> <volume><vlc id="value" param1="volume" /></volume></div><div>+ <rate><vlc id="value" param1="100000 'rate' 'VLC_OBJECT_INPUT' vlc_var_get /"/></rate></div>
<div> <length><vlc id="value" param1="stream_length" /></length></div><div> <time><vlc id="value" param1="stream_time" /></time></div><div> <state><vlc id="value" param1="stream_state" /></state></div>