Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1ad73bf4
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看板
未验证
提交
1ad73bf4
编写于
6月 30, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 30, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3820 修改音频播放设置src顺序、删除API8之后的枚举类
Merge pull request !3820 from FULIZHONG/OpenHarmony-3.1-Release
上级
73b0bbe6
e63551d1
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
1 addition
and
18 deletion
+1
-18
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
...layer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
+1
-1
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js
.../videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js
+0
-17
未找到文件。
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
浏览文件 @
1ad73bf4
...
@@ -72,7 +72,6 @@ describe('PlayerLocalTestAudioFormat', function () {
...
@@ -72,7 +72,6 @@ describe('PlayerLocalTestAudioFormat', function () {
async
function
playSource
(
audioSource
,
done
)
{
async
function
playSource
(
audioSource
,
done
)
{
let
audioPlayer
=
media
.
createAudioPlayer
();
let
audioPlayer
=
media
.
createAudioPlayer
();
await
getFd
(
audioSource
);
await
getFd
(
audioSource
);
audioPlayer
.
src
=
fdPath
;
audioPlayer
.
on
(
'
dataLoad
'
,
()
=>
{
audioPlayer
.
on
(
'
dataLoad
'
,
()
=>
{
console
.
info
(
'
case set source success
'
);
console
.
info
(
'
case set source success
'
);
expect
(
audioPlayer
.
state
).
assertEqual
(
'
paused
'
);
expect
(
audioPlayer
.
state
).
assertEqual
(
'
paused
'
);
...
@@ -142,6 +141,7 @@ describe('PlayerLocalTestAudioFormat', function () {
...
@@ -142,6 +141,7 @@ describe('PlayerLocalTestAudioFormat', function () {
expect
().
assertFail
();
expect
().
assertFail
();
done
();
done
();
});
});
audioPlayer
.
src
=
fdPath
;
}
}
/* *
/* *
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js
浏览文件 @
1ad73bf4
...
@@ -44,8 +44,6 @@ describe('VideoPlayerEnumTest', function () {
...
@@ -44,8 +44,6 @@ describe('VideoPlayerEnumTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_ENUM_SEEK_MODE_00_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_PLAYER_ENUM_SEEK_MODE_00_0100
'
,
0
,
async
function
(
done
)
{
expect
(
media
.
SeekMode
.
SEEK_NEXT_SYNC
).
assertEqual
(
0
);
expect
(
media
.
SeekMode
.
SEEK_NEXT_SYNC
).
assertEqual
(
0
);
expect
(
media
.
SeekMode
.
SEEK_PREV_SYNC
).
assertEqual
(
1
);
expect
(
media
.
SeekMode
.
SEEK_PREV_SYNC
).
assertEqual
(
1
);
expect
(
media
.
SeekMode
.
SEEK_CLOSEST_SYNC
).
assertEqual
(
2
);
expect
(
media
.
SeekMode
.
SEEK_CLOSEST
).
assertEqual
(
3
);
done
();
done
();
})
})
...
@@ -71,20 +69,6 @@ describe('VideoPlayerEnumTest', function () {
...
@@ -71,20 +69,6 @@ describe('VideoPlayerEnumTest', function () {
done
();
done
();
})
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_AV_DATA_SOURCE_ERROR_00_0100
* @tc.name : AVDataSourceError
* @tc.desc : AVDataSourceError Enumeration test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_ENUM_AV_DATA_SOURCE_ERROR_00_0100
'
,
0
,
async
function
(
done
)
{
expect
(
media
.
AVDataSourceError
.
SOURCE_ERROR_IO
).
assertEqual
(
-
2
);
expect
(
media
.
AVDataSourceError
.
SOURCE_ERROR_EOF
).
assertEqual
(
-
1
);
done
();
})
/* *
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_BUFFERING_INFO_TYPE_00_0100
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_BUFFERING_INFO_TYPE_00_0100
* @tc.name : BufferingInfoType
* @tc.name : BufferingInfoType
...
@@ -143,7 +127,6 @@ describe('VideoPlayerEnumTest', function () {
...
@@ -143,7 +127,6 @@ describe('VideoPlayerEnumTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_ENUM_MEDIA_TYPE_00_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_PLAYER_ENUM_MEDIA_TYPE_00_0100
'
,
0
,
async
function
(
done
)
{
expect
(
media
.
MediaType
.
MEDIA_TYPE_AUD
).
assertEqual
(
0
);
expect
(
media
.
MediaType
.
MEDIA_TYPE_AUD
).
assertEqual
(
0
);
expect
(
media
.
MediaType
.
MEDIA_TYPE_VID
).
assertEqual
(
1
);
expect
(
media
.
MediaType
.
MEDIA_TYPE_VID
).
assertEqual
(
1
);
expect
(
media
.
MediaType
.
MEDIA_TYPE_SUBTITLE
).
assertEqual
(
2
);
done
();
done
();
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录