Playlist not clearing in ActiveX control?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
donq - stuart
New Cone
New Cone
Posts: 7
Joined: 18 Apr 2016 21:14

Playlist not clearing in ActiveX control?

Postby donq - stuart » 23 May 2016 19:27

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?

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Playlist not clearing in ActiveX control?

Postby da2424 » 24 May 2016 11:54

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.

donq - stuart
New Cone
New Cone
Posts: 7
Joined: 18 Apr 2016 21:14

Re: Playlist not clearing in ActiveX control?

Postby donq - stuart » 26 May 2016 17:47

That explains that one, thanks for clarifying.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests