简体   繁体   English

从视频设备类型中删除屏幕捕获

[英]Remove Screen Capture from Video Device Type

in Microsoft.Expression.Encoder is it possible to remove Screen capture from Video device type. 在Microsoft.Expression.Encoder中可以从视频设备类型中删除屏幕捕获。

If I do 如果我做

VideoDevices = EncoderDevices.FindDevices(EncoderDeviceType.Video);

It returns me 2 device ( The webcam plugged in and the Screen capture ) 它返回2台设备(已插入网络摄像头和屏幕截图)

Tho i don't want the ability to use Screen Capture as the recording device. 我不希望能够使用屏幕捕获作为录制设备。

Should i just remove it manually while checking the name of it, or did they add some kind of functionnality to only get webcam devices in video devices. 我应该在检查它的名称时手动删除它,还是他们添加了某种功能以仅将视频设备添加到视频设备中。

Thanks. 谢谢。

Yes, filtering according to a string match seems to be your best choice. 是的,根据字符串匹配进行过滤似乎是您的最佳选择。

Either filter for the name "Screen Capture Source" or the fact that it's DevicePath does not contain the substring "usb". 名称“屏幕捕获源”的过滤器,或者它的DevicePath不包含子字符串“ usb”的事实。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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