Commit 0902f2e5 by 张超军

手动采集添加语音文件

parent 8f18fb3d
...@@ -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();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment