numberOfCapabilities abstract method
Gets the number of video formats supported by the specified video capturing device.
A video capturing device may support multiple video formats, each with different combinations of frame width, frame height, and frame rate. You can call this method to get how many video formats the specified video capturing device supports, and then call getCapability to get detailed frame information for a specific video format. This method is only applicable to Windows and macOS.
deviceIdUTF8The ID of the video capturing 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. See Error Codes for details and resolution suggestions. ≤ 0: The method call fails. See Error Codes for details and resolution suggestions.
Implementation
Future<int> numberOfCapabilities(String deviceIdUTF8);