<TR><TD>Playlist:\r
<INPUT type=button value="Prev" onClick='getVLC("vlc").playlist.prev();'>\r
<INPUT type=button value="Next" onClick='getVLC("vlc").playlist.next();'>\r
-<INPUT type=button value="Clear All" onClick='getVLC("vlc").playlist.clear(); doItemCount();'>\r
+<INPUT type=button value="Clear All" onClick='doPlaylistClearAll();'>\r
Aspect Ratio:\r
<SELECT readonly onChange='doAspectRatio(this.value)'>\r
<OPTION value="default">Default</OPTION>\r
var vlc = getVLC("vlc");\r
if( vlc )\r
{\r
- var count = vlc.playlist.itemCount;\r
+ var count = vlc.playlist.items.count;\r
document.getElementById("itemCount").value = " Items " + count + " ";\r
}\r
}\r
{\r
var vlc = getVLC("vlc");\r
if( vlc )\r
- vlc.playlist.removeItem(item);\r
+ vlc.playlist.items.remove(item);\r
+}\r
+\r
+function doPlaylistClearAll()\r
+{\r
+ var vlc = getVLC("vlc");\r
+ if( vlc )\r
+ {\r
+ vlc.playlist.items.clear();\r
+ while( vlc.playlist.items.count > 0)\r
+ {\r
+ // wait till playlist empties.\r
+ }\r
+ doItemCount();\r
+ }\r
}\r
\r
function doMessages()\r
\r
if( vlc )\r
{\r
- vlc.playlist.clear();\r
- while( vlc.playlist.itemCount > 0 )\r
+ vlc.playlist.items.clear();\r
+ while( vlc.playlist.items.count > 0 )\r
{\r
// clear() may return before the playlist has actually been cleared\r
// just wait for it to finish its job\r
vlc.log.verbosity = 1;\r
vlc.log.messages.clear();\r
// play MRL\r
- vlc.playlist.play();\r
+ vlc.playlist.playItem(itemId);\r
if( monitorTimerId == 0 )\r
{\r
monitor();\r
vlc.playlist.togglePause();\r
monitor();\r
}\r
- else if( vlc.playlist.itemCount > 0 )\r
+ else if( vlc.playlist.items.count > 0 )\r
{\r
// clear the message log and enable error logging\r
vlc.log.verbosity = 1;\r