Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
268c5b6b
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看板
未验证
提交
268c5b6b
编写于
10月 12, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 12, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5831 audioXTS用例优化及失败用例适配
Merge pull request !5831 from liuxueqi/master
上级
c3bbad74
a5cd215b
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
3572 addition
and
7910 deletion
+3572
-7910
multimedia/audio/audio_js_standard/AudioCapturer/Test.json
multimedia/audio/audio_js_standard/AudioCapturer/Test.json
+5
-8
multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js
...dard/AudioCapturer/src/main/js/test/AudioCapturer.test.js
+1148
-4417
multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js
...angeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js
+228
-561
multimedia/audio/audio_js_standard/AudioEventManagement/src/main/js/test/AudioEventManagement.test.js
...tManagement/src/main/js/test/AudioEventManagement.test.js
+106
-105
multimedia/audio/audio_js_standard/AudioRendererChangeInfo/src/main/js/test/AudioRendererChangeInfo.test.js
...angeInfo/src/main/js/test/AudioRendererChangeInfo.test.js
+200
-747
multimedia/audio/audio_js_standard/AudioTestBase.js
multimedia/audio/audio_js_standard/AudioTestBase.js
+5
-5
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
...dard/audioManager/src/main/js/test/AudioFramework.test.js
+631
-651
multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js
...dard/audioRenderer/src/main/js/test/AudioRenderer.test.js
+1233
-1400
multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
..._js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
+16
-16
未找到文件。
multimedia/audio/audio_js_standard/AudioCapturer/Test.json
浏览文件 @
268c5b6b
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
{
{
"type"
:
"ShellKit"
,
"type"
:
"ShellKit"
,
"run-command"
:
[
"run-command"
:
[
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/media"
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files"
,
"chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry"
],
],
"cleanup-apps"
:
true
"cleanup-apps"
:
true
},
},
...
@@ -38,13 +39,9 @@
...
@@ -38,13 +39,9 @@
"./resource/audio/audioManager/StarWars10s-2C-16000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
,
"./resource/audio/audioManager/StarWars10s-2C-16000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
,
"./resource/audio/audioManager/StarWars10s-2C-22050-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
,
"./resource/audio/audioManager/StarWars10s-2C-22050-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
,
"./resource/audio/audioManager/StarWars10s-2C-24000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
,
"./resource/audio/audioManager/StarWars10s-2C-24000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
,
"./resource/audio/audioManager/StarWars10s-2C-48000-4SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
,
"./resource/audio/audioManager/StarWars10s-2C-48000-4SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/"
"./resource/audio/audioManager/Believer.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/media"
,
"./resource/audio/audioManager/file_example_WAV_1MG.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/media"
,
"./resource/audio/audioManager/safe_and_sound_32.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/media"
,
"./resource/audio/audioManager/test.mp3 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/media"
,
"./resource/audio/audioManager/test.mp4 ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/media"
]
]
}
}
]
]
}
}
\ No newline at end of file
multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js
浏览文件 @
268c5b6b
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js
浏览文件 @
268c5b6b
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/AudioEventManagement/src/main/js/test/AudioEventManagement.test.js
浏览文件 @
268c5b6b
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/AudioRendererChangeInfo/src/main/js/test/AudioRendererChangeInfo.test.js
浏览文件 @
268c5b6b
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/AudioTestBase.js
浏览文件 @
268c5b6b
...
@@ -21,20 +21,20 @@ import account from '@ohos.account.osAccount';
...
@@ -21,20 +21,20 @@ import account from '@ohos.account.osAccount';
// apply permission for test hap
// apply permission for test hap
export
async
function
applyPermission
(
applictionName
,
permissionNames
)
{
export
async
function
applyPermission
(
applictionName
,
permissionNames
)
{
let
userId
=
await
account
.
getAccountManager
().
getOsAccountLocalIdFromProcess
();
let
userId
=
await
account
.
getAccountManager
().
getOsAccountLocalIdFromProcess
();
console
.
info
(
'
userid is :
'
+
userId
)
console
.
info
(
`userid is :
${
userId
}
`
)
let
appInfo
=
await
bundle
.
getApplicationInfo
(
applictionName
,
0
,
userId
);
let
appInfo
=
await
bundle
.
getApplicationInfo
(
applictionName
,
0
,
userId
);
let
atManager
=
abilityAccessCtrl
.
createAtManager
();
let
atManager
=
abilityAccessCtrl
.
createAtManager
();
if
(
atManager
!=
null
)
{
if
(
atManager
!=
null
)
{
let
tokenID
=
appInfo
.
accessTokenId
;
let
tokenID
=
appInfo
.
accessTokenId
;
console
.
info
(
'
[permission] case accessTokenID is
'
+
tokenID
);
console
.
info
(
`[permission] case accessTokenID is
${
tokenID
}
`
);
for
(
let
i
=
0
;
i
<
permissionNames
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
permissionNames
.
length
;
i
++
)
{
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionNames
[
i
],
1
).
then
((
result
)
=>
{
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionNames
[
i
],
1
).
then
((
result
)
=>
{
console
.
info
(
'
[permission] case grantUserGrantedPermission success :
'
+
result
);
console
.
info
(
`[permission] case grantUserGrantedPermission success :
${
result
}
`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
'
[permission] case grantUserGrantedPermission failed :
'
+
err
);
console
.
info
(
`[permission] case grantUserGrantedPermission failed :
${
err
}
`
);
});
});
}
}
}
else
{
}
else
{
console
.
info
(
'
[permission] case apply permission failed, createAtManager failed
'
);
console
.
info
(
`[permission] case apply permission failed, createAtManager failed`
);
}
}
}
}
\ No newline at end of file
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
268c5b6b
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js
浏览文件 @
268c5b6b
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
浏览文件 @
268c5b6b
...
@@ -51,7 +51,7 @@ describe('audioVoip', function () {
...
@@ -51,7 +51,7 @@ describe('audioVoip', function () {
console
.
info
(
`AudioFrameworkTest: afterEach: Test case-level clearance conditions`
);
console
.
info
(
`AudioFrameworkTest: afterEach: Test case-level clearance conditions`
);
})
})
afterAll
(
async
function
()
{
afterAll
(
function
()
{
console
.
info
(
`AudioFrameworkTest: afterAll: Test suite-level cleanup condition`
);
console
.
info
(
`AudioFrameworkTest: afterAll: Test suite-level cleanup condition`
);
})
})
...
@@ -111,7 +111,7 @@ describe('audioVoip', function () {
...
@@ -111,7 +111,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRender
}
: Promise : Audio Playback Function`
);
console
.
info
(
`
${
TagRender
}
: Promise : Audio Playback Function`
);
let
audioRen
;
let
audioRen
;
await
audio
.
createAudioRenderer
(
AudioRendererOptions
).
then
(
async
function
(
data
)
{
await
audio
.
createAudioRenderer
(
AudioRendererOptions
).
then
(
(
data
)
=>
{
audioRen
=
data
;
audioRen
=
data
;
console
.
info
(
`
${
TagRender
}
: AudioRender Created : Success : Stream Type: SUCCESS`
);
console
.
info
(
`
${
TagRender
}
: AudioRender Created : Success : Stream Type: SUCCESS`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -123,7 +123,7 @@ describe('audioVoip', function () {
...
@@ -123,7 +123,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
await
audioRen
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
await
audioRen
.
getStreamInfo
().
then
(
(
audioParamsGet
)
=>
{
console
.
info
(
`
${
TagRender
}
: Renderer getStreamInfo:`
);
console
.
info
(
`
${
TagRender
}
: Renderer getStreamInfo:`
);
console
.
info
(
`
${
TagRender
}
: Renderer sampleFormat:
${
audioParamsGet
.
sampleFormat
}
`
);
console
.
info
(
`
${
TagRender
}
: Renderer sampleFormat:
${
audioParamsGet
.
sampleFormat
}
`
);
console
.
info
(
`
${
TagRender
}
: Renderer samplingRate:
${
audioParamsGet
.
samplingRate
}
`
);
console
.
info
(
`
${
TagRender
}
: Renderer samplingRate:
${
audioParamsGet
.
samplingRate
}
`
);
...
@@ -138,7 +138,7 @@ describe('audioVoip', function () {
...
@@ -138,7 +138,7 @@ describe('audioVoip', function () {
return
resultFlag
;
return
resultFlag
;
}
}
await
audioRen
.
getRendererInfo
().
then
(
async
function
(
audioParamsGet
)
{
await
audioRen
.
getRendererInfo
().
then
(
(
audioParamsGet
)
=>
{
console
.
info
(
`
${
TagRender
}
: Renderer RendererInfo:`
);
console
.
info
(
`
${
TagRender
}
: Renderer RendererInfo:`
);
console
.
info
(
`
${
TagRender
}
: Renderer content type:
${
audioParamsGet
.
content
}
`
);
console
.
info
(
`
${
TagRender
}
: Renderer content type:
${
audioParamsGet
.
content
}
`
);
console
.
info
(
`
${
TagRender
}
: Renderer usage:
${
audioParamsGet
.
usage
}
`
);
console
.
info
(
`
${
TagRender
}
: Renderer usage:
${
audioParamsGet
.
usage
}
`
);
...
@@ -152,7 +152,7 @@ describe('audioVoip', function () {
...
@@ -152,7 +152,7 @@ describe('audioVoip', function () {
return
resultFlag
;
return
resultFlag
;
}
}
await
audioRen
.
start
().
then
(
async
function
()
{
await
audioRen
.
start
().
then
(
()
=>
{
console
.
info
(
`
${
TagRender
}
: renderInstant started :SUCCESS `
);
console
.
info
(
`
${
TagRender
}
: renderInstant started :SUCCESS `
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
`
${
TagRender
}
: renderInstant start :ERROR :
${
err
.
message
}
`
);
console
.
info
(
`
${
TagRender
}
: renderInstant start :ERROR :
${
err
.
message
}
`
);
...
@@ -166,7 +166,7 @@ describe('audioVoip', function () {
...
@@ -166,7 +166,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
let
bufferSize
;
let
bufferSize
;
await
audioRen
.
getBufferSize
().
then
(
async
function
(
data
)
{
await
audioRen
.
getBufferSize
().
then
(
(
data
)
=>
{
console
.
info
(
`
${
TagRender
}
: getBufferSize :SUCCESS
${
data
}
`
);
console
.
info
(
`
${
TagRender
}
: getBufferSize :SUCCESS
${
data
}
`
);
bufferSize
=
data
;
bufferSize
=
data
;
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -193,7 +193,7 @@ describe('audioVoip', function () {
...
@@ -193,7 +193,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRender
}
: BufferAudioFramework: bytes read from file:
${
rlen
}
`
);
console
.
info
(
`
${
TagRender
}
: BufferAudioFramework: bytes read from file:
${
rlen
}
`
);
await
audioRen
.
write
(
buf
);
await
audioRen
.
write
(
buf
);
if
(
rlen
>
(
totalSize
/
2
))
{
if
(
rlen
>
(
totalSize
/
2
))
{
await
AUDIOMANAGER
.
getAudioScene
().
then
(
async
function
(
data
)
{
await
AUDIOMANAGER
.
getAudioScene
().
then
(
(
data
)
=>
{
console
.
info
(
`
${
TagRender
}
:AudioFrameworkAudioScene: getAudioScene : Value :
${
data
}
`
);
console
.
info
(
`
${
TagRender
}
:AudioFrameworkAudioScene: getAudioScene : Value :
${
data
}
`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
`
${
TagRender
}
:AudioFrameworkAudioScene: getAudioScene : ERROR :
${
err
.
message
}
`
);
console
.
info
(
`
${
TagRender
}
:AudioFrameworkAudioScene: getAudioScene : ERROR :
${
err
.
message
}
`
);
...
@@ -203,7 +203,7 @@ describe('audioVoip', function () {
...
@@ -203,7 +203,7 @@ describe('audioVoip', function () {
}
}
console
.
info
(
`
${
TagRender
}
: Renderer after read`
);
console
.
info
(
`
${
TagRender
}
: Renderer after read`
);
await
audioRen
.
drain
().
then
(
async
function
()
{
await
audioRen
.
drain
().
then
(
()
=>
{
console
.
info
(
`
${
TagRender
}
: Renderer drained : SUCCESS`
);
console
.
info
(
`
${
TagRender
}
: Renderer drained : SUCCESS`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
error
(
`
${
TagRender
}
: Renderer drain: ERROR :
${
err
.
message
}
`
);
console
.
error
(
`
${
TagRender
}
: Renderer drain: ERROR :
${
err
.
message
}
`
);
...
@@ -216,7 +216,7 @@ describe('audioVoip', function () {
...
@@ -216,7 +216,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
await
audioRen
.
stop
().
then
(
async
function
()
{
await
audioRen
.
stop
().
then
(
()
=>
{
console
.
info
(
`
${
TagRender
}
: Renderer stopped : SUCCESS`
);
console
.
info
(
`
${
TagRender
}
: Renderer stopped : SUCCESS`
);
resultFlag
=
true
;
resultFlag
=
true
;
console
.
info
(
`
${
TagRender
}
: resultFlagRen :
${
resultFlag
}
`
);
console
.
info
(
`
${
TagRender
}
: resultFlagRen :
${
resultFlag
}
`
);
...
@@ -227,7 +227,7 @@ describe('audioVoip', function () {
...
@@ -227,7 +227,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
console
.
info
(
`
${
TagRender
}
: AudioRenderer : STATE :
${
audioRen
.
state
}
`
);
await
audioRen
.
release
().
then
(
async
function
()
{
await
audioRen
.
release
().
then
(
()
=>
{
console
.
info
(
`
${
TagRender
}
: Renderer release : SUCCESS`
);
console
.
info
(
`
${
TagRender
}
: Renderer release : SUCCESS`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
`
${
TagRender
}
: Renderer release :ERROR :
${
err
.
message
}
`
);
console
.
info
(
`
${
TagRender
}
: Renderer release :ERROR :
${
err
.
message
}
`
);
...
@@ -247,7 +247,7 @@ describe('audioVoip', function () {
...
@@ -247,7 +247,7 @@ describe('audioVoip', function () {
let
audioCap
;
let
audioCap
;
await
audio
.
createAudioCapturer
(
AudioCapturerOptions
).
then
(
async
function
(
data
)
{
await
audio
.
createAudioCapturer
(
AudioCapturerOptions
).
then
(
(
data
)
=>
{
audioCap
=
data
;
audioCap
=
data
;
console
.
info
(
`
${
TagRec
}
: AudioCapturer Created : Success : Stream Type: SUCCESS`
);
console
.
info
(
`
${
TagRec
}
: AudioCapturer Created : Success : Stream Type: SUCCESS`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -259,7 +259,7 @@ describe('audioVoip', function () {
...
@@ -259,7 +259,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRec
}
: AudioCapturer : STATE :
${
audioCap
.
state
}
`
);
console
.
info
(
`
${
TagRec
}
: AudioCapturer : STATE :
${
audioCap
.
state
}
`
);
await
audioCap
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
await
audioCap
.
getStreamInfo
().
then
(
(
audioParamsGet
)
=>
{
if
(
audioParamsGet
!=
undefined
)
{
if
(
audioParamsGet
!=
undefined
)
{
console
.
info
(
`
${
TagRec
}
: Capturer getStreamInfo:`
);
console
.
info
(
`
${
TagRec
}
: Capturer getStreamInfo:`
);
console
.
info
(
`
${
TagRec
}
: Capturer sampleFormat:
${
audioParamsGet
.
sampleFormat
}
`
);
console
.
info
(
`
${
TagRec
}
: Capturer sampleFormat:
${
audioParamsGet
.
sampleFormat
}
`
);
...
@@ -280,7 +280,7 @@ describe('audioVoip', function () {
...
@@ -280,7 +280,7 @@ describe('audioVoip', function () {
return
resultFlag
;
return
resultFlag
;
}
}
await
audioCap
.
getCapturerInfo
().
then
(
async
function
(
audioParamsGet
)
{
await
audioCap
.
getCapturerInfo
().
then
(
(
audioParamsGet
)
=>
{
if
(
audioParamsGet
!=
undefined
)
{
if
(
audioParamsGet
!=
undefined
)
{
console
.
info
(
`
${
TagRec
}
: Capturer CapturerInfo:`
);
console
.
info
(
`
${
TagRec
}
: Capturer CapturerInfo:`
);
console
.
info
(
`
${
TagRec
}
: Capturer SourceType:
${
audioParamsGet
.
source
}
`
);
console
.
info
(
`
${
TagRec
}
: Capturer SourceType:
${
audioParamsGet
.
source
}
`
);
...
@@ -299,7 +299,7 @@ describe('audioVoip', function () {
...
@@ -299,7 +299,7 @@ describe('audioVoip', function () {
return
resultFlag
;
return
resultFlag
;
}
}
await
audioCap
.
start
().
then
(
async
function
()
{
await
audioCap
.
start
().
then
(
()
=>
{
console
.
info
(
`
${
TagRec
}
: Capturer started :SUCCESS`
);
console
.
info
(
`
${
TagRec
}
: Capturer started :SUCCESS`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
`
${
TagRec
}
: Capturer start :ERROR :
${
err
.
message
}
`
);
console
.
info
(
`
${
TagRec
}
: Capturer start :ERROR :
${
err
.
message
}
`
);
...
@@ -349,7 +349,7 @@ describe('audioVoip', function () {
...
@@ -349,7 +349,7 @@ describe('audioVoip', function () {
await
sleep
(
1000
);
await
sleep
(
1000
);
console
.
info
(
`
${
TagRec
}
: AudioCapturer : STATE :
${
audioCap
.
state
}
`
);
console
.
info
(
`
${
TagRec
}
: AudioCapturer : STATE :
${
audioCap
.
state
}
`
);
await
audioCap
.
stop
().
then
(
async
function
()
{
await
audioCap
.
stop
().
then
(
()
=>
{
console
.
info
(
`
${
TagRec
}
: Capturer stopped : SUCCESS`
);
console
.
info
(
`
${
TagRec
}
: Capturer stopped : SUCCESS`
);
resultFlag
=
true
;
resultFlag
=
true
;
console
.
info
(
`
${
TagRec
}
: resultFlag :
${
resultFlag
}
`
);
console
.
info
(
`
${
TagRec
}
: resultFlag :
${
resultFlag
}
`
);
...
@@ -360,7 +360,7 @@ describe('audioVoip', function () {
...
@@ -360,7 +360,7 @@ describe('audioVoip', function () {
console
.
info
(
`
${
TagRec
}
: AudioCapturer : STATE :
${
audioCap
.
state
}
`
);
console
.
info
(
`
${
TagRec
}
: AudioCapturer : STATE :
${
audioCap
.
state
}
`
);
await
audioCap
.
release
().
then
(
async
function
()
{
await
audioCap
.
release
().
then
(
()
=>
{
console
.
info
(
`
${
TagRec
}
: Capturer release : SUCCESS`
);
console
.
info
(
`
${
TagRec
}
: Capturer release : SUCCESS`
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
`
${
TagRec
}
: Capturer release :ERROR :
${
err
.
message
}
`
);
console
.
info
(
`
${
TagRec
}
: Capturer release :ERROR :
${
err
.
message
}
`
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录