Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ecd14631
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看板
提交
ecd14631
编写于
11月 24, 2022
作者:
F
fulizhong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcase Signed-off-by: FULIZHONG<fulizhong1@huawei.com>
Signed-off-by:
N
fulizhong
<
fulizhong@huawei.com
>
上级
7010eea4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
12 deletion
+12
-12
multimedia/media/media_js_standard/VideoRecorderTestBase.js
multimedia/media/media_js_standard/VideoRecorderTestBase.js
+8
-8
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
...ayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
+2
-2
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
...layer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
+2
-2
未找到文件。
multimedia/media/media_js_standard/VideoRecorderTestBase.js
浏览文件 @
ecd14631
...
...
@@ -64,17 +64,17 @@ export async function stopCaptureSession(captureSession) {
export
function
getTrackArray
(
videoType
,
recorderConfigFile
,
sourceType
)
{
if
(
videoType
==
AUDIO_VIDEO_TYPE
)
{
let
audioTrack
=
new
Array
(
recorderConfigFile
.
audioBitrate
,
recorderConfigFile
.
audioChannels
,
'
audio/mp
eg
'
,
recorderConfigFile
.
audioSampleRate
);
'
audio/mp
4a-latm
'
,
recorderConfigFile
.
audioSampleRate
);
let
videoTrack
=
null
;
if
(
sourceType
==
media
.
VideoSourceType
.
VIDEO_SOURCE_TYPE_SURFACE_ES
)
{
videoTrack
=
new
Array
(
'
video/
x-h264
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/
avc
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
}
else
{
if
(
recorderConfigFile
.
videoCodec
==
'
video/avc
'
)
{
videoTrack
=
new
Array
(
'
video/
x-h264
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/
avc
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
}
else
{
videoTrack
=
new
Array
(
'
video/mp
eg
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/mp
4v-es
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
}
}
...
...
@@ -83,14 +83,14 @@ export function getTrackArray(videoType, recorderConfigFile, sourceType) {
}
else
if
(
videoType
==
ONLYVIDEO_TYPE
)
{
let
videoTrack
=
null
;
if
(
sourceType
==
media
.
VideoSourceType
.
VIDEO_SOURCE_TYPE_SURFACE_ES
)
{
videoTrack
=
new
Array
(
'
video/
x-h264
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/
avc
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
}
else
{
if
(
recorderConfigFile
.
videoCodec
==
'
video/avc
'
)
{
videoTrack
=
new
Array
(
'
video/
x-h264
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/
avc
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
}
else
{
videoTrack
=
new
Array
(
'
video/mp
eg
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/mp
4v-es
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
}
}
...
...
@@ -98,7 +98,7 @@ export function getTrackArray(videoType, recorderConfigFile, sourceType) {
return
trackArray
;
}
else
{
let
audioTrack
=
new
Array
(
recorderConfigFile
.
audioEncodeBitRate
,
recorderConfigFile
.
numberOfChannels
,
'
audio/mp
eg
'
,
recorderConfigFile
.
audioSampleRate
);
'
audio/mp
4a-latm
'
,
recorderConfigFile
.
audioSampleRate
);
let
trackArray
=
new
Array
(
audioTrack
);
return
trackArray
;
}
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
浏览文件 @
ecd14631
...
...
@@ -236,8 +236,8 @@ describe('VideoPlayerFuncCallbackTest', function () {
'
track_index
'
,
'
track_type
'
,
'
width
'
);
let
audioTrackKey
=
new
Array
(
'
bitrate
'
,
'
channel_count
'
,
'
codec_mime
'
,
'
sample_rate
'
,
'
track_index
'
,
'
track_type
'
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
x-h264
'
,
6000
,
480
,
0
,
1
,
720
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
eg
'
,
44100
,
1
,
0
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
avc
'
,
6000
,
480
,
0
,
1
,
720
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
4a-latm
'
,
44100
,
1
,
0
);
let
descriptionKey
=
new
Array
(
videoTrackKey
,
audioTrackKey
);
let
descriptionValue
=
new
Array
(
videoTrackValue
,
audioTrackValue
);
videoPlayer
.
getTrackDescription
((
err
,
arrlist
)
=>
{
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
浏览文件 @
ecd14631
...
...
@@ -480,8 +480,8 @@ describe('VideoPlayerFuncPromiseTest', function () {
'
track_index
'
,
'
track_type
'
,
'
width
'
);
let
audioTrackKey
=
new
Array
(
'
bitrate
'
,
'
channel_count
'
,
'
codec_mime
'
,
'
sample_rate
'
,
'
track_index
'
,
'
track_type
'
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
x-h264
'
,
6000
,
480
,
0
,
1
,
720
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
eg
'
,
44100
,
1
,
0
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
avc
'
,
6000
,
480
,
0
,
1
,
720
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
4a-latm
'
,
44100
,
1
,
0
);
let
descriptionKey
=
new
Array
(
videoTrackKey
,
audioTrackKey
);
let
descriptionValue
=
new
Array
(
videoTrackValue
,
audioTrackValue
);
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录