Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7943f81f
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7943f81f
编写于
3月 15, 2023
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avPlayer多场景测试用例
Signed-off-by:
N
bayanxing
<
bayanxing@kaihong.com
>
上级
ac3a6795
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1220 addition
and
44 deletion
+1220
-44
multimedia/media/media_js_standard/avPlayer/Test.json
multimedia/media/media_js_standard/avPlayer/Test.json
+52
-6
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/MainAbility/MainAbility.ts
...rd/avPlayer/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-0
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js
...yer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js
+1167
-38
未找到文件。
multimedia/media/media_js_standard/avPlayer/Test.json
浏览文件 @
7943f81f
...
...
@@ -5,8 +5,8 @@
"test-timeout"
:
"180000"
,
"bundle-name"
:
"ohos.acts.multimedia.avplayer"
,
"module-name"
:
"phone"
,
"shell-timeout"
:
"
1
000000"
,
"testcase-timeout"
:
3
00000
"shell-timeout"
:
"
5
000000"
,
"testcase-timeout"
:
8
00000
},
"kits"
:
[
{
...
...
@@ -20,14 +20,59 @@
"type"
:
"ShellKit"
,
"run-command"
:
[
"remount"
,
"mkdir /data/test"
"mkdir /data/test"
,
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files"
,
"chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone"
]
},
{
"type"
:
"PushKit"
,
"push"
:
[
"ActsAVPlayerTest.hap->/data/ActsAVPlayerTest.hap"
,
"./resource/audio/H264_AAC.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
"ActsAVPlayerTest.hap->/data/test/ActsAVPlayerTest.hap"
,
"./resource/audio/H264_AAC.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mp4/h264_mp3_128x96_30r.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/h263_aac.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/h263_mp3.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG2_AAC.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG2_MP3.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/h264_1280x720_30.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/H263.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG2.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mpeg_ts/h264_aac_480p_25r.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mpeg_ts/h264_mp3_480p_25r.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/H263_AAC.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/H263_MP3.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mpeg_ts/mpeg2_aac_720p_30r.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mpeg_ts/mpeg2_mp3_480p_25r.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mpeg_ts/mpeg4_aac_720p_30r.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mpeg_ts/mpeg4_mp3_480p_25r.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/h264_320x240_60.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/h263_1408x1152_30.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG2.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/mpeg4_320x240_60.ts -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/webm/vp8_vorbis_480p_25r.webm -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/vp8_720x480_60.webm -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/H264_AAC.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/H264_MP3.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mkv/h263_aac_640x480_30r.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mkv/h263_mp3_176x144_25r.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG2_AAC.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG2_MP3.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/videoplayer/mkv/mpeg4_aac_720p_30r.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG4_MP3.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/h264_320x240_30.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/h263_1408x1152_60.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/MPEG2.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/mpeg4_320x240_60.mkv -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AAC_48000_32_1.aac -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/audio/01.mp3 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/audio/56.m4a -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/OGG_48000_1.ogg -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/vorbis_48000_32_1.wav -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/audioplayer/flac/flac_48ksr_16kbr_1ch.flac -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/hevc_320x240_60.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/H264_MP3_1s.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
,
"./resource/media/AVPlayer/h264_aac_3840_2160.mp4 -> /data/app/el2/100/base/ohos.acts.multimedia.avplayer/haps/phone/files/"
]
},
{
...
...
@@ -35,7 +80,8 @@
"run-command"
:
[
"chmod 644 /data/test/*.hap"
,
"scanner"
,
"param set persist.ace.testmode.enabled 1"
"param set persist.ace.testmode.enabled 1"
,
"setenforce 0"
]
}
]
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
7943f81f
...
...
@@ -19,6 +19,7 @@ export default class MainAbility extends Ability {
// Ability is creating, initialize resources for this ability
console
.
log
(
"
[Demo] MainAbility onCreate
"
)
globalThis
.
abilityWant
=
want
;
globalThis
.
context
=
this
.
context
;
}
onDestroy
()
{
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js
浏览文件 @
7943f81f
...
...
@@ -14,52 +14,102 @@
*/
import
media
from
'
@ohos.multimedia.media
'
import
fileio
from
'
@ohos.fileio
'
import
*
as
mediaTestBase
from
'
../../../../../../MediaTestBase
'
;
import
*
as
AVPlayerTestBase
from
'
../../../../../../AVPlayerTestBase.js
'
;
import
{
testAVPlayerFun
,
AV_PLAYER_STATE
,
setSource
,
avPlayerWithCallBack
,
avPlayerWithoutCallBack
,
sleep
}
from
'
../../../../../../AVPlayerTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
export
default
function
AVPlayerStabilityTest
()
{
describe
(
'
AVPlayerStabilityTest
'
,
function
()
{
const
VIDEO_SOURCE
=
'
H264_AAC.mp4
'
;
const
AUDIO_SOURCE
=
'
01.mp3
'
;
const
VIDEO_NOAUDIO
=
'
H264_NONE.mp4
'
const
VIDEO_SOURCES
=
[
'
H264_AAC.mp4
'
,
'
h264_mp3_128x96_30r.mp4
'
,
'
h263_aac.mp4
'
,
'
h263_mp3.mp4
'
,
'
MPEG2_AAC.mp4
'
,
'
MPEG2_MP3.mp4
'
,
'
h264_1280x720_30.mp4
'
,
'
H263.mp4
'
,
'
MPEG2.mp4
'
,
'
h264_aac_480p_25r.ts
'
,
'
h264_mp3_480p_25r.ts
'
,
'
H263_AAC.ts
'
,
'
H263_MP3.ts
'
,
'
mpeg2_aac_720p_30r.ts
'
,
'
mpeg2_mp3_480p_25r.ts
'
,
'
mpeg4_aac_720p_30r.ts
'
,
'
mpeg4_mp3_480p_25r.ts
'
,
'
h264_320x240_60.ts
'
,
'
h263_1408x1152_30.ts
'
,
'
MPEG2.ts
'
,
'
mpeg4_320x240_60.ts
'
,
'
vp8_vorbis_480p_25r.webm
'
,
'
vp8_720x480_60.webm
'
,
'
H264_AAC.mkv
'
,
'
H264_MP3.mkv
'
,
'
h263_aac_640x480_30r.mkv
'
,
'
h263_mp3_176x144_25r.mkv
'
,
'
MPEG2_AAC.mkv
'
,
'
MPEG2_MP3.mkv
'
,
'
mpeg4_aac_720p_30r.mkv
'
,
'
MPEG4_MP3.mkv
'
,
'
h264_320x240_30.mkv
'
,
'
h263_1408x1152_60.mkv
'
,
'
MPEG2.mkv
'
,
'
mpeg4_320x240_60.mkv
'
,
'
AAC_48000_32_1.aac
'
,
'
01.mp3
'
,
'
56.m4a
'
,
'
OGG_48000_1.ogg
'
,
'
vorbis_48000_32_1.wav
'
,
'
flac_48ksr_16kbr_1ch.flac
'
,
'
hevc_320x240_60.mp4
'
,
'
H264_MP3_1s.mp4
'
,
'
h264_aac_3840_2160.mp4
'
]
let
videos
=
[];
let
TAG
=
"
[AVPlayerStabilityTest]
"
;
let
callBackSet
=
0
;
const
PLAY_TIME
=
2
;
let
avPlayer
=
null
;
let
fileDescriptor
=
null
;
let
fileDescriptor2
=
null
;
let
fileDescriptor3
=
null
;
let
avPlayTest1
=
{
width
:
0
,
height
:
0
,
duration
:
-
1
,
};
let
avPlayTest2
=
{
width
:
0
,
height
:
0
,
duration
:
-
1
,
};
beforeAll
(
async
function
()
{
let
fdHead
=
'
fd://
'
;
let
fdPath
=
''
;
let
fdNumber
=
0
;
let
fdNumbers
=
[]
const
PLAY_TIME
=
2
;
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
await
mediaTestBase
.
getStageFileDescriptor
(
VIDEO_SOURCE
).
then
((
res
)
=>
{
fileDescriptor
=
res
;
})
;
await
mediaTestBase
.
getStageFileDescriptor
(
AUDIO_SOURCE
).
then
((
res
)
=>
{
fileDescriptor2
=
res
;
});
await
mediaTestBase
.
getStageFileDescriptor
(
VIDEO_NOAUDIO
).
then
((
res
)
=>
{
fileDescriptor3
=
res
;
}
);
for
(
var
i
=
0
;
i
<
VIDEO_SOURCES
.
length
;
i
++
)
{
await
getStageFdRead
(
VIDEO_SOURCES
[
i
]).
then
((
testNumber
)
=>
{
fdNumber
=
testNumber
;
console
.
info
(
TAG
+
'
this fdNumber is :
'
+
fdNumber
)
fdPath
=
fdHead
+
''
+
fdNumber
;
fdNumbers
.
push
(
fdNumber
)
videos
.
push
(
fdPath
)
})
}
})
async
function
getStageFdRead
(
pathName
)
{
let
fdReturn
;
let
contextStage
=
globalThis
.
context
;
let
fileDir
=
contextStage
.
filesDir
console
.
info
(
"
case file dir is
"
+
JSON
.
stringify
(
fileDir
));
pathName
=
fileDir
+
'
/
'
+
pathName
;
console
.
info
(
"
case pathName is
"
+
pathName
);
await
fileio
.
open
(
pathName
).
then
((
fdNumber
)
=>
{
fdReturn
=
fdNumber
;
console
.
info
(
'
[fileio]case open fd success, fd is
'
+
fdReturn
);
})
return
fdReturn
;
}
beforeEach
(
async
function
()
{
console
.
info
(
'
beforeEach case
'
);
await
sleep
(
3
000
);
await
AVPlayerTestBase
.
sleep
(
1
000
);
})
afterEach
(
async
function
()
{
...
...
@@ -69,14 +119,14 @@ export default function AVPlayerStabilityTest() {
},
mediaTestBase
.
failureCallback
).
catch
(
mediaTestBase
.
catchCallback
);
}
console
.
info
(
'
afterEach case
'
);
await
sleep
(
3
000
);
await
AVPlayerTestBase
.
sleep
(
1
000
);
})
afterAll
(
async
function
()
{
console
.
info
(
'
afterAll case
'
);
await
mediaTestBase
.
closeFileDescriptor
(
VIDEO_SOURCE
);
await
mediaTestBase
.
closeFileDescriptor
(
AUDIO_SOURCE
);
await
mediaTestBase
.
closeFileDescriptor
(
VIDEO_NOAUDIO
);
for
(
var
i
=
0
;
i
<
fdNumbers
.
length
;
i
++
){
await
mediaTestBase
.
closeFdNumber
(
fdNumbers
[
i
]
);
}
})
/* *
...
...
@@ -89,8 +139,7 @@ export default function AVPlayerStabilityTest() {
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_0100 start
'
)
avPlayTest1
=
{
width
:
720
,
height
:
480
,
duration
:
10034
};
avPlayerWithCallBack
(
fileDescriptor
,
avPlayer
,
avPlayTest1
,
PLAY_TIME
,
done
);
AVPlayerTestBase
.
avPlayerWithCallBack
(
videos
[
0
],
avPlayer
,
PLAY_TIME
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_0100 end
'
)
})
...
...
@@ -104,9 +153,1089 @@ export default function AVPlayerStabilityTest() {
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_0200 start
'
)
avPlayTest2
=
{
width
:
720
,
height
:
480
,
duration
:
10034
};
avPlayerWithoutCallBack
(
fileDescriptor
,
avPlayer
,
avPlayTest2
,
done
);
AVPlayerTestBase
.
avPlayerWithoutCallBack
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0100
* @tc.name : 001.test play source mp4(H264_AAC)
* @tc.desc : Local Video play source (H264_AAC)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0200
* @tc.name : 001.test play source (H264_MP3)
* @tc.desc : Local Video play source (H264_MP3)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0200 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
1
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0300
* @tc.name : 001.test play source mp4 (H263_AAC)
* @tc.desc : Local Video play source (H263_AAC)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0300 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
2
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0400
* @tc.name : 001.test play source (H263_MP3)
* @tc.desc : Local Video play source (H263_MP3)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0400 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
3
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0500
* @tc.name : 001.test play source (MPEG2_AAC)
* @tc.desc : Local Video play source (MPEG2_AAC)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0500 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
4
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0600
* @tc.name : 001.test play source (MPEG2_MP3)
* @tc.desc : Local Video play source (MPEG2_MP3)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0600 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
5
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0700
* @tc.name : 001.test play source (MPEG2_MP3)
* @tc.desc : Local Video play source (MPEG2_MP3)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0700 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
6
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0800
* @tc.name : 001.test play source (h263.mov)
* @tc.desc : Local Video play source (h263.mov)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0800 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
7
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0800 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0900
* @tc.name : 001.test play source (mpeg2.mkv)
* @tc.desc : Local Video play source (mpeg2.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0900 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
8
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0900 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0100
* @tc.name : 001.test play source (h264_aac.ts)
* @tc.desc : Local Video play source (h264_aac.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
9
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0200
* @tc.name : 001.test play source (h264_mp3.ts)
* @tc.desc : Local Video play source (h264_mp3.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0200 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
10
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0300
* @tc.name : 001.test play source (h263_aac.ts)
* @tc.desc : Local Video play source (h263_aac.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0300 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
11
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0400
* @tc.name : 001.test play source (h263_mp3.ts)
* @tc.desc : Local Video play source (h263_mp3.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0400 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
12
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0500
* @tc.name : 001.test play source (mpeg2_aac.ts)
* @tc.desc : Local Video play source (mpeg2_aac.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0500 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
13
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0600
* @tc.name : 001.test play source (mpeg2_mp3.ts)
* @tc.desc : Local Video play source (mpeg2_mp3.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0600 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
14
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0700
* @tc.name : 001.test play source (mpeg4_aac.ts)
* @tc.desc : Local Video play source (mpeg4_aac.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0700 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
15
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0800
* @tc.name : 001.test play source (mpeg4_mp3.ts)
* @tc.desc : Local Video play source (mpeg4_mp3.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0800 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
16
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0800 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0900
* @tc.name : 001.test play source (h264.ts)
* @tc.desc : Local Video play source (h264.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0900 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
17
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_0900 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1000
* @tc.name : 001.test play source (h263.ts)
* @tc.desc : Local Video play source (h263.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1000
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1000 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
18
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1000 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1100
* @tc.name : 001.test play source (mpeg2.ts)
* @tc.desc : Local Video play source (mpeg2.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
19
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1200
* @tc.name : 001.test play source (mpeg4.ts)
* @tc.desc : Local Video play source (mpeg4.ts)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1200 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
20
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_TS_1200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0100
* @tc.name : 001.test play source (vp8_vorbis.webm)
* @tc.desc : Local Video play source (vp8_vorbis.webm)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
21
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0200
* @tc.name : 001.test play source (vp8.webm)
* @tc.desc : Local Video play source (vp8.webm)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0200 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
22
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WEBM_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0100
* @tc.name : 001.test play source (H264_AAC.mkv)
* @tc.desc : Local Video play source (H264_AAC.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
23
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0200
* @tc.name : 001.test play source (H264_MP3.mkv)
* @tc.desc : Local Video play source (H264_MP3.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0200 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
24
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0300
* @tc.name : 001.test play source (H263_AAC.mkv)
* @tc.desc : Local Video play source (H263_AAC.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0300 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
25
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0400
* @tc.name : 001.test play source (H263_MP3.mkv)
* @tc.desc : Local Video play source (H263_MP3.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0400 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
26
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0500
* @tc.name : 001.test play source (MPEG2_AAC.mkv)
* @tc.desc : Local Video play source (MPEG2_AAC.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0500 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
27
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0600
* @tc.name : 001.test play source (mpeg2_mp3.mkv)
* @tc.desc : Local Video play source (mpeg2_mp3.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0600 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
28
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0700
* @tc.name : 001.test play source (mpeg4_aac.mkv)
* @tc.desc : Local Video play source (mpeg4_aac.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0700 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
29
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0800
* @tc.name : 001.test play source (MPEG4_MP3.mkv)
* @tc.desc : Local Video play source (MPEG4_MP3.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0800 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
30
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0800 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0900
* @tc.name : 001.test play source (h264.mkv)
* @tc.desc : Local Video play source (h264.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0900 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
31
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_0900 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1000
* @tc.name : 001.test play source (h263.mkv)
* @tc.desc : Local Video play source (h263.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1000
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1000 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
32
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1000 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1100
* @tc.name : 001.test play source (MPEG2.mkv)
* @tc.desc : Local Video play source (MPEG2.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
33
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1200
* @tc.name : 001.test play source (mpeg4.mkv)
* @tc.desc : Local Video play source (mpeg4.mkv)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1200 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
34
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MKV_1200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_AAC_0100
* @tc.name : 001.test play source (aac_audio.aac)
* @tc.desc : Local Video play source (aac_audio.aac)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_AAC_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_AAC_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
35
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_AAC_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP3_0100
* @tc.name : 001.test play source (MP3_AUDIO.mp3)
* @tc.desc : Local Video play source (MP3_AUDIO.mp3)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP3_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP3_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
36
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP3_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_M4A_0100
* @tc.name : 001.test play source (m4a_audio.m4a)
* @tc.desc : Local Video play source (m4a_audio.m4a)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_M4A_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_M4A_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
37
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_M4A_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_OGG_0100
* @tc.name : 001.test play source (ogg_audio.ogg)
* @tc.desc : Local Video play source (ogg_audio.ogg)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_OGG_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_OGG_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
38
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_OGG_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WAV_0100
* @tc.name : 001.test play source (wav_audio.wav)
* @tc.desc : Local Video play source (wav_audio.wav)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WAV_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WAV_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
39
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_WAV_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_FLAC_0100
* @tc.name : 001.test play source (flac_audio.flac)
* @tc.desc : Local Video play source (flac_audio.flac)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_FLAC_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_FLAC_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
40
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_FLAC_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0100
* @tc.name : 001.test play source 60fps
* @tc.desc : Local Video play source
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0100 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
41
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0200
* @tc.name : 001.test play short source 1s
* @tc.desc : Local Video play short source
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0200 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
42
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300
* @tc.name : 001.test play source 4k
* @tc.desc : Local Video play source
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
43
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0100
* @tc.name : 001.test create->release (1000 times)
* @tc.desc : Local Video play create->release (1000 times)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0100 start
'
)
AVPlayerTestBase
.
createToRelease
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0200
* @tc.name : 001.test play pause loop 1000
* @tc.desc : Local Video play to pause 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0200 start
'
)
AVPlayerTestBase
.
avPlayerWithCallBack
(
videos
[
0
],
avPlayer
,
PLAY_TIME
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300
* @tc.name : 001.test complete->play->seek duration (1000 times)
* @tc.desc : Local Video complete->play->seek duration (1000 times)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300 start
'
)
AVPlayerTestBase
.
playToCompleted
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0400
* @tc.name : 001.test play->seek (1000 times wait callBack)
* @tc.desc : Local Video play->seek (1000 times)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0400 start
'
)
AVPlayerTestBase
.
seekLoop
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0500
* @tc.name : 001.test play->seek (1000 times do not wait callBack)
* @tc.desc : Local Video play->seek (1000 times)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0500 start
'
)
AVPlayerTestBase
.
seekLoopWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0600
* @tc.name : 001.test stop -> prepare (1000 times)
* @tc.desc : Local Video test stop -> prepare (1000 times)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0600 start
'
)
AVPlayerTestBase
.
prepareToStopLoop
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0700
* @tc.name : 001.test reset -> url -> preapre -> play -> reset (1000 times)
* @tc.desc : Local Video test reset -> url -> preapre -> play -> reset (1000 times)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0700 start
'
)
AVPlayerTestBase
.
prepareToResetLoop
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0800
* @tc.name : 001.test release -> create-> url -> prepare -> play -> release (1000 times)
* @tc.desc : Local Video test release -> create-> url -> prepare -> play -> release (1000 times)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0800 start
'
)
AVPlayerTestBase
.
createToReleaseLoop
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0800 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100
* @tc.name : 001.test create time (wait callback)
* @tc.desc : Local Video test create time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
// it('SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100', 0, async function (done) {
// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 start')
// AVPlayerTestBase.createTimeWithCallback(videos[0], avPlayer, done);
// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 end')
// })
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0110
* @tc.name : 001.test create time (not wait callback)
* @tc.desc : Local Video test create time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0110
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0110 start
'
)
AVPlayerTestBase
.
createTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0110 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0200
* @tc.name : 001.test prepare time (not wait callback)
* @tc.desc : Local Video test prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0200 start
'
)
AVPlayerTestBase
.
prepareTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0210
* @tc.name : 001.test prepare time (not wait callback)
* @tc.desc : Local Video test prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0210
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0210 start
'
)
AVPlayerTestBase
.
prepareTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0210 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0300
* @tc.name : 001.test play time (wait callback)
* @tc.desc : Local Video test play time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0300 start
'
)
AVPlayerTestBase
.
playTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0310
* @tc.name : 001.test play time (not wait callback)
* @tc.desc : Local Video play prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0310
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0310 start
'
)
AVPlayerTestBase
.
playTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0310 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0300
* @tc.name : 001.test pause time (wait callback)
* @tc.desc : Local Video test pause time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0400 start
'
)
AVPlayerTestBase
.
pauseTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0410
* @tc.name : 001.test pause time (not wait callback)
* @tc.desc : Local Video pause prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0410
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0410 start
'
)
AVPlayerTestBase
.
pauseTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0410 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0500
* @tc.name : 001.test stop time (wait callback)
* @tc.desc : Local Video test stop time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0500 start
'
)
AVPlayerTestBase
.
stopTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0510
* @tc.name : 001.test stop time (not wait callback)
* @tc.desc : Local Video stop prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0510
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0510 start
'
)
AVPlayerTestBase
.
stopTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0510 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0600
* @tc.name : 001.test reset time (wait callback)
* @tc.desc : Local Video test reset time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0600 start
'
)
AVPlayerTestBase
.
resetTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0610
* @tc.name : 001.test reset time (not wait callback)
* @tc.desc : Local Video reset prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0610
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0610 start
'
)
AVPlayerTestBase
.
resetTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0610 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0700
* @tc.name : 001.test release time (wait callback)
* @tc.desc : Local Video test release time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0700 start
'
)
AVPlayerTestBase
.
releaseTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0710
* @tc.name : 001.test release time (not wait callback)
* @tc.desc : Local Video release prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0710
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0710 start
'
)
AVPlayerTestBase
.
releaseTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0710 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0800
* @tc.name : 001.test seek time (wait callback)
* @tc.desc : Local Video test seek time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0800 start
'
)
AVPlayerTestBase
.
seekTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0800 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0810
* @tc.name : 001.test seek time (not wait callback)
* @tc.desc : Local Video seek prepare time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0810
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0810 start
'
)
AVPlayerTestBase
.
seekTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0810 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0900
* @tc.name : 001.test getTrackDescription time (wait callback)
* @tc.desc : Local Video test getTrackDescription time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0900 start
'
)
AVPlayerTestBase
.
getTrackDescriptionTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0900 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0910
* @tc.name : 001.test getTrackDescription time (not wait callback)
* @tc.desc : Local Video test getTrackDescription time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0910
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0910 start
'
)
AVPlayerTestBase
.
getTrackDescriptionTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0910 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1000
* @tc.name : 001.test setSpeed time (wait callback)
* @tc.desc : Local Video test setSpeed time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1000
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1000 start
'
)
AVPlayerTestBase
.
setSpeedTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1000 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1010
* @tc.name : 001.test setSpeed time (not wait callback)
* @tc.desc : Local Video test setSpeed time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1010
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1010 start
'
)
AVPlayerTestBase
.
setSpeedTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1010 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1100
* @tc.name : 001.test setBitrate time (wait callback)
* @tc.desc : Local Video test setBitrate time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1100 start
'
)
AVPlayerTestBase
.
setBitrateTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1110
* @tc.name : 001.test setBitrate time (not wait callback)
* @tc.desc : Local Video test setBitrate time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1110
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1110 start
'
)
AVPlayerTestBase
.
setBitrateTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1110 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1200
* @tc.name : 001.test setVolume time (wait callback)
* @tc.desc : Local Video test setVolume time (wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1200 start
'
)
AVPlayerTestBase
.
setVolumeTimeWithCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1210
* @tc.name : 001.test setVolume time (not wait callback)
* @tc.desc : Local Video test setVolume time (not wait callback)
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1210
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1210 start
'
)
AVPlayerTestBase
.
setVolumeTimeWithoutCallback
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_1210 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_02_0100
* @tc.name : 001.test firstFrame time
* @tc.desc : Local Video test firstFrame time
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level3
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_02_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_02_0100 start
'
)
AVPlayerTestBase
.
firstFrameTime
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_02_0100 end
'
)
})
})
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录