Class VideoCaptureDeviceDescriptor
Video capture device descriptor
public class VideoCaptureDeviceDescriptor
- Inheritance
-
VideoCaptureDeviceDescriptor
- Inherited Members
Constructors
VideoCaptureDeviceDescriptor()
public VideoCaptureDeviceDescriptor()
Properties
CaptureModes
Gets or sets list of supported capture modes
public List<VideoCaptureMode> CaptureModes { get; set; }
Property Value
DefaultCaptureMode
Gets or sets index of the default capture mode
public int DefaultCaptureMode { get; set; }
Property Value
DeviceId
Gets or sets video capture device id
public string DeviceId { get; set; }
Property Value
Framework
Gets or sets device framework
public MediaFramework Framework { get; set; }
Property Value
Name
Gets or sets video capture device human readable name
public string Name { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this device descriptor.
public virtual VideoCaptureDeviceDescriptor Clone()
Returns
- VideoCaptureDeviceDescriptor
A new VideoCaptureDeviceDescriptor instance with copied values.
FindClosestMatch(MediaType)
Finds the capture mode that best matches the specified media type.
public VideoCaptureMode FindClosestMatch(MediaType mt)
Parameters
mtMediaTypeThe target media type to match, or null to use the default capture mode.
Returns
- VideoCaptureMode
The closest matching capture mode, or null if no modes are available.