Jelajahi Sumber

关闭人脸

y595705120 1 tahun lalu
induk
melakukan
ccbcd63b14
1 mengubah file dengan 7 tambahan dan 5 penghapusan
  1. 7 5
      src/containers/center/play/components/iMedia.vue

+ 7 - 5
src/containers/center/play/components/iMedia.vue

@@ -377,10 +377,12 @@
         this.startTick();
       },
       startIdentify(){
-        this.identifyFace = true
-        this.identifyFacePass = false
-        this.closeCamera("video")
-        this.callCamera("video2")
+        if( !this.closeFace){
+          this.identifyFace = true
+          this.identifyFacePass = false
+          this.closeCamera("video")
+          this.callCamera("video2")
+        }
         this.startTick()
       },
       identifyPassAndPlay(){
@@ -414,7 +416,7 @@
         let media = this.media;
         this.tickNum++
         // 人脸认证期间
-        if( !this.identifyFacePass ) {
+        if( !this.closeFace && !this.identifyFacePass ) {
           if( this.onPlay ){
             this.doPause()
           }