videoBitrate property Null safety

int videoBitrate
read / write

Field description: target video bitrate. The SDK encodes streams at the target video bitrate and will actively reduce the bitrate only if the network conditions are poor.

Recommended value: please see the optimal bitrate for each specification in TRTCVideoResolution. You can also slightly increase the optimal bitrate. For example, TRTC_VIDEO_RESOLUTION_1280_720 corresponds to the target bitrate of 1,200 Kbps. You can also set the bitrate to 1,500 Kbps for higher definition.

Note: the SDK does its best to encode streams at the bitrate specified by videoBitrate and will actively reduce the bitrate to as low as the value specified by minVideoBitrate only if the network conditions are poor. If you want to "ensure definition while allowing lag", you can set minVideoBitrate to 60% of videoBitrate. If you want to "ensure smoothness while allowing blur", you can set minVideoBitrate to 200 Kbps. If you set videoBitrate and minVideoBitrate to the same value, it is equivalent to disabling the adaptive adjustment capability of the SDK.

Implementation

int videoBitrate;