소스 검색

关闭人脸

y595705120 1 년 전
부모
커밋
ccbcd63b14
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  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()
           }