Page 1 of 1

Playlist not clearing in ActiveX control?

Posted: 23 May 2016 19:27
by donq - stuart
I'm using VB.Net and the VLC 2.2.2 ActiveX control to play movies.

When the user switches from one movie to another, I want to clear out the existing movie- ideally so that the ActiveX object displays the VLC traffic cone- and then load the new movie afresh.

However I'm using the .playlist.items.clear() method, and it's not doing anything. The first movie stays in the player, so when I try to add the second movie to a playlist, the second movie goes after the first, so as far as the user is concerned, the first movie is still playing.

Is this a fault in the .playlist.items.clear() method? Or am I doing something wrong?

Re: Playlist not clearing in ActiveX control?

Posted: 24 May 2016 11:54
by da2424
This behavior is expected. .playlist.items.clear() will clear the playlist, but will not stop the current playing media. You also have to stop the playback, then the cone will appear.

Re: Playlist not clearing in ActiveX control?

Posted: 26 May 2016 17:47
by donq - stuart
That explains that one, thanks for clarifying.