setVideoDenoiser method
@hidden for internal use only @detail api @hiddensdk(audiosdk) @author Yujianli @brief Sets the video noise reduction mode. @param mode Video noise reduction mode. Refer to VideoDenoiseMode{@link #VideoDenoiseMode} for more details. @return - 0: Success. Please refer to onVideoDenoiseModeChanged{@link #IRTCEngineEventHandler#onVideoDenoiseModeChanged} callback for the actual state of video noise reduction mode. - < 0: Failure.
Implementation
Future<int?> setVideoDenoiser({required VideoDenoiseMode mode}) async {
$a() => ($instance as $p_a.RTCEngine)
.setVideoDenoiser(t_VideoDenoiseMode.code_to_android(mode));
$i() => ($instance as $p_i.ByteRTCEngine)
.setVideoDenoiser(t_VideoDenoiseMode.code_to_ios(mode));
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}