VLC ActiveX - Opening DirectShow device

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
cvoce
New Cone
New Cone
Posts: 3
Joined: 19 Apr 2020 00:48

VLC ActiveX - Opening DirectShow device

Postby cvoce » 19 Apr 2020 00:55

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

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: VLC ActiveX - Opening DirectShow device

Postby mfkl » 23 Sep 2020 14:42

Are you actually writing a browser plugin? If not, don't use the axplugin, it's unmaintained, use libvlcsharp.
https://mfkl.github.io


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests