Commit 4847caca authored by Daniel Amm's avatar Daniel Amm Committed by Jean-Baptiste Kempf

test.html: improve demo for getting current position/time

The existing method 'doGetPosition() has returned the time instead of the position.
Now there are two own methods for getting time and position.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent a1846702
......@@ -368,6 +368,7 @@ function close()
</td>
<td style="text-align:right">
<input type="button" value="get position" onClick='doGetPosition();'>
<input type="button" value="get time" onClick='doGetTime();'>
</td>
</tr>
<tr>
......@@ -491,9 +492,16 @@ function doGetPosition()
{
var vlc = getVLC("vlc");
// set slider to new position
if( vlc )
alert( "position is " + vlc.input.time);
alert( "position is " + vlc.input.position );
}
function doGetTime()
{
var vlc = getVLC("vlc");
if( vlc )
alert( "time is " + vlc.input.time );
}
function doGetRate()
......
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