Page 1 of 1

activeX in .net - playlist problems

Posted: 01 Aug 2009 13:48
by carled
I'm not entirely sure what version of the activeX object I'm using (the object declaration is: Dim vlc As AxAXVLC.AxVLCPlugin2 = AxVLCPlugin21)

I'm trying to create a REALLY simple player that is completely controlled by backend code. I have a serial port connection that is firing in playlist items and the code for all this works fine, I can add items (from a directory on the pc) to the playlist and then play them all via my serial command line. No problems.

However, where I've now run into problems is when I want to simply append items to the playlist. All my code does is sit there waiting for an item reference to be passed. It then uses the passed filename and adds it to the playlist via vlc.playlist.add(item filename...). First problem I then ran into was that if I try to do a "if vlc.playlist.isplaying" check, I get an error, so I got around this by putting in a "first time" flag that does a "playlist.play()" command on the first item arriving and not again thereafter.

Basically then:

Code: Select all

dim firsttime as boolean = true vlc.playlist.add(filename...) if (firsttime) then vlc.playlist.play() firsttime=false end if
..and that's it. I add an item, it starts playing in the play window, all is fine. My "playlist count" increments by 1. I then pass another item (the first item is still playing... the playlist count goes up to two...) and nothing happens. The first item finishes playing and... nothing. Even though the playlist count is now 2 and I can see the items queued up, it just stops after playing the first item when I want it to simply run on and play the next item.

This seems such a basic and simple thing to do, I can only assume I've done something wrong in my coding, although I really cannot see what!

Re: activeX in .net - playlist problems

Posted: 05 Aug 2009 23:08
by carled
hmmm. great forum this... would be nice if someone technical occasionally answered a question... :?:

Re: activeX in .net - playlist problems

Posted: 06 Aug 2009 10:24
by thannoy
No idea. To get your VLC version (the same as activex one), you can use .versionInfo() function which will return you a string (as described in Documentation:WebPlugin). Obviously you are using the good API (the second, in which you have .playlist.add, etc).

Re: activeX in .net - playlist problems

Posted: 06 Aug 2009 17:52
by carled
Well, thanks for replying at least! It shows there is life out there... maybe someone else will notice the thread at this rate and have some idea why it's not working!

Re: activeX in .net - playlist problems

Posted: 17 Aug 2009 19:17
by nib
I've experienced the same issue with the Firefox/Mozilla plugin and after investigation into the code base, it is due to the fact that the player for the plugin does not automatically do playback of the next item in the playlist as you would expect (although it used to). Currently, you would have to use the playlist next or use play item to select the next item until this is fixed.