queryScreenCaptureCapability

Queries the highest frame rate supported by the device during screen sharing.

public abstract int queryScreenCaptureCapability();

Details

Since
v4.2.0

Applicable scenarios

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.

Returns

  • The highest frame rate supported by the device, if the method is called successfully.
    • 0: The device supports the frame rate of up to 15 fps.
    • 1: The device supports the frame rate of up to 30 fps.
    • 2: The device supports the frame rate of up to 60 fps.
  • < 0: Failure.