+ 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