setMinVideoFpsForTrafficControl method

Future<void> setMinVideoFpsForTrafficControl(
  1. int fps,
  2. {ZegoPublishChannel? channel}
)

Sets the minimum video frame rate threshold for traffic control.

Available since: 2.17.0 Description: Set the control policy when the video frame rate reaches the lowest threshold when flow control. Default value: There is no control effect of the lowest threshold of video frame rate. When to call: The call takes effect after the engine createEngine is created. Restrictions: The traffic control must be turned on enableTrafficControl. And its parameter property must contain AdaptiveFPS, Please refer to ZegoTrafficControlProperty for details. Related APIs: enableTrafficControl. Caution: If you need to cancel the limit of the setting value, you can set it to 0. Note: This function is only available in ZegoExpressVideo SDK!

  • fps The minimum video frame rate threshold for traffic control(fps).
  • channel Publish stream channel.

Implementation

Future<void> setMinVideoFpsForTrafficControl(int fps,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .setMinVideoFpsForTrafficControl(fps, channel: channel);
}