diff --git a/multimedia/media/media_js_standard/AVRecorderTestBase.js b/multimedia/media/media_js_standard/AVRecorderTestBase.js index 6dccb7b4fe6383bac56990961f361da956e1b417..291cbfe9dfd2a2055d10f79f9cc89321e58f9711 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) {