Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7d46b39c
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看板
未验证
提交
7d46b39c
编写于
6月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3578 去除用例多余代码、修改拼写错误
Merge pull request !3578 from FULIZHONG/0616test
上级
b2fb9274
4e3b8f61
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
33 addition
and
46 deletion
+33
-46
multimedia/media/media_js_standard/VideoPlayerTestBase.js
multimedia/media/media_js_standard/VideoPlayerTestBase.js
+0
-10
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
...ayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
+1
-2
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
...layer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
+1
-2
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncCallbackTest.test.js
...er/src/main/js/test/VideoRecorderFuncCallbackTest.test.js
+3
-3
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
...der/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
+28
-29
未找到文件。
multimedia/media/media_js_standard/VideoPlayerTestBase.js
浏览文件 @
7d46b39c
...
...
@@ -16,16 +16,6 @@
import
media
from
'
@ohos.multimedia.media
'
import
*
as
mediaTestBase
from
'
./MediaTestBase.js
'
;
export
function
checkDescription
(
actualDescription
,
descriptionKey
,
descriptionValue
)
{
for
(
let
i
=
0
;
i
<
descriptionKey
.
length
;
i
++
)
{
let
property
=
actualDescription
[
descriptionKey
[
i
]];
console
.
info
(
'
case key is
'
+
descriptionKey
[
i
]);
console
.
info
(
'
case actual value is
'
+
property
);
console
.
info
(
'
case hope value is
'
+
descriptionValue
[
i
]);
expect
(
property
).
assertEqual
(
descriptionValue
[
i
]);
}
}
export
async
function
playVideoSource
(
url
,
width
,
height
,
duration
,
playTime
,
done
)
{
console
.
info
(
`case media source url:
${
url
}
`
)
let
videoPlayer
=
null
;
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
浏览文件 @
7d46b39c
...
...
@@ -15,7 +15,6 @@
import
media
from
'
@ohos.multimedia.media
'
import
*
as
mediaTestBase
from
'
../../../../../MediaTestBase.js
'
;
import
*
as
videoPlayerBase
from
'
../../../../../VideoPlayerTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
VideoPlayerFuncCallbackTest
'
,
function
()
{
...
...
@@ -232,7 +231,7 @@ describe('VideoPlayerFuncCallbackTest', function () {
videoPlayer
.
getTrackDescription
((
err
,
arrlist
)
=>
{
if
(
typeof
(
err
)
==
'
undefined
'
)
{
for
(
let
i
=
0
;
i
<
arrlist
.
length
;
i
++
)
{
videoPlayer
Base
.
checkDescription
(
arrlist
[
i
],
descriptionKey
[
i
],
descriptionValue
[
i
]);
mediaTest
Base
.
checkDescription
(
arrlist
[
i
],
descriptionKey
[
i
],
descriptionValue
[
i
]);
}
toNextStep
(
videoPlayer
,
steps
,
done
);
}
else
if
((
typeof
(
err
)
!=
'
undefined
'
)
&&
(
steps
[
0
]
==
ERROR_EVENT
))
{
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
浏览文件 @
7d46b39c
...
...
@@ -15,7 +15,6 @@
import
media
from
'
@ohos.multimedia.media
'
import
*
as
mediaTestBase
from
'
../../../../../MediaTestBase.js
'
;
import
*
as
videoPlayerBase
from
'
../../../../../VideoPlayerTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
VideoPlayerFuncPromiseTest
'
,
function
()
{
...
...
@@ -485,7 +484,7 @@ describe('VideoPlayerFuncPromiseTest', function () {
},
mediaTestBase
.
failureCallback
).
catch
(
mediaTestBase
.
catchCallback
);
for
(
let
i
=
0
;
i
<
arrayDescription
.
length
;
i
++
)
{
videoPlayer
Base
.
checkDescription
(
arrayDescription
[
i
],
descriptionKey
[
i
],
descriptionValue
[
i
]);
mediaTest
Base
.
checkDescription
(
arrayDescription
[
i
],
descriptionKey
[
i
],
descriptionValue
[
i
]);
}
await
videoPlayer
.
release
().
then
(()
=>
{
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncCallbackTest.test.js
浏览文件 @
7d46b39c
...
...
@@ -758,7 +758,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
fdObject
=
await
mediaTestBase
.
getFd
(
'
recorder_callback_22.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
20
;
configFile
.
videoFrameRate
=
20
;
let
trackArray
=
videoRecorderBase
.
getTrackArray
(
AUDIO_VIDEO_TYPE
,
configFile
);
let
videoRecorder
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
PREPARE_EVENT
,
GETSURFACE_EVENT
,
START_EVENT
,
RELEASE_EVENT
,
...
...
@@ -778,7 +778,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
fdObject
=
await
mediaTestBase
.
getFd
(
'
recorder_callback_23.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
30
;
configFile
.
videoFrameRate
=
30
;
let
trackArray
=
videoRecorderBase
.
getTrackArray
(
AUDIO_VIDEO_TYPE
,
configFile
);
let
videoRecorder
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
PREPARE_EVENT
,
GETSURFACE_EVENT
,
START_EVENT
,
RELEASE_EVENT
,
...
...
@@ -798,7 +798,7 @@ describe('VideoRecorderFuncCallbackTest', function () {
fdObject
=
await
mediaTestBase
.
getFd
(
'
recorder_callback_24.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
60
;
configFile
.
videoFrameRate
=
60
;
let
trackArray
=
videoRecorderBase
.
getTrackArray
(
AUDIO_VIDEO_TYPE
,
configFile
);
let
videoRecorder
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
PREPARE_EVENT
,
GETSURFACE_EVENT
,
START_EVENT
,
RELEASE_EVENT
,
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderFuncPromiseTest.test.js
浏览文件 @
7d46b39c
...
...
@@ -22,7 +22,6 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
describe
(
'
VideoRecorderFuncPromiseTest
'
,
function
()
{
const
RECORDER_TIME
=
3000
;
const
PAUSE_TIME
=
1000
;
const
DELTA_TIME
=
1000
;
const
ONLYVIDEO_TYPE
=
'
only_video
'
;
const
AUDIO_VIDEO_TYPE
=
'
audio_video
'
;
let
cameraManager
;
...
...
@@ -189,7 +188,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -250,7 +249,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -315,7 +314,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -389,7 +388,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
*
2
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -453,7 +452,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -517,7 +516,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -589,7 +588,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -660,7 +659,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -739,7 +738,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
*
2
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -817,7 +816,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
*
2
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -886,7 +885,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -955,7 +954,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1024,7 +1023,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1093,7 +1092,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1151,7 +1150,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1218,7 +1217,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1291,7 +1290,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
*
2
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1355,7 +1354,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1419,7 +1418,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1478,7 +1477,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1536,7 +1535,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1594,7 +1593,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1616,7 +1615,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
fdObject
=
await
mediaTestBase
.
getFd
(
'
recorder_promise_22.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
20
;
configFile
.
videoFrameRate
=
20
;
let
trackArray
=
videoRecorderBase
.
getTrackArray
(
AUDIO_VIDEO_TYPE
,
configFile
);
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
...
...
@@ -1652,7 +1651,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1674,7 +1673,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
fdObject
=
await
mediaTestBase
.
getFd
(
'
recorder_promise_23.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
30
;
configFile
.
videoFrameRate
=
30
;
let
trackArray
=
videoRecorderBase
.
getTrackArray
(
AUDIO_VIDEO_TYPE
,
configFile
);
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
...
...
@@ -1710,7 +1709,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
@@ -1732,7 +1731,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
fdObject
=
await
mediaTestBase
.
getFd
(
'
recorder_promise_24.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
videoConfig
.
url
=
fdPath
;
videoConfig
.
videoFrameRate
=
60
;
configFile
.
videoFrameRate
=
60
;
let
trackArray
=
videoRecorderBase
.
getTrackArray
(
AUDIO_VIDEO_TYPE
,
configFile
);
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
console
.
info
(
'
case createVideoRecorder called
'
);
...
...
@@ -1768,7 +1767,7 @@ describe('VideoRecorderFuncPromiseTest', function () {
await
videoOutput
.
release
().
then
(()
=>
{
console
.
info
(
'
[camera] case videoOutput release success
'
);
});
videoOut
P
ut
=
undefined
;
videoOut
p
ut
=
undefined
;
await
videoRecorderBase
.
stopCaptureSession
(
captureSession
);
await
videoRecorderBase
.
checkVideos
(
fdPath
,
RECORDER_TIME
,
trackArray
,
playerSurfaceId
);
await
mediaTestBase
.
closeFd
(
fdObject
.
fileAsset
,
fdObject
.
fdNumber
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录