From 7e9af0bee8bb32c4ee203ad6291c40d2a75637c6 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Fri, 29 Nov 2024 17:26:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=92=AD=E6=94=BE=E5=BC=B9=E7=AA=97]=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E6=95=88=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/dialog/devicePlayer.vue | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue index 97162b5f..9644d1c8 100755 --- a/web_src/src/components/dialog/devicePlayer.vue +++ b/web_src/src/components/dialog/devicePlayer.vue @@ -501,35 +501,6 @@ export default { videoError: function (e) { console.log("播放器错误:" + JSON.stringify(e)); }, - presetPosition: function (cmdCode, presetPos) { - console.log('预置位控制:' + this.presetPos + ' : 0x' + cmdCode.toString(16)); - let that = this; - this.$axios({ - method: 'post', - url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=0¶meter2=' + presetPos + '&combindCode2=0' - }).then(function (res) { - }); - }, - setSpeedOrTime: function (cmdCode, groupNum, parameter) { - let that = this; - let parameter2 = parameter % 256; - let combindCode2 = Math.floor(parameter / 256) * 16; - console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter2.toString(16) + ' 0x' + combindCode2.toString(16)); - this.$axios({ - method: 'post', - url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter2 + '&combindCode2=' + combindCode2 - }).then(function (res) { - }); - }, - setCommand: function (cmdCode, groupNum, parameter) { - let that = this; - console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter.toString(16) + ' 0x0'); - this.$axios({ - method: 'post', - url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter + '&combindCode2=0' - }).then(function (res) { - }); - }, copyUrl: function (dropdownItem) { console.log(dropdownItem) this.$copyText(dropdownItem).then((e) => { @@ -613,17 +584,6 @@ export default { recvOnly: false, }) - // webrtcPlayer.on(ZLMRTCClient.Events.WEBRTC_ON_REMOTE_STREAMS,(e)=>{//获取到了远端流,可以播放 - // console.error('播放成功',e.streams) - // this.broadcastStatus = 1; - // }); - // - // webrtcPlayer.on(ZLMRTCClient.Events.WEBRTC_ON_LOCAL_STREAM,(s)=>{// 获取到了本地流 - // this.broadcastStatus = 1; - // // document.getElementById('selfVideo').srcObject=s; - // // this.eventcallbacK("LOCAL STREAM", "获取到了本地流") - // }); - this.broadcastRtc.on(ZLMRTCClient.Events.WEBRTC_NOT_SUPPORT, (e) => {// 获取到了本地流 console.error('不支持webrtc', e) this.$message({