multiple vlc activex instance

This forum is about all development around libVLC.
yanrx
New Cone
New Cone
Posts: 1
Joined: 19 Jun 2009 09:16

multiple vlc activex instance

Postby yanrx » 19 Jun 2009 09:33

I am coding an project which use multiple instances of VLC activex to show 16-64 video camera in PC. using vc6.0;

the problem is, when the vlc number is upto 10, there are often an error saying: "Unhandle exception in xxx.exe(libvlccore.dll): 0xc00000005: Access Violation".

the code is as follows:

VARIANT va;
VariantInit(&va);

m_vlc1.addTarget("rtsp://192.168.1.39/xxx.mp4", va, 4, 0);
m_vlc1.SetAutoLoop(TRUE);
m_vlc1.play();
.....
m_vlc10.play();

Anyone could help me? Thanks

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: multiple vlc activex instance

Postby thannoy » 19 Jun 2009 10:09

- "m_vlc1.addTarget" : you are using an old, deprecated, interface of the activex. You should use AxVLC2 and the playlist.add(url, name, options) call.
- not sure setautoloop will work. better to force it twice using the call "m_vlc1.playlist/add(.., .., ":loop")"
- you can maybe browse the wiki (wiki.videolan.org) or this forum about the mosaic feature.

if you do not use a recent VLC, it will not support to be opened in multiple instances in one process. You can try last versions. I think older 0.9.8a was working too.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 65 guests