提交 ff619c36 编写于 作者: D dongxinli

avpalyer.state is idle

Signed-off-by: Ndongxinli <dongxinli@huawei.com>
上级 bdfee90f
...@@ -2166,9 +2166,9 @@ export async function testAVPlayerFun(src, avPlayer, playTest, playTime, done) { ...@@ -2166,9 +2166,9 @@ export async function testAVPlayerFun(src, avPlayer, playTest, playTime, done) {
console.info(`case media source: ${src}`) console.info(`case media source: ${src}`)
await media.createAVPlayer().then((video) => { await media.createAVPlayer().then((video) => {
if (typeof(video) != 'undefined') { if (typeof(video) != 'undefined') {
expect(avPlayer.state).assertEqual('idle');
console.info('case createAVPlayer success'); console.info('case createAVPlayer success');
avPlayer = video; avPlayer = video;
expect(avPlayer.state).assertEqual('idle');
} else { } else {
console.error('case createAVPlayer failed'); console.error('case createAVPlayer failed');
expect().assertFail(); expect().assertFail();
......
...@@ -136,9 +136,9 @@ export default function AVPlayerLocalTest() { ...@@ -136,9 +136,9 @@ export default function AVPlayerLocalTest() {
media.createAVPlayer((err, video) => { media.createAVPlayer((err, video) => {
console.info(`case media err: ${err}`) console.info(`case media err: ${err}`)
if (typeof (video) != 'undefined') { if (typeof (video) != 'undefined') {
expect(avPlayer.state).assertEqual('idle');
console.info('case createAVPlayer success'); console.info('case createAVPlayer success');
avPlayer = video; avPlayer = video;
expect(avPlayer.state).assertEqual('idle');
setAVPlayerTrackCb(avPlayer, descriptionKey, descriptionValue, done) setAVPlayerTrackCb(avPlayer, descriptionKey, descriptionValue, done)
setSource(avPlayer, src); setSource(avPlayer, src);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册