TRTCNetworkQosParam

TRTCNetworkQosParam

5.4 Network QoS control parameter

Constructor

new TRTCNetworkQosParam(preference, controlMode)

Network QoS control parameter. The settings determine the QoS control policy of the SDK in weak network conditions (e.g., whether to "ensure clarity" or "ensure smoothness").

Parameters:
Name Type Description
preference TRTCVideoQosPreference

[Field description] whether to ensure "smoothness" or "clarity"
[Note] this parameter mainly affects the audio/video performance of TRTC in weak network environments:
- Ensuring smoothness: in this mode, when the current network is unable to transfer a clear and smooth video image, the smoothness of the image will be given priority, but there will be blurs. - Ensuring clarity (default value): in this mode, when the current network is unable to transfer a clear and smooth video image, the clarity of the image will be given priority, but there will be lags.

controlMode TRTCQosControlMode

[Field description] QoS control mode (disused)
[Recommended value] on-cloud control
[Note] please set the on-cloud control mode (TRTCQosControlModeServer).