提交 1b255d69 编写于 作者: L liyiming

add delay after recordering start

Signed-off-by: Nliyiming <liyiming21@huawei.com>
上级 2a77ea5d
...@@ -145,6 +145,9 @@ export async function startPromise(avRecorder, recorderTime) { ...@@ -145,6 +145,9 @@ export async function startPromise(avRecorder, recorderTime) {
}).catch((err) => { }).catch((err) => {
console.info('start failed and catch error is ' + err.message); console.info('start failed and catch error is ' + err.message);
}); });
if (recorderTime != undefined) {
await sleep(recorderTime);
}
} }
export function pauseCallback(avRecorder) { export function pauseCallback(avRecorder) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册