Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5bf79daa
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看板
提交
5bf79daa
编写于
6月 14, 2022
作者:
N
NOBUGGERS
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test name update Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>
Signed-off-by:
N
NOBUGGERS
<
ruanmeng@huawei.com
>
上级
e6a8b128
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
32 addition
and
32 deletion
+32
-32
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/AudioPlayerHLSTest.test.js
...ard/hlsPlayer/src/main/js/test/AudioPlayerHLSTest.test.js
+3
-3
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSBitrateTest.test.js
...Player/src/main/js/test/VideoPlayerHLSBitrateTest.test.js
+2
-2
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
...ard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
+11
-11
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/HttpPlayerCompatibilityTest.test.js
...ayer/src/main/js/test/HttpPlayerCompatibilityTest.test.js
+16
-16
未找到文件。
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/AudioPlayerHLSTest.test.js
浏览文件 @
5bf79daa
...
@@ -45,7 +45,7 @@ describe('AudioPlayerHLSTest', function () {
...
@@ -45,7 +45,7 @@ describe('AudioPlayerHLSTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level0
* @tc.level : Level0
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HLS
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsAudioPlayer
'
,
0
,
async
function
(
done
)
{
playAudioSource
(
HTTP_PATH
+
'
05.hls/audio_only/index.m3u8
'
,
219600
,
PLAY_TIME
,
false
,
done
);
playAudioSource
(
HTTP_PATH
+
'
05.hls/audio_only/index.m3u8
'
,
219600
,
PLAY_TIME
,
false
,
done
);
})
})
...
@@ -55,9 +55,9 @@ describe('AudioPlayerHLSTest', function () {
...
@@ -55,9 +55,9 @@ describe('AudioPlayerHLSTest', function () {
* @tc.desc : HLS Video playback control test
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level
0
* @tc.level : Level
2
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HLS_VARIANT
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsAudioPlayerVariant
'
,
0
,
async
function
(
done
)
{
playAudioSource
(
HTTP_PATH
+
'
05.hls/hls_variant_audio/index.m3u8
'
,
219600
,
PLAY_TIME
,
false
,
done
);
playAudioSource
(
HTTP_PATH
+
'
05.hls/hls_variant_audio/index.m3u8
'
,
219600
,
PLAY_TIME
,
false
,
done
);
})
})
})
})
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSBitrateTest.test.js
浏览文件 @
5bf79daa
...
@@ -134,7 +134,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
...
@@ -134,7 +134,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level0
* @tc.level : Level0
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_SET_BITRATE
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayerSelectBitrate
_0100
'
,
0
,
async
function
(
done
)
{
await
initVideoPlayer
(
done
);
await
initVideoPlayer
(
done
);
await
setVideoUrl
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
);
await
setVideoUrl
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
);
await
playAndSetLoop
(
PLAY_TIME
*
2
);
await
playAndSetLoop
(
PLAY_TIME
*
2
);
...
@@ -156,7 +156,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
...
@@ -156,7 +156,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level0
* @tc.level : Level0
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_SET_BITRATE
_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayerSelectBitrate
_0200
'
,
0
,
async
function
(
done
)
{
await
initVideoPlayer
(
done
);
await
initVideoPlayer
(
done
);
await
setVideoUrl
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
);
await
setVideoUrl
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
);
await
playAndSetLoop
(
PLAY_TIME
);
await
playAndSetLoop
(
PLAY_TIME
);
...
...
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
浏览文件 @
5bf79daa
...
@@ -54,7 +54,7 @@ describe('VideoPlayerHLSTest', function () {
...
@@ -54,7 +54,7 @@ describe('VideoPlayerHLSTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level0
* @tc.level : Level0
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayer
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/1/index.m3u8
'
,
640
,
320
,
10033
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/1/index.m3u8
'
,
640
,
320
,
10033
,
PLAY_TIME
,
done
);
done
();
done
();
})
})
...
@@ -65,9 +65,9 @@ describe('VideoPlayerHLSTest', function () {
...
@@ -65,9 +65,9 @@ describe('VideoPlayerHLSTest', function () {
* @tc.desc : HLS Video playback control test
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level
0
* @tc.level : Level
1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_SEPARATE
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayerSeparate
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/2/index.m3u8
'
,
640
,
320
,
10033
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/2/index.m3u8
'
,
640
,
320
,
10033
,
PLAY_TIME
,
done
);
done
();
done
();
})
})
...
@@ -78,9 +78,9 @@ describe('VideoPlayerHLSTest', function () {
...
@@ -78,9 +78,9 @@ describe('VideoPlayerHLSTest', function () {
* @tc.desc : HLS Video playback control test
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level
0
* @tc.level : Level
1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_AUDIOONLY
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayerAudioOnly
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/audio_only/index.m3u8
'
,
0
,
0
,
10033
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/audio_only/index.m3u8
'
,
0
,
0
,
10033
,
PLAY_TIME
,
done
);
done
();
done
();
})
})
...
@@ -93,7 +93,7 @@ describe('VideoPlayerHLSTest', function () {
...
@@ -93,7 +93,7 @@ describe('VideoPlayerHLSTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level0
* @tc.level : Level0
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_VARIANT
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayerVariant
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
,
null
,
null
,
10033
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
,
null
,
null
,
10033
,
PLAY_TIME
,
done
);
done
();
done
();
})
})
...
@@ -104,10 +104,10 @@ describe('VideoPlayerHLSTest', function () {
...
@@ -104,10 +104,10 @@ describe('VideoPlayerHLSTest', function () {
* @tc.desc : HLS Video playback control test
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level
0
* @tc.level : Level
1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_VARIANT_AUDIOOFF
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayerVariantAudioOff
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant2/index.m3u8
'
,
null
,
null
,
1
2000
0
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant2/index.m3u8
'
,
null
,
null
,
1
008
0
,
PLAY_TIME
,
done
);
done
();
done
();
})
})
...
@@ -117,9 +117,9 @@ describe('VideoPlayerHLSTest', function () {
...
@@ -117,9 +117,9 @@ describe('VideoPlayerHLSTest', function () {
* @tc.desc : HLS Video playback control test
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level
0
* @tc.level : Level
2
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_CODEC_CHAGNGE
'
,
0
,
async
function
(
done
)
{
it
(
'
testHlsVideoPlayerCodecChange
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant3/index.m3u8
'
,
null
,
null
,
10080
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant3/index.m3u8
'
,
null
,
null
,
10080
,
PLAY_TIME
,
done
);
done
();
done
();
})
})
...
...
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/HttpPlayerCompatibilityTest.test.js
浏览文件 @
5bf79daa
...
@@ -59,7 +59,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -59,7 +59,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP
4_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatMp
4_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEOPLAYER_PATH
+
'
mp4/h264_aac_640x320_30r.mp4
'
;
let
path
=
VIDEOPLAYER_PATH
+
'
mp4/h264_aac_640x320_30r.mp4
'
;
await
playVideoSource
(
path
,
640
,
320
,
10100
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
640
,
320
,
10100
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -73,7 +73,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -73,7 +73,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP
4_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatMp
4_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEOPLAYER_PATH
+
'
mp4/h264_mp3_640x480_25r.mp4
'
;
let
path
=
VIDEOPLAYER_PATH
+
'
mp4/h264_mp3_640x480_25r.mp4
'
;
await
playVideoSource
(
path
,
640
,
480
,
10080
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
640
,
480
,
10080
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -87,7 +87,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -87,7 +87,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatTs
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEOPLAYER_PATH
+
'
mpeg_ts/h264_aac_640x480_30r.ts
'
;
let
path
=
VIDEOPLAYER_PATH
+
'
mpeg_ts/h264_aac_640x480_30r.ts
'
;
await
playVideoSource
(
path
,
640
,
480
,
10161
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
640
,
480
,
10161
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -101,7 +101,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -101,7 +101,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS
_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatTs
_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEOPLAYER_PATH
+
'
mpeg_ts/h264_mp3_640x480_25r.ts
'
;
let
path
=
VIDEOPLAYER_PATH
+
'
mpeg_ts/h264_mp3_640x480_25r.ts
'
;
await
playVideoSource
(
path
,
640
,
480
,
10169
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
640
,
480
,
10169
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -115,7 +115,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -115,7 +115,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatMkv
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEO_PATH
+
'
H264_AAC.mkv
'
;
let
path
=
VIDEO_PATH
+
'
H264_AAC.mkv
'
;
await
playVideoSource
(
path
,
720
,
480
,
10057
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
720
,
480
,
10057
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -129,7 +129,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -129,7 +129,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV
_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatMkv
_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEO_PATH
+
'
H264_MP3.mkv
'
;
let
path
=
VIDEO_PATH
+
'
H264_MP3.mkv
'
;
await
playVideoSource
(
path
,
720
,
480
,
10059
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
720
,
480
,
10059
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -143,7 +143,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -143,7 +143,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV
_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatMkv
_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEO_PATH
+
'
MPEG2_AAC.mkv
'
;
let
path
=
VIDEO_PATH
+
'
MPEG2_AAC.mkv
'
;
await
playVideoSource
(
path
,
720
,
480
,
10057
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
720
,
480
,
10057
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -157,7 +157,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -157,7 +157,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV
_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatMkv
_0600
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEO_PATH
+
'
MPEG2_MP3.mkv
'
;
let
path
=
VIDEO_PATH
+
'
MPEG2_MP3.mkv
'
;
await
playVideoSource
(
path
,
720
,
480
,
10059
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
720
,
480
,
10059
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -171,7 +171,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -171,7 +171,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV
_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatMkv
_0800
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEO_PATH
+
'
MPEG4_MP3.mkv
'
;
let
path
=
VIDEO_PATH
+
'
MPEG4_MP3.mkv
'
;
await
playVideoSource
(
path
,
720
,
480
,
10059
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
720
,
480
,
10059
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -185,7 +185,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -185,7 +185,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_WEBM
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpVideoPlayerFormatWebm
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
VIDEO_PATH
+
'
VP8_VORBIS.webm
'
;
let
path
=
VIDEO_PATH
+
'
VP8_VORBIS.webm
'
;
await
playVideoSource
(
path
,
720
,
480
,
10083
,
PLAY_TIME
,
done
);
await
playVideoSource
(
path
,
720
,
480
,
10083
,
PLAY_TIME
,
done
);
done
();
done
();
...
@@ -199,7 +199,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -199,7 +199,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_MP
3_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpAudioPlayerFormatMp
3_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
AUDIO_PATH
+
'
01.mp3
'
;
let
path
=
AUDIO_PATH
+
'
01.mp3
'
;
await
playAudioSource
(
path
,
219600
,
PLAY_TIME
,
true
,
done
);
await
playAudioSource
(
path
,
219600
,
PLAY_TIME
,
true
,
done
);
})
})
...
@@ -212,7 +212,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -212,7 +212,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_AAC
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpAudioPlayerFormatAac
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
AUDIOPLAYER_PATH
+
'
aac/aac_96ksr_64kbr_2ch.aac
'
;
let
path
=
AUDIOPLAYER_PATH
+
'
aac/aac_96ksr_64kbr_2ch.aac
'
;
await
playAudioSource
(
path
,
12198
,
PLAY_TIME
,
true
,
done
);
await
playAudioSource
(
path
,
12198
,
PLAY_TIME
,
true
,
done
);
})
})
...
@@ -225,7 +225,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -225,7 +225,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_WAV
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpAudioPlayerFormatWav
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
AUDIOPLAYER_PATH
+
'
wav/pcm_48ksr_16kbr_1ch.wav
'
;
let
path
=
AUDIOPLAYER_PATH
+
'
wav/pcm_48ksr_16kbr_1ch.wav
'
;
await
playAudioSource
(
path
,
5461
,
PLAY_TIME
,
true
,
done
);
await
playAudioSource
(
path
,
5461
,
PLAY_TIME
,
true
,
done
);
})
})
...
@@ -238,7 +238,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -238,7 +238,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_FLAC
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpAudioPlayerFormatFlac
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
AUDIOPLAYER_PATH
+
'
flac/flac_96ksr_64kbr_2ch.flac
'
;
let
path
=
AUDIOPLAYER_PATH
+
'
flac/flac_96ksr_64kbr_2ch.flac
'
;
await
playAudioSource
(
path
,
10000
,
PLAY_TIME
,
true
,
done
);
await
playAudioSource
(
path
,
10000
,
PLAY_TIME
,
true
,
done
);
})
})
...
@@ -251,7 +251,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -251,7 +251,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_M4A
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpAudioPlayerFormatM4a
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
AUDIO_PATH
+
'
55.m4a
'
;
let
path
=
AUDIO_PATH
+
'
55.m4a
'
;
await
playAudioSource
(
path
,
219575
,
PLAY_TIME
,
true
,
done
);
await
playAudioSource
(
path
,
219575
,
PLAY_TIME
,
true
,
done
);
})
})
...
@@ -264,7 +264,7 @@ describe('HttpPlayerCompatibilityTest', function () {
...
@@ -264,7 +264,7 @@ describe('HttpPlayerCompatibilityTest', function () {
* @tc.type : Function test
* @tc.type : Function test
* @tc.level : Level1
* @tc.level : Level1
*/
*/
it
(
'
SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_OGG
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
testHttpAudioPlayerFormatOgg
_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
AUDIOPLAYER_PATH
+
'
ogg/vorbis_48ksr_32kbr_1ch.ogg
'
;
let
path
=
AUDIOPLAYER_PATH
+
'
ogg/vorbis_48ksr_32kbr_1ch.ogg
'
;
await
playAudioSource
(
path
,
10009
,
PLAY_TIME
,
true
,
done
);
await
playAudioSource
(
path
,
10009
,
PLAY_TIME
,
true
,
done
);
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录