setCameraAdaptiveMinimumFrameRate abstract method

Future<int?> setCameraAdaptiveMinimumFrameRate(
  1. int framerate
)

Valid since v3.56.1

Sets the minimum frame rate of of the dynamic framerate mode during internal video capture.

framerate: The minimum value in fps. The default value is 7.
The maximum value of the dynamic framerate mode is set by calling RTCVideo.setVideoCaptureConfig. When minimum value exceeds the maximum value, the frame rate is set to a fixed value as the maximum value; otherwise, dynamic framerate mode is enabled.

Return value:

  • 0: Success.
  • !0: Failure.

Notes

  • You must call this API before calling RTCVideo.startVideoCapture to enable video capture to make the setting valid.
  • If the maximum frame rate changes due to performance degradation, static adaptation, etc., the set minimum frame rate value will be re-compared with the new maximum value. Changes in comparison results may cause switch between fixed and dynamic frame rate modes.

Implementation

Future<int?> setCameraAdaptiveMinimumFrameRate(int framerate);