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: When enabling traffic control enableTrafficControl, and its parameter property includes the attribute AdaptiveFPS, the minimum frame rate of the video will not be lower than the value set by the setMinVideoFpsForTrafficControl interface. A value of 0 indicates no limit. 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);
}