VB.Net problems viewing jpgs

This forum is about all development around libVLC.
ButchA
New Cone
New Cone
Posts: 4
Joined: 07 May 2012 23:06

VB.Net problems viewing jpgs

Postby ButchA » 07 May 2012 23:45

Hello,
I'm using the ActiveX plugin "AxVLCPlugin21" of VLC to build my own player based on VB.Net. Everything worked fine until I installed the new VLC Player (2.0.1 Twoflower).

Now, I always face problems when loading jpgs i.e. the whole application is frozen and I don't get any exception. Here comes the code causing the crash:

Code: Select all

gv_CurrentMedia = gv_Files(gv_MediaIndex).FullName.ToString AxVLCPlugin21.playlist.items.clear() AxVLCPlugin21.playlist.add("file:///" & gv_CurrentMedia) AxVLCPlugin21.playlist.playItem(0) ' --> CRASH
The strange thing is: The first jpg is displayed for 10 seconds but when I try to call the second jpg from my list the crash happened.

In the previous ActiveX version 1.1.11 of VLC I was using the following code to display the media but unfortunately this is not working with the new version 2.0.1:

Code: Select all

gv_CurrentMedia = gv_Files(gv_MediaIndex).FullName.ToString AxVLCPlugin21.playlist.items.clear() AxVLCPlugin21.playlist.add(gv_CurrentMedia) AxVLCPlugin21.playlist.playItem(0)
The only difference to the new implementation is the definition of the path "file:///" but w/o this prefix no media was loaded. Thus, I think something must be wrong with this...

By the way: Other media e.g. avi, mkv, mp3 causes no problem at all.

It would be great if someone could give me a hint to solve my problem since I tried so much but nothing could help so far.

Thank you!

ButchA
New Cone
New Cone
Posts: 4
Joined: 07 May 2012 23:06

Re: VB.Net problems viewing jpgs

Postby ButchA » 08 May 2012 20:46

Really no idea?

It seems to me that the method "playlist.add" was updated within 2.0.1 version i.e. more parameter like file, name, and options are available. Is there a new documentation which is describing the new ActiveX component?

Maybe, there is a better alternative way to open media then I have used so far. I'd appreciate every little hint!

ButchA
New Cone
New Cone
Posts: 4
Joined: 07 May 2012 23:06

Re: VB.Net problems viewing jpgs

Postby ButchA » 08 May 2012 22:56

One more finding from my side: It seems the VLC 2.0.1 ActiveX plugin just has problems with jpegs i.e. when I convert the jpegs to bitmap for example no problem occures.

Why I only got problems with jpegs??? Please, help!

PS: Now, I've installed the older version 1.1.11 "The Luggage" again and everything works fine but this can just be a workaround.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests