简体   繁体   中英

Start VLC and play webcam stream in C#

i am trying to start the vlc media player (without including it) and play my webcam stream with an delay of 3 seconds.

        Process p = new Process();
        p.StartInfo.FileName = @"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe";
        p.StartInfo.Arguments = ":dshow-vdev=UV-3013XC_4102889504 :dshow-adev=  :live-caching=3000";
        p.Start();

With that, it starts the vlc player without any errors occuring. But it wont start playing the webstream. Any ideas how to solve this?

Okay, i found the solution. One Argument was missing:

        Process p = new Process();
        p.StartInfo.FileName = @"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe";
        p.StartInfo.Arguments = "dshow:// :dshow-vdev=UV-3013XC_4102889504 :dshow-adev=  :live-caching=3000";//Dateiname
        p.Start();//Prozess starten

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM