npapi-vlc | branch: master | Daniel Amm <da2...@t-online.de> | Sun Jun 14 
00:35:53 2015 +0200| [ea030598afc56cfee2ac4bc8ea48ba78857d7b5e] | committer: 
Jean-Baptiste Kempf

test.html: add demo for getting current item index

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=ea030598afc56cfee2ac4bc8ea48ba78857d7b5e
---

 share/test/test.html |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/share/test/test.html b/share/test/test.html
index bb4659b..ce5e594 100644
--- a/share/test/test.html
+++ b/share/test/test.html
@@ -380,6 +380,8 @@ function close()
             <input type="button" value="Next" 
onClick='getVLC("vlc").playlist.next();'>
             <input type="button" value="Clear All" 
onClick='doPlaylistClearAll();'>
             &nbsp;
+            <input type="button" value="current item" onClick='alert("current 
item: " + getVLC("vlc").playlist.currentItem);'>
+            &nbsp;
             <input type="button" id="itemCount" value="Items: 0" 
onClick='doItemCount();'>
             <form 
action="javascript:doRemoveItem(document.getElementById('removeid').value);">
                 <input type="text" size="4" value="" id="removeid">

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to