getCapability abstract method
Gets detailed video frame information for a video capture device under a specified video format.
After calling numberOfCapabilities to get the number of supported video formats for a video capture device, you can call this method to get detailed video frame information for the specified index. This method is only applicable to Windows and macOS.
deviceIdUTF8The ID of the video capture device.deviceCapabilityNumberThe index of the video format. If the return value of numberOfCapabilities is i, then the valid range for this parameter is [0, i).
Returns Detailed information of the specified video format, including width (px), height (px), and frame rate (fps). See VideoFormat.
Implementation
Future<VideoFormat> getCapability(
{required String deviceIdUTF8, required int deviceCapabilityNumber});