getCapability abstract method

Future<VideoFormat> getCapability({
  1. required String deviceIdUTF8,
  2. required int deviceCapabilityNumber,
})

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.

  • deviceIdUTF8 The ID of the video capture device.
  • deviceCapabilityNumber The 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});