numberOfCapabilities abstract method

Future<int> numberOfCapabilities(
  1. String deviceIdUTF8
)

Gets the number of video formats supported by the specified video capture device.

This method is for Windows and macOS only. Video capture devices may support multiple video formats, and each format supports different combinations of video frame width, video frame height, and frame rate. You can call this method to get how many video formats the specified video capture device can support, and then call getCapability to get the specific video frame information in the specified video format.

  • deviceIdUTF8 The ID of the video capture device.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. ≤ 0: Failure.

Implementation

Future<int> numberOfCapabilities(String deviceIdUTF8);