From 28403f4fb89ef98e3b4a1b5831b843fe5bc5e778 Mon Sep 17 00:00:00 2001 From: shuboxu Date: Fri, 25 Aug 2023 03:51:27 +0000 Subject: [PATCH] update en/application-dev/media/using-avrecorder-for-recording.md. Signed-off-by: shuboxu --- en/application-dev/media/using-avrecorder-for-recording.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/application-dev/media/using-avrecorder-for-recording.md b/en/application-dev/media/using-avrecorder-for-recording.md index 27885e9d92..bb4edac489 100644 --- a/en/application-dev/media/using-avrecorder-for-recording.md +++ b/en/application-dev/media/using-avrecorder-for-recording.md @@ -183,7 +183,7 @@ export class AudioRecorderDemo { async stopRecordingProcess() { // 1. Stop recording. if (this.avRecorder.state === 'started' - || this.avRecorder.state ==='paused') { // stop() can be called only when the AVRecorder is in the started or paused state. + || this.avRecorder.state ==='paused') { // stop() can be called only when the AVRecorder is in the started or paused state. await this.avRecorder.stop(); } // 2. Reset the AVRecorder. -- GitLab