From bdfee90f2ee572137d98d195049b3905fe69af9c Mon Sep 17 00:00:00 2001 From: dongxinli Date: Thu, 8 Jun 2023 11:18:12 +0800 Subject: [PATCH] avpalyer.state is idle Signed-off-by: dongxinli --- multimedia/media/media_js_standard/AVPlayerTestBase.js | 1 + .../avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/multimedia/media/media_js_standard/AVPlayerTestBase.js b/multimedia/media/media_js_standard/AVPlayerTestBase.js index e05c39a97..8292a7bfb 100644 --- a/multimedia/media/media_js_standard/AVPlayerTestBase.js +++ b/multimedia/media/media_js_standard/AVPlayerTestBase.js @@ -2168,6 +2168,7 @@ export async function testAVPlayerFun(src, avPlayer, playTest, playTime, done) { if (typeof(video) != 'undefined') { console.info('case createAVPlayer success'); avPlayer = video; + expect(avPlayer.state).assertEqual('idle'); } else { console.error('case createAVPlayer failed'); expect().assertFail(); diff --git a/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js b/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js index 8ec9d5634..1c7745b99 100644 --- a/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js +++ b/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js @@ -138,6 +138,7 @@ export default function AVPlayerLocalTest() { if (typeof (video) != 'undefined') { console.info('case createAVPlayer success'); avPlayer = video; + expect(avPlayer.state).assertEqual('idle'); setAVPlayerTrackCb(avPlayer, descriptionKey, descriptionValue, done) setSource(avPlayer, src); } -- GitLab