Hotkeys via HTTP interface
Posted: 03 May 2011 10:31
I try to find way to zoom video via http interface. But I got some problem with it.
As I see in functions.js:
there is function to emulate hotkey press. I add two new buttons to main part of web interface:
but its do nothing: when I press this buttons in web interface, in logs appears messages:
Is it possible to zoom video via http interface? I'll do it wrong?
As I see in functions.js:
Code: Select all
function hotkey( str )
{
/* Use hotkey name (without the "key-" part) as the argument to simulate a hotkey press */
loadXMLDoc( 'requests/status.xml?command=key&val='+str, parse_status );
}
Code: Select all
<button id="btn_zoom_double" onclick="hotkey('zoom-double');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Zoom Double" >
<img src="images/zoom_double.png" alt="Zoom Double" />
<span class="btn_text">Zoom Double</span>
</button>
<button id="btn_zoom_half" onclick="hotkey('zoom-half');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Zoom Half" >
<img src="images/zoom_half.png" alt="Zoom Half" />
<span class="btn_text">Zoom Half</span>
</button>
and zoom of video not changes.[0x927b9b8] http interface warning: vlc_var_get called without an object
[0x927b9b8] http interface warning: vlc_var_set called without an object
Is it possible to zoom video via http interface? I'll do it wrong?