setRuntimeParameters method
@detail api @author panjian.fishing @brief 设置运行时的参数 @param params 保留参数 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 @note 该接口需在 joinRoom{@link #RTCRoom#joinRoom} 和 startAudioCapture{@link #RTCEngine#startAudioCapture} 之前调用。
Implementation
Future<int?> setRuntimeParameters(JSONObject params) async {
$a() => ($instance as $p_a.RTCEngine).setRuntimeParameters(params);
$i() => ($instance as $p_i.ByteRTCEngine).setRuntimeParameters(params);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}