videoBitrate property
getter/setter pair
- 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, TRTCVideoResolution.res_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 byminVideoBitrate
only if the network conditions are poor.- If you want to "ensure definition while allowing lag", you can set
minVideoBitrate
to 60% ofvideoBitrate
. - If you want to "ensure smoothness while allowing blur", you can set
minVideoBitrate
to 200 Kbps. - If you set
videoBitrate
andminVideoBitrate
to the same value, it is equivalent to disabling the adaptive adjustment capability of the SDK.
- If you want to "ensure definition while allowing lag", you can set
Implementation
int videoBitrate;