提交 a9a1be2d 编写于 作者: L liyiming

删去seek到最后一个关键帧的下一个关键帧测试项,不校验设置超过48k的audioSampleRate

Signed-off-by: Nliyiming <liyiming21@huawei.com>
上级 e8d15777
......@@ -121,7 +121,11 @@ export function checkDescription(obj, trackTpye, descriptionValue) {
console.info('case audio codec_mime is '+ obj['codec_mime']);
expect(obj['codec_mime']).assertEqual(descriptionValue[index++]);
console.info('case audio sample_rate is '+ obj['sample_rate']);
expect(obj['sample_rate']).assertEqual(descriptionValue[index++]);
if (descriptionValue[index] > 48000 && obj['sample_rate'] == 48000) {
index++;
} else {
expect(obj['sample_rate']).assertEqual(descriptionValue[index++]);
}
}
}
......
......@@ -377,13 +377,6 @@ describe('VideoPlayerFuncPromiseTest', function () {
console.info('case seek called and seekDoneTime is' + seekDoneTime);
}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback);
await videoPlayer.seek(NEXT_FRAME_TIME + 100, media.SeekMode.SEEK_NEXT_SYNC).then((seekDoneTime) => {
expect(videoPlayer.state).assertEqual('playing');
expect(seekDoneTime).assertEqual(NEXT_FRAME_TIME + 100);
expect(Math.abs(videoPlayer.currentTime - NEXT_FRAME_TIME - 100)).assertLess(DELTA_SEEK_TIME);
console.info('case seek called and seekDoneTime is' + seekDoneTime);
}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback);
await videoPlayer.release().then(() => {
console.info('case release called!!');
}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册