Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
143bd1d9
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
143bd1d9
编写于
2月 12, 2022
作者:
L
ling990
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify flush Signed-off-by: ling990 <liling96@huawei.com>
Signed-off-by:
N
ling990
<
liling96@huawei.com
>
上级
9e4101ba
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
38 addition
and
3 deletion
+38
-3
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
...der/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
+4
-0
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
...oder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
+4
-0
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderMultiInstancesTest.test.js
...r/src/main/js/test/AudioDecoderMultiInstancesTest.test.js
+2
-0
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderReliabilityCallbackTest.test.js
.../main/js/test/AudioDecoderReliabilityCallbackTest.test.js
+4
-0
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderReliabilityPromiseTest.test.js
...c/main/js/test/AudioDecoderReliabilityPromiseTest.test.js
+4
-0
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js
...der/src/main/js/test/AudioEncoderFuncCallbackTest.test.js
+5
-2
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js
...oder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js
+5
-1
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js
...r/src/main/js/test/AudioEncoderMultiInstancesTest.test.js
+2
-0
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderReliabilityCallbackTest.test.js
.../main/js/test/AudioEncoderReliabilityCallbackTest.test.js
+4
-0
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderReliabilityPromiseTest.test.js
...c/main/js/test/AudioEncoderReliabilityPromiseTest.test.js
+4
-0
未找到文件。
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -324,6 +324,8 @@ describe('AudioDecoderFunc', function () {
}
async
function
flushWork
()
{
inputQueue
=
[];
outputQueue
=
[];
audioDecodeProcessor
.
flush
((
err
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
"
case flush at inputeos success
"
);
...
...
@@ -640,6 +642,8 @@ describe('AudioDecoderFunc', function () {
})
});
eventEmitter
.
on
(
'
flush
'
,
()
=>
{
inputQueue
=
[];
outputQueue
=
[];
audioDecodeProcessor
.
flush
((
err
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
`case flush after 2s`
);
...
...
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -326,6 +326,8 @@ describe('AudioDecoderFunc', function () {
}
async
function
flushWork
()
{
inputQueue
=
[];
outputQueue
=
[];
await
audioDecodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
"
case flush at inputeos success
"
);
resetParam
();
...
...
@@ -568,6 +570,8 @@ describe('AudioDecoderFunc', function () {
console
.
info
(
"
case start success
"
);
},
failCallback
).
catch
(
failCatch
);
await
sleep
(
3000
).
then
(()
=>
{
inputQueue
=
[];
outputQueue
=
[];
audioDecodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
"
case flush after 5s
"
);
},
failCallback
).
catch
(
failCatch
);
...
...
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderMultiInstancesTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -123,6 +123,8 @@ describe('AudioDecoderMultiInstances', function () {
}
async
function
flushWork
(
audioDecodeProcessor
)
{
inputQueue
=
[];
outputQueue
=
[];
await
audioDecodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
"
case flush at inputeos success
"
);
resetParam
();
...
...
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderReliabilityCallbackTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -283,6 +283,8 @@ describe('AudioDecoderReliabilityCallback', function () {
timestamp
=
0
;
sawInputEOS
=
false
;
sawOutputEOS
=
false
;
inputQueue
=
[];
outputQueue
=
[];
}
function
createAudioDecoder
(
savepath
,
mySteps
,
done
)
{
...
...
@@ -398,6 +400,8 @@ describe('AudioDecoderReliabilityCallback', function () {
case
FLUSH
:
mySteps
.
shift
();
console
.
info
(
`case to flush`
);
inputQueue
=
[];
outputQueue
=
[];
audioDecodeProcessor
.
flush
((
err
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
`case flush 1`
);
...
...
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderReliabilityPromiseTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -303,6 +303,8 @@ describe('AudioDecoderReliabilityPromise', function () {
timestamp
=
0
;
sawInputEOS
=
false
;
sawOutputEOS
=
false
;
inputQueue
=
[];
outputQueue
=
[];
}
function
createAudioDecoder
(
savepath
,
mySteps
,
done
)
{
...
...
@@ -409,6 +411,8 @@ describe('AudioDecoderReliabilityPromise', function () {
case
FLUSH
:
mySteps
.
shift
();
console
.
info
(
`case to flush`
);
inputQueue
=
[];
outputQueue
=
[];
audioDecodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
`case flush 1`
);
if
(
flushAtEOS
)
{
...
...
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -166,6 +166,8 @@ describe('AudioEncoderFuncCallback', function () {
}
async
function
flushWork
()
{
inputQueue
=
[];
outputQueue
=
[];
audioEncodeProcessor
.
flush
((
err
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
"
case flush at inputeos success
"
);
...
...
@@ -290,7 +292,6 @@ describe('AudioEncoderFuncCallback', function () {
*/
it
(
'
SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_00_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test set EOS after last frame and reset
"
);
let
events
=
require
(
'
events
'
);
let
eventEmitter
=
new
events
.
EventEmitter
();
let
mediaDescription
=
{
...
...
@@ -356,7 +357,7 @@ describe('AudioEncoderFuncCallback', function () {
}
})
})
media
.
createAudioEncoderByName
(
'
av
de
c_aac
'
,
(
err
,
processor
)
=>
{
media
.
createAudioEncoderByName
(
'
av
en
c_aac
'
,
(
err
,
processor
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
`case createAudioEncoder by mime 1`
);
audioEncodeProcessor
=
processor
;
...
...
@@ -473,6 +474,8 @@ describe('AudioEncoderFuncCallback', function () {
})
});
eventEmitter
.
on
(
'
flush
'
,
()
=>
{
inputQueue
=
[];
outputQueue
=
[];
audioEncodeProcessor
.
flush
((
err
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
`case flush after 5s`
);
...
...
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -174,6 +174,8 @@ describe('AudioEncoderFuncPromise', function () {
}
async
function
flushWork
()
{
inputQueue
=
[];
outputQueue
=
[];
await
audioEncodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
"
case flush at inputeos success
"
);
resetParam
();
...
...
@@ -427,6 +429,8 @@ describe('AudioEncoderFuncPromise', function () {
console
.
info
(
"
case start success
"
)
},
failCallback
).
catch
(
failCatch
);
await
sleep
(
5000
).
then
(()
=>
{
inputQueue
=
[];
outputQueue
=
[];
audioEncodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
"
case flush after 5s
"
)
},
failCallback
).
catch
(
failCatch
);
...
...
@@ -627,7 +631,7 @@ describe('AudioEncoderFuncPromise', function () {
},
failCallback
).
catch
(
failCatch
);
let
savepath2
=
BASIC_PATH
+
'
0601.txt
'
;
workdoneAtEOS
=
true
;
setCallback
(
audioEncodeProcessor
,
savepath2
,
done
);
setCallback
(
savepath2
,
done
);
await
audioEncodeProcessor
.
prepare
().
then
(()
=>
{
console
.
info
(
"
prepare2 success
"
);
},
failCallback
).
catch
(
failCatch
);
...
...
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -166,6 +166,8 @@ describe('AudioEncoderFuncPromise', function () {
}
async
function
flushWork
(
audioEncodeProcessor
)
{
inputQueue
=
[];
outputQueue
=
[];
await
audioEncodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
"
case flush at inputeos success
"
);
resetParam
();
...
...
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderReliabilityCallbackTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -106,6 +106,8 @@ describe('AudioEncoderSTTCallback', function () {
timestamp
=
0
;
sawInputEOS
=
false
;
sawOutputEOS
=
false
;
inputQueue
=
[];
outputQueue
=
[];
}
function
createAudioEncoder
(
savepath
,
mySteps
,
done
)
{
...
...
@@ -247,6 +249,8 @@ describe('AudioEncoderSTTCallback', function () {
case
FLUSH
:
mySteps
.
shift
();
console
.
info
(
`case to flush`
);
inputQueue
=
[];
outputQueue
=
[];
audioEncodeProcessor
.
flush
((
err
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
`case flush 1`
);
...
...
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderReliabilityPromiseTest.test.js
浏览文件 @
143bd1d9
...
...
@@ -123,6 +123,8 @@ describe('AudioEncoderSTTPromise', function () {
timestamp
=
0
;
sawInputEOS
=
false
;
sawOutputEOS
=
false
;
inputQueue
=
[];
outputQueue
=
[];
}
function
createAudioEncoder
(
savepath
,
mySteps
,
done
)
{
...
...
@@ -257,6 +259,8 @@ describe('AudioEncoderSTTPromise', function () {
case
FLUSH
:
mySteps
.
shift
();
console
.
info
(
`case to flush`
);
inputQueue
=
[];
outputQueue
=
[];
audioEncodeProcessor
.
flush
().
then
(()
=>
{
console
.
info
(
`case flush 1`
);
if
(
flushAtEOS
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录