setNetworkQosParam method

Future<void> setNetworkQosParam(
  1. TRTCNetworkQosParam param
)

Set network quality control parameters

These settings determine the bandwidth limit practices of the SDK in various network conditions (e.g., whether to "ensure definition" or "ensure smoothness" on a weak network)

Parameters:

param: QoS parameters. For more information, please see the definition of TRTCNetworkQosParam in trtc_cloud_def.dart

Platform not supported:

  • web

Implementation

Future<void> setNetworkQosParam(TRTCNetworkQosParam param) {
  return _cloudChannel!
      .invokeMethod('setNetworkQosParam', {"param": jsonEncode(param)});
}