stopAudioCapture method
@detail api
@author dixing
@brief Stop internal audio capture. The default is off.
Internal audio capture refers to: capturing audio using the built-in module.
The local client will be informed via onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} after stopping audio capture by calling this API.
The remote clients in the room will be informed of the state change via onUserStopAudioCapture{@link #IRTCEngineEventHandler#onUserStopAudioCapture} after the visible client stops audio capture by calling this API.
@return
- 0: Success.
- < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details
@note
- Call startAudioCapture{@link #RTCEngine#startAudioCapture} to enable the internal audio capture.
- Without calling this API the internal audio capture will sustain until you destroy the engine instance.
Implementation
Future<int?> stopAudioCapture() async {
$a() => ($instance as $p_a.RTCEngine).stopAudioCapture();
$i() => ($instance as $p_i.ByteRTCEngine).stopAudioCapture();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}