Page 1 of 1

VLC ActiveX - Opening DirectShow device

Posted: 19 Apr 2020 00:55
by cvoce
Hi,

I am new to embedding VLC in C#.

I have managed to open network streams using http or rtsp, and local files with this:

VLCplugin.playlist.add(new Uri(value).AbsoluteUri, "MyVideo", null);

(where value is in the format rtsp://192.168.254.142:554/mediainput/h264/stream_1, http://192.168.254.181:22220/api/v1/stream or c:\test.mp4).

I would like to open a DirectShow device. In VLC you use a different menu option (Media / Open Capture Device instead of Media / Open Network Stream). Is this possible via the ActiveX interface?

In VLC if you select "show more options", it shows an MRL of "dshow://" and Edit options of " :dshow-vdev=Integrated Webcam :dshow-adev= :live-caching=300". I tried passing these as the first and 3rd variable in playlist.add but it doesn't work.

All help gratefully appreciated.

Cheers,

Chris

Re: VLC ActiveX - Opening DirectShow device

Posted: 23 Sep 2020 14:42
by mfkl
Are you actually writing a browser plugin? If not, don't use the axplugin, it's unmaintained, use libvlcsharp.