[vlc-devel] [PATCH 17/17] test.html: add demo for getting current item index
Daniel Amm
da2424 at t-online.de
Sun Jun 14 00:35:53 CEST 2015
---
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 100755
--- 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">
--
2.1.4
More information about the vlc-devel
mailing list