@@ -151,6 +151,7 @@
this.$message.error(
"摄像头开启失败,请检查摄像头是否可用!或者打开摄影头"
);
+ this.isnotbtn=false
console.error("摄像头开启失败,请检查摄像头是否可用!");
});
},
@@ -282,8 +283,10 @@
console.log("finish")
return;
}
- if( !this.isnotbtn ){
+
+ if( !this.isnotbtn && this.onPlay ){
this.$message.errorMsg("需要安装摄像头才能学习", 2);
+ this.doPause()
if( this.errCount > 3 ){