Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
0902f2e5
Commit
0902f2e5
authored
Jul 04, 2022
by
张超军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手动采集添加语音文件
parent
8f18fb3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/utils/sample-code2.js
+4
-0
No files found.
src/utils/sample-code2.js
View file @
0902f2e5
...
@@ -339,6 +339,7 @@ export class GrpcCameraService {
...
@@ -339,6 +339,7 @@ export class GrpcCameraService {
// 回调用于处理结果
// 回调用于处理结果
cb
(
imageUrlList
,
status
);
cb
(
imageUrlList
,
status
);
if
(
status
==
0
)
{
if
(
status
==
0
)
{
this
.
audioPlay
(
'/video/gathering.mp3'
);
this
.
stopVideoStream
();
this
.
stopVideoStream
();
}
}
}
}
...
@@ -394,6 +395,9 @@ export class GrpcCameraService {
...
@@ -394,6 +395,9 @@ export class GrpcCameraService {
this
.
captureImageStream
.
on
(
'end'
,
(
status
)
=>
{
this
.
captureImageStream
.
on
(
'end'
,
(
status
)
=>
{
// 在这里处理 on end 错误
// 在这里处理 on end 错误
console
.
log
(
"end了"
,
status
);
console
.
log
(
"end了"
,
status
);
if
(
status
.
code
==
'0'
)
{
this
.
audioPlay
(
'/video/success.mp3'
);
}
this
.
stopCaptureImage
();
this
.
stopCaptureImage
();
this
.
stopVideoStream
();
this
.
stopVideoStream
();
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment