vlc.Playlist.playItem(id) apparently does nothing

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
truth
Blank Cone
Blank Cone
Posts: 14
Joined: 06 Apr 2017 09:55

vlc.Playlist.playItem(id) apparently does nothing

Postby truth » 10 Apr 2017 03:01

I'm using the AxVLC component in a legacy VB6 application. If I follow the example from the documentation (https://wiki.videolan.org/Documentation ... ist_object) it functions as expected. That is, if I clear the current playlist, add the desired media item to the playlist, and then execute vlc.Playlist.playItem(0), all is well.

However, if I fill a vlc.Playlist with multiple items (using vlc.Playslist.Add) and then attempt to render in item using the id (playlist index) via vlc.Playlist.playItem(id), nothing (apparently) happens. The application executes the .playItem method but nothing is rendered (no audio or video) and there is no apparent error. The application continues as if everything is OK.

What is the correct (recommended) way to use a VLC playlist via AxVLC? Should I use vlc.Playlist.playItem(0) always with only one item in the list (clearing the list each time prior to adding the desired item) or should I be able to index into the Playlist using any valid 'id'? Or, should I rather use vlc.Playlist.Play?

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests