Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
dbd724c3
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看板
未验证
提交
dbd724c3
编写于
6月 23, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3674 修改test.json文件,创建资源存放文件目录、修改媒体库打开文件权限大小写
Merge pull request !3674 from FULIZHONG/OpenHarmony-3.1-Release
上级
51e008e4
f4140dc0
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
27 addition
and
25 deletion
+27
-25
multimedia/media/media_js_standard/audioPlayer/Test.json
multimedia/media/media_js_standard/audioPlayer/Test.json
+8
-7
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
...corder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
...order/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
+1
-1
multimedia/media/media_js_standard/videoPlayer/Test.json
multimedia/media/media_js_standard/videoPlayer/Test.json
+8
-7
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderAPICallbackTest.test.js
...der/src/main/js/test/VideoRecorderAPICallbackTest.test.js
+1
-1
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncCallbackTest.test.js
...er/src/main/js/test/VideoRecorderFuncCallbackTest.test.js
+4
-4
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
...der/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
+4
-4
未找到文件。
multimedia/media/media_js_standard/audioPlayer/Test.json
浏览文件 @
dbd724c3
...
...
@@ -14,6 +14,14 @@
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files"
],
"teardown-command"
:[
]
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
...
...
@@ -44,13 +52,6 @@
"./resource/audio/97.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files/"
,
"./resource/audio/98.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files/"
]
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
],
"teardown-command"
:[
]
}
]
}
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
浏览文件 @
dbd724c3
...
...
@@ -187,7 +187,7 @@ describe('RecorderLocalTestAudioAPI', function () {
}
let
fetchFileResult
=
await
mediaTest
.
getFileAssets
(
fetchOp
);
fileAsset
=
await
fetchFileResult
.
getAllObject
();
fdNumber
=
await
fileAsset
[
0
].
open
(
'
R
w
'
);
fdNumber
=
await
fileAsset
[
0
].
open
(
'
r
w
'
);
fdPath
=
"
fd://
"
+
fdNumber
.
toString
();
}
}
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
浏览文件 @
dbd724c3
...
...
@@ -129,7 +129,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}
let
fetchFileResult
=
await
mediaTest
.
getFileAssets
(
fetchOp
);
fileAsset
=
await
fetchFileResult
.
getAllObject
();
fdNumber
=
await
fileAsset
[
0
].
open
(
'
R
w
'
);
fdNumber
=
await
fileAsset
[
0
].
open
(
'
r
w
'
);
fdPath
=
"
fd://
"
+
fdNumber
.
toString
();
}
}
...
...
multimedia/media/media_js_standard/videoPlayer/Test.json
浏览文件 @
dbd724c3
...
...
@@ -15,18 +15,19 @@
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
"type"
:
"ShellKit"
,
"run-command"
:
[
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files"
],
"push"
:
[
"./resource/audio/H264_AAC.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files/"
"teardown-command"
:[
]
},
{
"type"
:
"
Shell
Kit"
,
"
run-command
"
:
[
"type"
:
"
Push
Kit"
,
"
pre-push
"
:
[
],
"teardown-command"
:[
"push"
:
[
"./resource/audio/H264_AAC.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files/"
]
}
]
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderAPICallbackTest.test.js
浏览文件 @
dbd724c3
...
...
@@ -133,7 +133,7 @@ describe('VideoRecorderAPICallbackTest', function () {
}
let
fetchFileResult
=
await
mediaTest
.
getFileAssets
(
fetchOp
);
fileAsset
=
await
fetchFileResult
.
getAllObject
();
fdNumber
=
await
fileAsset
[
0
].
open
(
'
R
w
'
);
fdNumber
=
await
fileAsset
[
0
].
open
(
'
r
w
'
);
fdPath
=
"
fd://
"
+
fdNumber
.
toString
();
}
}
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncCallbackTest.test.js
浏览文件 @
dbd724c3
...
...
@@ -167,7 +167,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
}
let
fetchFileResult
=
await
mediaTest
.
getFileAssets
(
fetchOp
);
fileAsset
=
await
fetchFileResult
.
getAllObject
();
fdNumber
=
await
fileAsset
[
0
].
open
(
'
R
w
'
);
fdNumber
=
await
fileAsset
[
0
].
open
(
'
r
w
'
);
fdPath
=
"
fd://
"
+
fdNumber
.
toString
();
}
}
...
...
@@ -789,7 +789,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2200
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
46.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
20
;
configFile
.
videoFrameRate
=
20
;
let
videoRecorder
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
PREPARE_EVENT
,
GETSURFACE_EVENT
,
START_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoRecorder
,
mySteps
,
done
);
...
...
@@ -806,7 +806,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2300
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
47.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
30
;
configFile
.
videoFrameRate
=
30
;
let
videoRecorder
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
PREPARE_EVENT
,
GETSURFACE_EVENT
,
START_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoRecorder
,
mySteps
,
done
);
...
...
@@ -823,7 +823,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2400
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
48.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
60
;
configFile
.
videoFrameRate
=
60
;
let
videoRecorder
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
PREPARE_EVENT
,
GETSURFACE_EVENT
,
START_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoRecorder
,
mySteps
,
done
);
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
浏览文件 @
dbd724c3
...
...
@@ -167,7 +167,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
}
let
fetchFileResult
=
await
mediaTest
.
getFileAssets
(
fetchOp
);
fileAsset
=
await
fetchFileResult
.
getAllObject
();
fdNumber
=
await
fileAsset
[
0
].
open
(
'
R
w
'
);
fdNumber
=
await
fileAsset
[
0
].
open
(
'
r
w
'
);
fdPath
=
"
fd://
"
+
fdNumber
.
toString
();
}
}
...
...
@@ -1422,7 +1422,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let
videoOutput
;
await
getFd
(
'
43.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
20
;
configFile
.
videoFrameRate
=
20
;
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
if
(
typeof
(
recorder
)
!=
'
undefined
'
)
{
...
...
@@ -1471,7 +1471,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let
videoOutput
;
await
getFd
(
'
44.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
30
;
configFile
.
videoFrameRate
=
30
;
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
if
(
typeof
(
recorder
)
!=
'
undefined
'
)
{
...
...
@@ -1520,7 +1520,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let
videoOutput
;
await
getFd
(
'
45.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
60
;
configFile
.
videoFrameRate
=
60
;
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
if
(
typeof
(
recorder
)
!=
'
undefined
'
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录