Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7362b1d7
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看板
提交
7362b1d7
编写于
3月 14, 2022
作者:
L
ling990
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcases Signed-off-by: ling990 <liling96@huawei.com>
Signed-off-by:
N
ling990
<
ling990@qq.com
>
上级
ce2124e7
变更
51
显示空白变更内容
内联
并排
Showing
51 changed file
with
122 addition
and
243 deletion
+122
-243
multimedia/media/media_js_standard/audioDecoder/Test.json
multimedia/media/media_js_standard/audioDecoder/Test.json
+10
-10
multimedia/media/media_js_standard/audioEncoder/Test.json
multimedia/media/media_js_standard/audioEncoder/Test.json
+10
-10
multimedia/media/media_js_standard/audioPlayer/BUILD.gn
multimedia/media/media_js_standard/audioPlayer/BUILD.gn
+1
-1
multimedia/media/media_js_standard/audioPlayer/Test.json
multimedia/media/media_js_standard/audioPlayer/Test.json
+8
-8
multimedia/media/media_js_standard/audioPlayer/src/main/java/ohos/acts/multimedia/audio/audioplayer/MainAbility.java
...a/ohos/acts/multimedia/audio/audioplayer/MainAbility.java
+1
-1
multimedia/media/media_js_standard/audioPlayer/src/main/java/ohos/acts/multimedia/audio/audioplayer/MyApplication.java
...ohos/acts/multimedia/audio/audioplayer/MyApplication.java
+1
-1
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/app.js
.../media_js_standard/audioPlayer/src/main/js/default/app.js
+1
-1
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/pages/index/index.css
...ard/audioPlayer/src/main/js/default/pages/index/index.css
+0
-15
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/pages/index/index.hml
...ard/audioPlayer/src/main/js/default/pages/index/index.hml
+0
-15
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/pages/index/index.js
...dard/audioPlayer/src/main/js/default/pages/index/index.js
+1
-1
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/List.test.js
...dia_js_standard/audioPlayer/src/main/js/test/List.test.js
+1
-1
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
...ioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
+1
-1
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
...oPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
+1
-1
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/audioRecorder/BUILD.gn
multimedia/media/media_js_standard/audioRecorder/BUILD.gn
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/java/ohos/acts/multimedia/audio/audioplayer/MainAbility.java
...a/ohos/acts/multimedia/audio/audioplayer/MainAbility.java
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/java/ohos/acts/multimedia/audio/audioplayer/MyApplication.java
...ohos/acts/multimedia/audio/audioplayer/MyApplication.java
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/app.js
...edia_js_standard/audioRecorder/src/main/js/default/app.js
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/pages/index/index.css
...d/audioRecorder/src/main/js/default/pages/index/index.css
+0
-15
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/pages/index/index.hml
...d/audioRecorder/src/main/js/default/pages/index/index.hml
+0
-15
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/pages/index/index.js
...rd/audioRecorder/src/main/js/default/pages/index/index.js
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js
...ioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/List.test.js
...a_js_standard/audioRecorder/src/main/js/test/List.test.js
+1
-1
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
...corder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
+3
-4
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/videoDecoder/Test.json
multimedia/media/media_js_standard/videoDecoder/Test.json
+10
-10
multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderEnumTest.test.js
...ideoDecoder/src/main/js/test/VideoDecoderEnumTest.test.js
+1
-1
multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncPromiseTest.test.js
...oder/src/main/js/test/VideoDecoderFuncPromiseTest.test.js
+5
-5
multimedia/media/media_js_standard/videoEncoder/Test.json
multimedia/media/media_js_standard/videoEncoder/Test.json
+10
-10
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderMultiInstancesTest.test.js
...r/src/main/js/test/VideoEncoderMultiInstancesTest.test.js
+4
-4
multimedia/media/media_js_standard/videoPlayer/BUILD.gn
multimedia/media/media_js_standard/videoPlayer/BUILD.gn
+2
-2
multimedia/media/media_js_standard/videoPlayer/Test.json
multimedia/media/media_js_standard/videoPlayer/Test.json
+8
-8
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/app.js
.../media_js_standard/videoPlayer/src/main/js/default/app.js
+1
-1
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/pages/index/index.css
...ard/videoPlayer/src/main/js/default/pages/index/index.css
+0
-15
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/pages/index/index.hml
...ard/videoPlayer/src/main/js/default/pages/index/index.hml
+0
-15
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/pages/index/index.js
...dard/videoPlayer/src/main/js/default/pages/index/index.js
+1
-1
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/List.test.js
...dia_js_standard/videoPlayer/src/main/js/test/List.test.js
+1
-1
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
...layer/src/main/js/test/VideoPlayerAPICallbackTest.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
+1
-1
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
...ayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
+1
-1
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
...layer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
+1
-1
multimedia/media/media_js_standard/videoRecorder/BUILD.gn
multimedia/media/media_js_standard/videoRecorder/BUILD.gn
+2
-2
multimedia/media/media_js_standard/videoRecorder/Test.json
multimedia/media/media_js_standard/videoRecorder/Test.json
+2
-2
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/app.js
...edia_js_standard/videoRecorder/src/main/js/default/app.js
+1
-1
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/pages/index/index.css
...d/videoRecorder/src/main/js/default/pages/index/index.css
+0
-15
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/pages/index/index.hml
...d/videoRecorder/src/main/js/default/pages/index/index.hml
+0
-15
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/pages/index/index.js
...rd/videoRecorder/src/main/js/default/pages/index/index.js
+1
-1
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/List.test.js
...a_js_standard/videoRecorder/src/main/js/test/List.test.js
+1
-1
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
+10
-10
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
...der/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
+9
-9
未找到文件。
multimedia/media/media_js_standard/audioDecoder/Test.json
浏览文件 @
7362b1d7
...
...
@@ -7,6 +7,13 @@
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsAudioDecoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
...
...
@@ -29,13 +36,6 @@
],
"teardown-command"
:[
]
},
{
"test-file-name"
:
[
"ActsAudioDecoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
\ No newline at end of file
multimedia/media/media_js_standard/audioEncoder/Test.json
浏览文件 @
7362b1d7
...
...
@@ -7,6 +7,13 @@
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsAudioEncoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
...
...
@@ -26,13 +33,6 @@
],
"teardown-command"
:[
]
},
{
"test-file-name"
:
[
"ActsAudioEncoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
\ No newline at end of file
multimedia/media/media_js_standard/audioPlayer/BUILD.gn
浏览文件 @
7362b1d7
# Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/Test.json
浏览文件 @
7362b1d7
...
...
@@ -2,11 +2,18 @@
"description"
:
"Configuration for audioPlayer Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"
12
0000"
,
"test-timeout"
:
"
200
0000"
,
"package"
:
"ohos.acts.multimedia.audio.audioplayer"
,
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsAudioPlayerJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
...
...
@@ -44,13 +51,6 @@
],
"teardown-command"
:[
]
},
{
"test-file-name"
:
[
"ActsAudioPlayerJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
multimedia/media/media_js_standard/audioPlayer/src/main/java/ohos/acts/multimedia/audio/audioplayer/MainAbility.java
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/java/ohos/acts/multimedia/audio/audioplayer/MyApplication.java
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/app.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/pages/index/index.css
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021-2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/pages/index/index.hml
浏览文件 @
7362b1d7
<!--
Copyright (c) 2021-2022 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/default/pages/index/index.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/List.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/BUILD.gn
浏览文件 @
7362b1d7
# Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/java/ohos/acts/multimedia/audio/audioplayer/MainAbility.java
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/java/ohos/acts/multimedia/audio/audioplayer/MyApplication.java
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/app.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/pages/index/index.css
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021-2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/pages/index/index.hml
浏览文件 @
7362b1d7
<!--
Copyright (c) 2021-2022 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/default/pages/index/index.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/List.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -216,9 +216,7 @@ describe('RecorderLocalTestAudioAPI', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_createAudioRecorder_API_0100
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
fdPath
;
let
testAudioRecorder
;
expect
(
testAudioRecorder
).
assertNull
();
let
testAudioRecorder
=
undefined
;
testAudioRecorder
=
media
.
createAudioRecorder
();
expect
(
testAudioRecorder
!=
undefined
).
assertTrue
();
done
();
...
...
@@ -233,6 +231,7 @@ describe('RecorderLocalTestAudioAPI', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_AudioRecorder_Prepare_API_0100
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
fdPath
;
let
testAudioRecorder
=
media
.
createAudioRecorder
();
expect
(
testAudioRecorder
!=
null
).
assertTrue
();
testAudioRecorder
.
prepare
(
audioConfig
);
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 2021
-2022
Huawei Device Co., Ltd.
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoDecoder/Test.json
浏览文件 @
7362b1d7
...
...
@@ -7,6 +7,13 @@
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsVideoDecoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
...
...
@@ -26,13 +33,6 @@
],
"teardown-command"
:[
]
},
{
"test-file-name"
:
[
"ActsVideoDecoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
\ No newline at end of file
multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderEnumTest.test.js
浏览文件 @
7362b1d7
...
...
@@ -183,7 +183,7 @@ describe('VideoDecoderEnum', function () {
return
;
}
frameCountOut
++
;
await
videoDecodeProcessor
.
renderOutputData
(
outputObject
).
then
(()
=>
{
await
videoDecodeProcessor
.
freeOutputBuffer
(
outputObject
).
then
(()
=>
{
console
.
log
(
'
in case: release output count:
'
+
frameCountOut
);
},
failCallback
).
catch
(
failCatch
);
}
...
...
multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderFuncPromiseTest.test.js
浏览文件 @
7362b1d7
...
...
@@ -437,8 +437,8 @@ describe('VideoDecoderFuncPromiseTest', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_DECODER_MULTIINSTANCE_PROMISE_0100
* @tc.name : 001.creat
16 video decoder
* @tc.desc : creat
16 video decoder
* @tc.name : 001.creat
multiple video decoders
* @tc.desc : creat
multiple video decoders
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
...
...
@@ -458,7 +458,7 @@ describe('VideoDecoderFuncPromiseTest', function () {
}
let
array
=
new
Array
();
eventEmitter
.
on
(
'
releaseAllDecoder
'
,
async
()
=>
{
for
(
let
j
=
0
;
j
<
15
;
j
++
)
{
for
(
let
j
=
0
;
j
<
3
;
j
++
)
{
await
array
[
j
].
release
().
then
(()
=>
{
array
[
j
]
=
null
;
},
failCallback
).
catch
(
failCatch
);
...
...
@@ -469,11 +469,11 @@ describe('VideoDecoderFuncPromiseTest', function () {
videoDecodeProcessor
=
null
;
done
();
})
for
(
let
i
=
0
;
i
<
16
;
i
++
)
{
for
(
let
i
=
0
;
i
<
3
;
i
++
)
{
await
media
.
createVideoDecoderByMime
(
'
video/avc
'
).
then
((
processor
)
=>
{
if
(
typeof
(
processor
)
!=
'
undefined
'
)
{
console
.
info
(
'
in case : createVideoDecoderByMime success
'
);
if
(
i
==
15
)
{
if
(
i
==
2
)
{
videoDecodeProcessor
=
processor
;
}
else
{
array
[
i
]
=
processor
;
...
...
multimedia/media/media_js_standard/videoEncoder/Test.json
浏览文件 @
7362b1d7
...
...
@@ -7,6 +7,13 @@
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsVideoEncoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
...
...
@@ -24,13 +31,6 @@
],
"teardown-command"
:[
]
},
{
"test-file-name"
:
[
"ActsVideoEncoderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
\ No newline at end of file
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderMultiInstancesTest.test.js
浏览文件 @
7362b1d7
...
...
@@ -262,7 +262,7 @@ describe('videoEncoderSoftwareMultiInstances', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_MULTIINSTANCE_0100
* @tc.name : 001.create
16 encoder
* @tc.name : 001.create
multiple encoders
* @tc.desc : basic encode function
* @tc.size : MediumTest
* @tc.type : Function test
...
...
@@ -284,7 +284,7 @@ describe('videoEncoderSoftwareMultiInstances', function () {
let
array
=
new
Array
();
eventEmitter
.
once
(
'
nextStep
'
,
async
()
=>
{
for
(
let
j
=
1
;
j
<
16
;
j
++
)
{
for
(
let
j
=
1
;
j
<
3
;
j
++
)
{
await
array
[
j
].
release
().
then
(()
=>
{
console
.
info
(
"
case release encoder
"
+
j
);
array
[
j
]
=
null
;
...
...
@@ -303,11 +303,11 @@ describe('videoEncoderSoftwareMultiInstances', function () {
toStartStream
();
await
toStart
();
}
for
(
let
i
=
1
;
i
<=
16
;
i
+=
1
)
{
for
(
let
i
=
1
;
i
<=
3
;
i
+=
1
)
{
await
media
.
createVideoEncoderByMime
(
mime
).
then
((
processor
)
=>
{
if
(
typeof
(
processor
)
!=
'
undefined
'
)
{
console
.
info
(
"
case create createVideoEncoder success:
"
+
i
);
if
(
i
==
16
)
{
if
(
i
==
3
)
{
videoEncodeProcessor
=
processor
;
runCase
();
}
else
{
...
...
multimedia/media/media_js_standard/videoPlayer/BUILD.gn
浏览文件 @
7362b1d7
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
@@ -26,7 +26,7 @@ ohos_js_hap_suite("video_player_js_hap") {
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "VideoPlayerJsTest"
hap_name = "
Acts
VideoPlayerJsTest"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
...
...
multimedia/media/media_js_standard/videoPlayer/Test.json
浏览文件 @
7362b1d7
...
...
@@ -7,6 +7,13 @@
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsVideoPlayerJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
...
...
@@ -21,13 +28,6 @@
],
"teardown-command"
:[
]
},
{
"test-file-name"
:
[
"VideoPlayerJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/app.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/pages/index/index.css
浏览文件 @
7362b1d7
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/pages/index/index.hml
浏览文件 @
7362b1d7
<!--
Copyright (c) 2022 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/default/pages/index/index.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/List.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoRecorder/BUILD.gn
浏览文件 @
7362b1d7
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
@@ -24,7 +24,7 @@ ohos_js_hap_suite("video_recorder_js_hap") {
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "VideoRecorderJsTest"
hap_name = "
Acts
VideoRecorderJsTest"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
...
...
multimedia/media/media_js_standard/videoRecorder/Test.json
浏览文件 @
7362b1d7
...
...
@@ -2,7 +2,7 @@
"description"
:
"Configuration for videoRecorder Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"
1
000000"
,
"test-timeout"
:
"
2
000000"
,
"package"
:
"ohos.acts.multimedia.video.videorecorder"
,
"shell-timeout"
:
"60000"
},
...
...
@@ -16,7 +16,7 @@
},
{
"test-file-name"
:
[
"VideoRecorderJsTest.hap"
"
Acts
VideoRecorderJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/app.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/pages/index/index.css
浏览文件 @
7362b1d7
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/pages/index/index.hml
浏览文件 @
7362b1d7
<!--
Copyright (c) 2022 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/default/pages/index/index.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/List.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderAPICallbackTest.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncCallbackTest.test.js
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -55,13 +55,13 @@ describe('VideoRecorderFuncCallbackTest', function () {
videoFrameHeight
:
480
,
videoFrameRate
:
10
}
//
orientationHint
0, 90, 180, 270
//
rotation
0, 90, 180, 270
let
videoConfig
=
{
audioSourceType
:
1
,
videoSourceType
:
0
,
profile
:
configFile
,
url
:
'
file:///data/media/01.mp4
'
,
orientationHint
:
0
,
rotation
:
0
,
location
:
{
latitude
:
30
,
longitude
:
130
},
maxSize
:
100
,
maxDuration
:
500
...
...
@@ -81,7 +81,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
videoSourceType
:
0
,
profile
:
onlyVideoProfile
,
url
:
'
file:///data/media/01.mp4
'
,
orientationHint
:
0
,
rotation
:
0
,
location
:
{
latitude
:
30
,
longitude
:
130
},
maxSize
:
100
,
maxDuration
:
500
...
...
@@ -728,7 +728,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_1900
* @tc.name : 19.
orientationHint
90 (callback)
* @tc.name : 19.
rotation
90 (callback)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
...
...
@@ -737,7 +737,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_1900
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
37.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
orientationHint
=
90
;
videoConfig
.
rotation
=
90
;
let
videoRecorder
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
PREPARE_EVENT
,
GETSURFACE_EVENT
,
START_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
...
...
@@ -746,7 +746,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2000
* @tc.name : 20.
orientationHint
180 (callback)
* @tc.name : 20.
rotation
180 (callback)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
...
...
@@ -755,7 +755,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2000
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
38.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
orientationHint
=
180
;
videoConfig
.
rotation
=
180
;
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
);
...
...
@@ -763,7 +763,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2100
* @tc.name : 21.
orientationHint
270 (callback)
* @tc.name : 21.
rotation
270 (callback)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
...
...
@@ -772,7 +772,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_RECORDER_FUNCTION_CALLBACK_2100
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
39.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
orientationHint
=
270
;
videoConfig
.
rotation
=
270
;
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
浏览文件 @
7362b1d7
/*
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -46,7 +46,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
videoSourceType
:
0
,
profile
:
configFile
,
url
:
'
file:///data/media/01.mp4
'
,
orientationHint
:
0
,
rotation
:
0
,
location
:
{
latitude
:
30
,
longitude
:
130
},
maxSize
:
100
,
maxDuration
:
500
...
...
@@ -66,7 +66,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
videoSourceType
:
0
,
profile
:
onlyVideoProfile
,
url
:
'
file:///data/media/01.mp4
'
,
orientationHint
:
0
,
rotation
:
0
,
location
:
{
latitude
:
30
,
longitude
:
130
},
maxSize
:
100
,
maxDuration
:
500
...
...
@@ -1263,7 +1263,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_RECORDER_FUNCTION_PROMISE_1900
* @tc.name : 19.
orientationHint
90 (promise)
* @tc.name : 19.
rotation
90 (promise)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
...
...
@@ -1275,7 +1275,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let
videoOutput
;
await
getFd
(
'
40.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
orientationHint
=
90
;
videoConfig
.
rotation
=
90
;
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
if
(
typeof
(
recorder
)
!=
'
undefined
'
)
{
...
...
@@ -1312,7 +1312,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_RECORDER_FUNCTION_PROMISE_2000
* @tc.name : 20.
orientationHint
180 (promise)
* @tc.name : 20.
rotation
180 (promise)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
...
...
@@ -1324,7 +1324,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let
videoOutput
;
await
getFd
(
'
41.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
orientationHint
=
180
;
videoConfig
.
rotation
=
180
;
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
if
(
typeof
(
recorder
)
!=
'
undefined
'
)
{
...
...
@@ -1361,7 +1361,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
/* *
* @tc.number : SUB_MEDIA_VIDEO_RECORDER_FUNCTION_PROMISE_2100
* @tc.name : 21.
orientationHint
270 (promise)
* @tc.name : 21.
rotation
270 (promise)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
...
...
@@ -1373,7 +1373,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
let
videoOutput
;
await
getFd
(
'
42.mp4
'
);
videoConfig
.
url
=
fdPath
;
videoConfig
.
orientationHint
=
270
;
videoConfig
.
rotation
=
270
;
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录