I embedded vlc player on my web page, and loaded the playlist from my code and autoloop the playlist. It all works fine.
The issue is that when I tried to clear the playlist and add the new items and play again, the old items from the playlist are also played. here is the general code :
Code: Select all
vlc.playlist.add(item1);
vlc.playlist.play(); //play item1 (works fine)
//clear the list and play again
vlc.playlist.items.clear(); //the doc says vlc.playlist.clear() is deprecated***
vlc.playlist.add(item2);
vlc.playlist.play(); //play item1 and item2 (why item1 is still played?)
I checked the log message and i saw the message adding and deleting items from the playlist but still trying to play the old items.
any help would be appreciated. Thanks in advanced.