未验证 提交 28403f4f 编写于 作者: S shuboxu 提交者: Gitee

update en/application-dev/media/using-avrecorder-for-recording.md.

Signed-off-by: Nshuboxu <xushubo1@huawei.com>
上级 e49118bc
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册