setMinVideoBitrateForTrafficControl method
- int bitrate,
- ZegoTrafficControlMinVideoBitrateMode mode,
- {ZegoPublishChannel? channel}
Sets the minimum video bitrate for traffic control for the specified publish channel.
Available since: 1.1.0 Description: Set the control strategy when the video bitrate reaches the lowest threshold during flow control. When the bitrate is lower than the minimum threshold, you can choose not to send video data or send it at a very low frame bitrate. Default value: There is no control effect of the lowest threshold of video bitrate. When to call: After the engine is created createEngine, Called before startPublishingStream can take effect. Restrictions: The traffic control must be turned on enableTrafficControl. Related APIs: enableTrafficControl. Note: This function is only available in ZegoExpressVideo SDK!
bitrate
Minimum video bitrate (kbps).mode
Video sending mode below the minimum bitrate.channel
Publish stream channel.
Implementation
Future<void> setMinVideoBitrateForTrafficControl(
int bitrate, ZegoTrafficControlMinVideoBitrateMode mode,
{ZegoPublishChannel? channel}) async {
return await ZegoExpressImpl.instance
.setMinVideoBitrateForTrafficControl(bitrate, mode, channel: channel);
}