C# WPF WPFMediaKit 调用USB 2.0 Camera摄像头 不出图像

C# 后台开发语言
WPF 的 WPFMediaKit 控件在前台显示 摄像头视频

前端代码

    <WrapPanel Name="WP_Right" DockPanel.Dock="Left">
                    <WrapPanel HorizontalAlignment="Left" VerticalAlignment="Top"   Background="#F6F6F6">
                        <WPFMediaKit:VideoCaptureElement Grid.Row="1" x:Name="vce"  Stretch="Fill" FPS="30"  />
                    </WrapPanel>
                </WrapPanel>
后台代码
     public VideoSession()
    {
        InitializeComponent(); 

        this.doctor.Width =  650;
        this.doctor.Height = 450;

        this.WP_Right.Width = (float)System.Windows.SystemParameters.PrimaryScreenWidth / 2;
        this.vce.Width = 650;
        this.vce.Height = 550; 


        vce.VideoCaptureSource = "USB 2.0 Camera";
        vce.Play();
    }



            ![图片说明](https://img-ask.csdn.net/upload/201910/24/1571924480_517751.png)

https://blog.csdn.net/Ty_Soul/article/details/79615421?utm_source=blogxgwz4