activeX in .net - playlist problems

This forum is about all development around libVLC.
carled
New Cone
New Cone
Posts: 5
Joined: 13 Jul 2009 10:54

activeX in .net - playlist problems

Postby carled » 01 Aug 2009 13:48

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!

carled
New Cone
New Cone
Posts: 5
Joined: 13 Jul 2009 10:54

Re: activeX in .net - playlist problems

Postby carled » 05 Aug 2009 23:08

hmmm. great forum this... would be nice if someone technical occasionally answered a question... :?:

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: activeX in .net - playlist problems

Postby thannoy » 06 Aug 2009 10:24

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).

carled
New Cone
New Cone
Posts: 5
Joined: 13 Jul 2009 10:54

Re: activeX in .net - playlist problems

Postby carled » 06 Aug 2009 17:52

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!

nib
New Cone
New Cone
Posts: 2
Joined: 17 Aug 2009 18:58

Re: activeX in .net - playlist problems

Postby nib » 17 Aug 2009 19:17

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 50 guests