|
@@ -11,25 +11,25 @@
|
|
|
<video-component @videoLoad="playVideo"></video-component>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div @click="upWord" class="c1" style="right: 20px;top: 70px;" >
|
|
|
- <img src="../../../assets/zhang/cameraScreen/leave.png" width="20px">
|
|
|
- </div>
|
|
|
- <div @click="shot" class="c1" style="right: 20px;top: 120px;">
|
|
|
+ <div @click="shot" class="c1" style="right: 20px;top: 140px;">
|
|
|
<img src="../../../assets/zhang/cameraScreen/cut.png" width="20px">
|
|
|
</div>
|
|
|
- <div @click="amplify" class="c1" style="right: 20px;top: 170px;">
|
|
|
+ <div @click="amplify" class="c1" style="right: 20px;top: 190px;">
|
|
|
<img src="../../../assets/zhang/cameraScreen/bigger.png" width="20px">
|
|
|
</div>
|
|
|
- <div @click="reduce" class="c1" style="right: 20px;top: 220px;">
|
|
|
+ <div @click="reduce" class="c1" style="right: 20px;top: 240px;">
|
|
|
<img src="../../../assets/zhang/cameraScreen/smaller.png" width="20px">
|
|
|
</div>
|
|
|
- <div class="c2" style="right: 20px;top: 390px;">
|
|
|
+ <div class="c2" style="right: 40px;top: 400px;">
|
|
|
<div @click="left" style="position: absolute;left: 0;">
|
|
|
<img src="../../../assets/zhang/cameraScreen/left.png" width="60px">
|
|
|
</div>
|
|
|
<div @click="right" style="position: absolute;right: 0;">
|
|
|
<img src="../../../assets/zhang/cameraScreen/right.png" width="60px">
|
|
|
</div>
|
|
|
+ <div @click="upWord">
|
|
|
+ <img src="../../../assets/zhang/cameraScreen/leave.png" width="20px">
|
|
|
+ </div>
|
|
|
<div @click="top" style="position: absolute;top: 0;">
|
|
|
<img src="../../../assets/zhang/cameraScreen/up.png" width="80px">
|
|
|
</div>
|
|
@@ -58,6 +58,7 @@ export default {
|
|
|
videoObj: '',
|
|
|
played: false,
|
|
|
code: '',
|
|
|
+ direction:''
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -95,6 +96,7 @@ export default {
|
|
|
// 播放器加载完毕
|
|
|
playVideo(obj) {
|
|
|
console.log(obj, '================================')
|
|
|
+ console.log("子组件实例方法列表:", Object.keys(obj));
|
|
|
this.videoObj = obj;
|
|
|
this.code = this.monitorInfo.code;
|
|
|
if(!this.code) return;
|
|
@@ -107,113 +109,113 @@ export default {
|
|
|
this.played = true;
|
|
|
},
|
|
|
|
|
|
- left(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ 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.code,
|
|
|
- control:0x0504,
|
|
|
- });
|
|
|
- this.played = true;
|
|
|
- },
|
|
|
- right(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
+ control: 0x0504,
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ right() {
|
|
|
+ this.direction=0x0501
|
|
|
+ console.log(this.videoObj,'========================aaa');
|
|
|
console.log("视频播放编号", this.code);
|
|
|
+ if (!this.videoObj)
|
|
|
+ return;
|
|
|
+ // alert(2)
|
|
|
this.videoObj.videoControl({
|
|
|
- winNum: this.winNum,
|
|
|
- code: this.monitorInfo.code,
|
|
|
- control:0x0502,
|
|
|
+ winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
+ control: 0x0502,
|
|
|
});
|
|
|
- this.played = true;
|
|
|
},
|
|
|
- top(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ top() {
|
|
|
+ this.direction=0x0401
|
|
|
+ console.log(this.videoObj,'========================aaa');
|
|
|
console.log("视频播放编号", this.code);
|
|
|
+ if (!this.videoObj)
|
|
|
+ return;
|
|
|
+ // alert(2)
|
|
|
this.videoObj.videoControl({
|
|
|
- winNum: this.winNum,
|
|
|
- code: this.monitorInfo.code,
|
|
|
- control:0x0402,
|
|
|
+ winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
+ control: 0x0402,
|
|
|
});
|
|
|
- this.played = true;
|
|
|
},
|
|
|
- bottom(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ bottom() {
|
|
|
+ this.direction=0x0403
|
|
|
+ console.log(this.videoObj,'========================aaa');
|
|
|
console.log("视频播放编号", this.code);
|
|
|
+ if (!this.videoObj)
|
|
|
+ return;
|
|
|
+ // alert(2)
|
|
|
this.videoObj.videoControl({
|
|
|
- winNum: this.winNum,
|
|
|
- code: this.monitorInfo.code,
|
|
|
- control:0x0404,
|
|
|
+ winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
+ control: 0x0404,
|
|
|
});
|
|
|
- this.played = true;
|
|
|
},
|
|
|
|
|
|
|
|
|
- upWord(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ upWord() {
|
|
|
+ // alert(this.direction)
|
|
|
+ console.log(this.videoObj,'========================aaa');
|
|
|
console.log("视频播放编号", this.code);
|
|
|
+ if (!this.videoObj)
|
|
|
+ return;
|
|
|
+ // alert(2)
|
|
|
this.videoObj.videoControl({
|
|
|
- winNum: this.winNum,
|
|
|
- code: this.monitorInfo.code,
|
|
|
- control:0x0401,
|
|
|
+ winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
+ control: this.direction,
|
|
|
});
|
|
|
- this.played = true;
|
|
|
},
|
|
|
|
|
|
//视频截图
|
|
|
- shot(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ shot() {
|
|
|
+ console.log(this.videoObj,'========================aaa');
|
|
|
console.log("视频播放编号", this.code);
|
|
|
+ if (!this.videoObj)
|
|
|
+ return;
|
|
|
this.videoObj.capture({
|
|
|
winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
});
|
|
|
- this.played = true;
|
|
|
},
|
|
|
|
|
|
- amplify(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ amplify() {
|
|
|
+ console.log(this.videoObj,'========================aaa');
|
|
|
console.log("视频播放编号", this.code);
|
|
|
+ if (!this.videoObj)
|
|
|
+ return;
|
|
|
+ // alert(2)
|
|
|
this.videoObj.videoControl({
|
|
|
- winNum: this.winNum,
|
|
|
- code: this.monitorInfo.code,
|
|
|
- control:0x0304,
|
|
|
+ winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
+ control: 0x0304,
|
|
|
});
|
|
|
- this.played = true;
|
|
|
},
|
|
|
|
|
|
- reduce(obj) {
|
|
|
- console.log(obj, '================================')
|
|
|
- this.videoObj = obj;
|
|
|
- this.code = this.monitorInfo.code;
|
|
|
- if(!this.code) return;
|
|
|
+ reduce() {
|
|
|
+ console.log(this.videoObj,'========================aaa');
|
|
|
console.log("视频播放编号", this.code);
|
|
|
+ if (!this.videoObj)
|
|
|
+ return;
|
|
|
+ // alert(2)
|
|
|
this.videoObj.videoControl({
|
|
|
- winNum: this.winNum,
|
|
|
- code: this.monitorInfo.code,
|
|
|
- control:0x0302,
|
|
|
+ winNum: this.winNum,
|
|
|
+ code: this.monitorInfo.code,
|
|
|
+ control: 0x0302,
|
|
|
});
|
|
|
- this.played = true;
|
|
|
},
|
|
|
|
|
|
},
|