stopAudioCapture method

FutureOr<int> stopAudioCapture()

@detail api @author dixing @brief Stops internal audio capturing. The default is off.
Internal audio capture refers to: capturing audio using the built-in module.
The local client will be informed via rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error} after stopping audio capture by calling this API.
The remote clients in the room will be informed of the state change via rtcEngine:onUserStopAudioCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopAudioCapture:info} after the visible client stops audio capture by calling this API. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - Call startAudioCapture{@link #ByteRTCEngine#startAudioCapture} to enable the internal audio capture. - Without calling this API the internal audio capture will sustain until you destroy the engine instance.

Implementation

FutureOr<int> stopAudioCapture() async {
  return await nativeCall('stopAudioCapture', []);
}