stopAudioRecording method
@detail api @author huangshouqin @brief Stop audio recording. @return - 0: Success - <0: Failure @note Call startAudioRecording{@link #RTCEngine#startAudioRecording} to start the recording task.
Implementation
Future<int?> stopAudioRecording() async {
$a() => ($instance as $p_a.RTCEngine).stopAudioRecording();
$i() => ($instance as $p_i.ByteRTCEngine).stopAudioRecording();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}