I try to create a programme which use the VLC activex to capture my web-cam video.
I've no problem with this activex and my programme works well if I have only 1 cam detected by VLC (in "video device name" list in "capture device" menu).
to capture video I use the code (which is present on the wiki):
Code: Select all
VLCPlugin1.addTarget([b]param[/b], null, VLCPlayListInsert, 0);
VLCPlugin1.play;
But if I have 2 cam for example "cam1" and "cam2" in VLC "Video device name" list, and if I want to use cam2 VLC give me the "Customize" line : dshow:// :dshow-vdev="cam2" :dshow-adev="" :dshow-size="".
In VLC it's work and I see the good cam, but in my programme if I make
param := 'dshow:// :dshow-vdev="" :dshow-adev="" :dshow-size=""'
I've the same result that with
param := 'dshow:// :dshow-vdev="" :dshow-adev="" :dshow-size=""' or even
param := 'dshow://
because VLC choose the first device in the "video device name" list (It's like if VLC don't look the end of the line).
could you tell me what syntax I must use for my case ? (I use vlc 0.8.6i but it's the same problem with other newer version)
thanks and sorry for my English (I'm a French user)