Programmatic playlist control and problems

This forum is about all development around libVLC.
pfurrie
Blank Cone
Blank Cone
Posts: 10
Joined: 15 Nov 2006 23:38

Programmatic playlist control and problems

Postby pfurrie » 29 Jun 2022 17:57

Using VLC 2.01 on a Windows 10 machine with VB .NET 2017. Programmatically controlling VLC to display network video streams. Have this working.

Each time it changes the stream, have to use a "plalist.add(xxxxxxxxx)" and "playlist.next()" and finally "playlist.play()". This does work... but...

I know I'm really creating an every-growing playlist. Don't want that. Just want to send an address, have VLC play it, and then send a new address and another play command when appropriate, with no ever-growing list.

Now, I can use the "playlist.items.clear()" to clear the list, and that does clear the list. However, whatever stream was playing at the moment the list is cleared is the stream we're stuck with. If we try another "add" and "next" and "play" with a different stream, it doesn't matter. The stream doesn't change. We're stuck until we restart the app.

Have done a lot of tests to try to find info that I haven't been able to find by searching the web for several days, so I'm now asking...

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Programmatic playlist control and problems

Postby Rémi Denis-Courmont » 29 Jun 2022 21:51

You can't do that with the playlist. You need a media player from the LibVLC API.

Also VLC 2.x is way out of date and no longer supported in any way.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests