From 1b255d69be43d3cbe62951af6b563c20477a56d7 Mon Sep 17 00:00:00 2001 From: liyiming Date: Thu, 6 Apr 2023 22:12:19 +0800 Subject: [PATCH] add delay after recordering start Signed-off-by: liyiming --- multimedia/media/media_js_standard/AVRecorderTestBase.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/multimedia/media/media_js_standard/AVRecorderTestBase.js b/multimedia/media/media_js_standard/AVRecorderTestBase.js index 6dccb7b4f..291cbfe9d 100644 --- a/multimedia/media/media_js_standard/AVRecorderTestBase.js +++ b/multimedia/media/media_js_standard/AVRecorderTestBase.js @@ -145,6 +145,9 @@ export async function startPromise(avRecorder, recorderTime) { }).catch((err) => { console.info('start failed and catch error is ' + err.message); }); + if (recorderTime != undefined) { + await sleep(recorderTime); + } } export function pauseCallback(avRecorder) { -- GitLab