mirror of
http://git.keliuyun.com:55676/jiaxiuc123/miniProject.git
synced 2025-12-24 12:38:07 +08:00
feat: 增加云台控制方法
This commit is contained in:
@@ -127,7 +127,7 @@ export default {
|
||||
createCanvas(cwidth, cheight, watermark, image) {
|
||||
const canvas = document.createElement('canvas');
|
||||
canvas.width = cwidth;
|
||||
canvas.height = cheight;
|
||||
canvas.height = cheight - 40; // 40为底部工具条
|
||||
canvas.className = 'watermark';
|
||||
console.log('createCanvas', canvas);
|
||||
|
||||
@@ -215,6 +215,19 @@ export default {
|
||||
stopPlay() {
|
||||
return this._iframeEl.contentWindow.stopPlayer();
|
||||
},
|
||||
ptzController(arrow) {
|
||||
/**
|
||||
* arrow传参说明:
|
||||
* 方向控制:up, down, left, right, leftUp, rightUp, rightDown, leftDown
|
||||
* 缩放控制:zoomExpand, zoomNarrow
|
||||
* 调用完成,需要调用停止 ptzController('stop')
|
||||
*
|
||||
* 光圈控制:apertureFar, apertureNear
|
||||
* 聚焦控制:focusFar, focusNear
|
||||
* 调用完成,需要调用停止 ptzController('fiStop')
|
||||
*/
|
||||
this._iframeEl.contentWindow.handlePtzController(arrow);
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@@ -228,7 +241,7 @@ export default {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
z-index: 10;
|
||||
// z-index: 10;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user