Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
909451ef
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看板
未验证
提交
909451ef
编写于
11月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6670 录制编解码对外格式统一化后用例对应修改
Merge pull request !6670 from FULIZHONG/1124master
上级
8a9c85d5
ecd14631
变更
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
浏览文件 @
909451ef
...
@@ -64,17 +64,17 @@ export async function stopCaptureSession(captureSession) {
...
@@ -64,17 +64,17 @@ export async function stopCaptureSession(captureSession) {
export
function
getTrackArray
(
videoType
,
recorderConfigFile
,
sourceType
)
{
export
function
getTrackArray
(
videoType
,
recorderConfigFile
,
sourceType
)
{
if
(
videoType
==
AUDIO_VIDEO_TYPE
)
{
if
(
videoType
==
AUDIO_VIDEO_TYPE
)
{
let
audioTrack
=
new
Array
(
recorderConfigFile
.
audioBitrate
,
recorderConfigFile
.
audioChannels
,
let
audioTrack
=
new
Array
(
recorderConfigFile
.
audioBitrate
,
recorderConfigFile
.
audioChannels
,
'
audio/mp
eg
'
,
recorderConfigFile
.
audioSampleRate
);
'
audio/mp
4a-latm
'
,
recorderConfigFile
.
audioSampleRate
);
let
videoTrack
=
null
;
let
videoTrack
=
null
;
if
(
sourceType
==
media
.
VideoSourceType
.
VIDEO_SOURCE_TYPE_SURFACE_ES
)
{
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
);
recorderConfigFile
.
videoFrameWidth
);
}
else
{
}
else
{
if
(
recorderConfigFile
.
videoCodec
==
'
video/avc
'
)
{
if
(
recorderConfigFile
.
videoCodec
==
'
video/avc
'
)
{
videoTrack
=
new
Array
(
'
video/
x-h264
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/
avc
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
recorderConfigFile
.
videoFrameWidth
);
}
else
{
}
else
{
videoTrack
=
new
Array
(
'
video/mp
eg
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/mp
4v-es
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
recorderConfigFile
.
videoFrameWidth
);
}
}
}
}
...
@@ -83,14 +83,14 @@ export function getTrackArray(videoType, recorderConfigFile, sourceType) {
...
@@ -83,14 +83,14 @@ export function getTrackArray(videoType, recorderConfigFile, sourceType) {
}
else
if
(
videoType
==
ONLYVIDEO_TYPE
)
{
}
else
if
(
videoType
==
ONLYVIDEO_TYPE
)
{
let
videoTrack
=
null
;
let
videoTrack
=
null
;
if
(
sourceType
==
media
.
VideoSourceType
.
VIDEO_SOURCE_TYPE_SURFACE_ES
)
{
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
);
recorderConfigFile
.
videoFrameWidth
);
}
else
{
}
else
{
if
(
recorderConfigFile
.
videoCodec
==
'
video/avc
'
)
{
if
(
recorderConfigFile
.
videoCodec
==
'
video/avc
'
)
{
videoTrack
=
new
Array
(
'
video/
x-h264
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/
avc
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
recorderConfigFile
.
videoFrameWidth
);
}
else
{
}
else
{
videoTrack
=
new
Array
(
'
video/mp
eg
'
,
recorderConfigFile
.
videoFrameHeight
,
videoTrack
=
new
Array
(
'
video/mp
4v-es
'
,
recorderConfigFile
.
videoFrameHeight
,
recorderConfigFile
.
videoFrameWidth
);
recorderConfigFile
.
videoFrameWidth
);
}
}
}
}
...
@@ -98,7 +98,7 @@ export function getTrackArray(videoType, recorderConfigFile, sourceType) {
...
@@ -98,7 +98,7 @@ export function getTrackArray(videoType, recorderConfigFile, sourceType) {
return
trackArray
;
return
trackArray
;
}
else
{
}
else
{
let
audioTrack
=
new
Array
(
recorderConfigFile
.
audioEncodeBitRate
,
recorderConfigFile
.
numberOfChannels
,
let
audioTrack
=
new
Array
(
recorderConfigFile
.
audioEncodeBitRate
,
recorderConfigFile
.
numberOfChannels
,
'
audio/mp
eg
'
,
recorderConfigFile
.
audioSampleRate
);
'
audio/mp
4a-latm
'
,
recorderConfigFile
.
audioSampleRate
);
let
trackArray
=
new
Array
(
audioTrack
);
let
trackArray
=
new
Array
(
audioTrack
);
return
trackArray
;
return
trackArray
;
}
}
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
浏览文件 @
909451ef
...
@@ -236,8 +236,8 @@ describe('VideoPlayerFuncCallbackTest', function () {
...
@@ -236,8 +236,8 @@ describe('VideoPlayerFuncCallbackTest', function () {
'
track_index
'
,
'
track_type
'
,
'
width
'
);
'
track_index
'
,
'
track_type
'
,
'
width
'
);
let
audioTrackKey
=
new
Array
(
'
bitrate
'
,
'
channel_count
'
,
'
codec_mime
'
,
'
sample_rate
'
,
let
audioTrackKey
=
new
Array
(
'
bitrate
'
,
'
channel_count
'
,
'
codec_mime
'
,
'
sample_rate
'
,
'
track_index
'
,
'
track_type
'
);
'
track_index
'
,
'
track_type
'
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
x-h264
'
,
6000
,
480
,
0
,
1
,
720
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
avc
'
,
6000
,
480
,
0
,
1
,
720
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
eg
'
,
44100
,
1
,
0
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
4a-latm
'
,
44100
,
1
,
0
);
let
descriptionKey
=
new
Array
(
videoTrackKey
,
audioTrackKey
);
let
descriptionKey
=
new
Array
(
videoTrackKey
,
audioTrackKey
);
let
descriptionValue
=
new
Array
(
videoTrackValue
,
audioTrackValue
);
let
descriptionValue
=
new
Array
(
videoTrackValue
,
audioTrackValue
);
videoPlayer
.
getTrackDescription
((
err
,
arrlist
)
=>
{
videoPlayer
.
getTrackDescription
((
err
,
arrlist
)
=>
{
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
浏览文件 @
909451ef
...
@@ -480,8 +480,8 @@ describe('VideoPlayerFuncPromiseTest', function () {
...
@@ -480,8 +480,8 @@ describe('VideoPlayerFuncPromiseTest', function () {
'
track_index
'
,
'
track_type
'
,
'
width
'
);
'
track_index
'
,
'
track_type
'
,
'
width
'
);
let
audioTrackKey
=
new
Array
(
'
bitrate
'
,
'
channel_count
'
,
'
codec_mime
'
,
'
sample_rate
'
,
let
audioTrackKey
=
new
Array
(
'
bitrate
'
,
'
channel_count
'
,
'
codec_mime
'
,
'
sample_rate
'
,
'
track_index
'
,
'
track_type
'
);
'
track_index
'
,
'
track_type
'
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
x-h264
'
,
6000
,
480
,
0
,
1
,
720
);
let
videoTrackValue
=
new
Array
(
1366541
,
'
video/
avc
'
,
6000
,
480
,
0
,
1
,
720
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
eg
'
,
44100
,
1
,
0
);
let
audioTrackValue
=
new
Array
(
129207
,
2
,
'
audio/mp
4a-latm
'
,
44100
,
1
,
0
);
let
descriptionKey
=
new
Array
(
videoTrackKey
,
audioTrackKey
);
let
descriptionKey
=
new
Array
(
videoTrackKey
,
audioTrackKey
);
let
descriptionValue
=
new
Array
(
videoTrackValue
,
audioTrackValue
);
let
descriptionValue
=
new
Array
(
videoTrackValue
,
audioTrackValue
);
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录