stopFileRecording method

Future<int?> stopFileRecording()

@detail api @hiddensdk(audiosdk) @author wangzhanqiang @brief Stop local recording @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note - Call startFileRecording{@link #RTCEngine#startFileRecording} After starting local recording, you must call this method to stop recording. - After calling this method, you will receive an onRecordingStateUpdate{@link #IRTCEngineEventHandler#onRecordingStateUpdate} callback prompting you to record the result.

Implementation

Future<int?> stopFileRecording() async {
  $a() => ($instance as $p_a.RTCEngine).stopFileRecording();
  $i() => ($instance as $p_i.ByteRTCEngine).stopFileRecording();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}