WPF C# 代码打不开本地摄像头的问题记录

            string mrl = @"dshow://  ";
            string optVideo = @":dshow-vdev=Integrated Camera";
            //string optaudio = @":dshow-adev=麦克风 (Realtek(R) Audio)";
            string size = ":dshow-size=500";
            this.vlcControl.SourceProvider.MediaPlayer.Play(mrl, optVideo, size);

但是用安装软件能打开本地的 ,暂时未找到解决方法

posted @ 2023-02-19 06:32  变秃了也就变强了  阅读(10)  评论(0编辑  收藏  举报  来源