setRuntimeParameters method
@detail api @author panjian.fishing @brief Setting runtime parameters @param params Preserved parameters. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note Call this API before joinRoom{@link #RTCRoom#joinRoom} and 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}');
}
}