in Microsoft.Expression.Encoder is it possible to remove Screen capture from Video device type.

If I do

VideoDevices = EncoderDevices.FindDevices(EncoderDeviceType.Video);

It returns me 2 device ( The webcam plugged in and the Screen capture )

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".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top