setCameraAdaptiveMinimumFrameRate method

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

@hidden(macOS) @valid since 353 @detail api @brief Set the minimum frame rate of of the dynamic framerate mode during internal video capture. @param framerate The minimum value in fps. The default value is 7.
The maximum value of the dynamic framerate mode is set by calling setVideoCaptureConfig{@link #RTCEngine#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 - 0: Success. - !0: Failure. @note - You must call this API before calling startVideoCapture{@link #RTCEngine#startVideoCapture} to enable internal 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. - For Android, dynamic framerate mode is enabled. - For iOS, dynamic framerate mode is disabled.

Implementation

Future<int?> setCameraAdaptiveMinimumFrameRate(int framerate) async {
  $a() => ($instance as $p_a.RTCEngine)
      .setCameraAdaptiveMinimumFrameRate(framerate);
  $i() => ($instance as $p_i.ByteRTCEngine)
      .setCameraAdaptiveMinimumFrameRate(framerate);

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}