yangbq пре 3 недеља
родитељ
комит
b4d868b7e6
1 измењених фајлова са 15 додато и 22 уклоњено
  1. 15 22
      src/views/screen/engineering/monitorLive.vue

+ 15 - 22
src/views/screen/engineering/monitorLive.vue

@@ -114,12 +114,10 @@ export default {
 
     left() {
       this.direction=0x0503
-      // alert(1)
       console.log(this.videoObj,'========================aaa');
       console.log("视频播放编号", this.code);
       if (!this.videoObj)
        return;
-      // alert(2)
       this.videoObj.videoControl({
       winNum: this.winNum,
       code: this.monitorInfo.cameraCode,
@@ -134,7 +132,6 @@ export default {
       console.log("视频播放编号", this.code);
       if (!this.videoObj)
        return;
-      // alert(2)
       this.videoObj.videoControl({
       winNum: this.winNum,
       code: this.monitorInfo.cameraCode,
@@ -147,7 +144,6 @@ export default {
       console.log("视频播放编号", this.code);
       if (!this.videoObj)
        return;
-      // alert(2)
       this.videoObj.videoControl({
       winNum: this.winNum,
       code: this.monitorInfo.cameraCode,
@@ -160,7 +156,6 @@ export default {
       console.log("视频播放编号", this.code);
       if (!this.videoObj)
        return;
-      // alert(2)
       this.videoObj.videoControl({
       winNum: this.winNum,
       code: this.monitorInfo.cameraCode,
@@ -177,9 +172,9 @@ export default {
        return;
       // alert(2)
       this.videoObj.videoControl({
-      winNum: this.winNum,
-      code: this.monitorInfo.cameraCode,
-      control:  this.direction,
+       winNum: this.winNum,
+       code: this.monitorInfo.cameraCode,
+       control:  this.direction,
       });
     },
 
@@ -187,12 +182,12 @@ export default {
     shot() {
       console.log(this.videoObj,'========================aaa');
       console.log("视频播放编号", this.code);
-      // if (!this.videoObj)
-      //  return;
-      // this.videoObj.capture({
-      //   winNum: this.winNum,
-      //   code: this.monitorInfo.cameraCode,
-      // });
+      if (!this.videoObj)
+        return;
+      this.videoObj.capture({
+         winNum: this.winNum,
+         code: this.monitorInfo.cameraCode,
+       });
       this.imgSrc=this.fileName
       this.issue(this.imgSrc)
 
@@ -204,11 +199,10 @@ export default {
       console.log("视频播放编号", this.code);
       if (!this.videoObj)
        return;
-      // alert(2)
       this.videoObj.videoControl({
-      winNum: this.winNum,
-      code: this.monitorInfo.cameraCode,
-      control: 0x0304,
+       winNum: this.winNum,
+       code: this.monitorInfo.cameraCode,
+       control: 0x0304,
       });
     },
 
@@ -218,11 +212,10 @@ export default {
       console.log("视频播放编号", this.code);
       if (!this.videoObj)
        return;
-      // alert(2)
       this.videoObj.videoControl({
-      winNum: this.winNum,
-      code: this.monitorInfo.cameraCode,
-      control: 0x0302,
+       winNum: this.winNum,
+       code: this.monitorInfo.cameraCode,
+       control: 0x0302,
       });
     },