[vlc-commits] test.html: add demo for getting current item index

Daniel Amm git at videolan.org
Sun Jun 14 00:58:29 CEST 2015


npapi-vlc | branch: master | Daniel Amm <da2424 at 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 <jb at 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();'>
              
+            <input type="button" value="current item" onClick='alert("current item: " + getVLC("vlc").playlist.currentItem);'>
+             
             <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">



More information about the vlc-commits mailing list