getCapability abstract method

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

Gets the detailed video frame information of the video capture device in the specified video format.

This method is for Windows and macOS only. After calling numberOfCapabilities to get the number of video formats supported by the video capture device, you can call this method to get the specific video frame information supported by the specified index number.

  • deviceIdUTF8 The ID of the video capture device.
  • deviceCapabilityNumber The index number of the video format. If the return value of numberOfCapabilities is i, the value range of this parameter is [0,i).

Returns The specific 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});