提交 c6ca3eab 编写于 作者: D dongwei

AVPlayerLocalTest 偶现fail问题解决

Signed-off-by: Ndongwei <dongwei@kaihong.com>
上级 70f11faf
...@@ -284,7 +284,7 @@ export function setAVPlayerFunCb(src, avPlayer, playTest, playTime, done) { ...@@ -284,7 +284,7 @@ export function setAVPlayerFunCb(src, avPlayer, playTest, playTime, done) {
completedCnt++; completedCnt++;
expect(avPlayer.currentTime).assertEqual(avPlayer.duration); expect(avPlayer.currentTime).assertEqual(avPlayer.duration);
expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.COMPLETED); expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.COMPLETED);
if (completedCnt == 1) { if (completedCnt == 1 && seekDoneCnt[0] < 5) {
// step 9: completed -> play // step 9: completed -> play
avPlayer.play(); avPlayer.play();
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册