queryScreenCaptureCapability
Queries the highest frame rate supported by the device during screen sharing.
Future<int> queryScreenCaptureCapability();
Details
Applicable scenarios
This method is for Android and iOS only.
To ensure optimal screen sharing performance, particularly in enabling high frame rates like 60 fps, Agora recommends you to query the device's maximum supported frame rate using this method beforehand. This way, if the device cannot support such a high frame rate, you can adjust the screen sharing stream accordingly to avoid any negative impact on the sharing quality. If the device does not support high frame rate, you can reduce the frame rate of the screen sharing stream appropriately when sharing the screen to ensure that the sharing effect meets your expectation.
Exceptions
- The highest frame rate supported by the device, if the method is called successfully. See ScreenCaptureFramerateCapability.
- < 0: Failure.