[vlc-commits] test.html: improve demo for getting current position/time
Daniel Amm
git at videolan.org
Sun Jun 14 00:58:28 CEST 2015
npapi-vlc | branch: master | Daniel Amm <da2424 at t-online.de> | Sun Jun 14 00:35:50 2015 +0200| [4847caca0268c77acd5192f85ccc2c619684a9ba] | committer: 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 <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=4847caca0268c77acd5192f85ccc2c619684a9ba
---
share/test/test.html | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/share/test/test.html b/share/test/test.html
index 639dd14..a16efb7 100644
--- a/share/test/test.html
+++ b/share/test/test.html
@@ -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()
More information about the vlc-commits
mailing list