From f75b3e6cdab1c0ad98eb09906912a42b783f67bf Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 08 十二月 2020 18:11:02 +0800 Subject: [PATCH] 使用异步接口, 更好的并发, 对hook使用订阅机制 替换前段播放器, 支持h265的播放 放弃循环获取编码信息, --- web_src/src/components/channelList.vue | 20 +------------------- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue index b3872ee..4c39a3f 100644 --- a/web_src/src/components/channelList.vue +++ b/web_src/src/components/channelList.vue @@ -104,7 +104,7 @@ mounted() { this.initData(); - // this.updateLooper = setInterval(this.initData, 10000); + this.updateLooper = setInterval(this.initData, 10000); }, destroyed() { this.$destroy('videojs'); @@ -173,24 +173,6 @@ }, - //gb28181骞冲彴瀵规帴 - //鍒锋柊璁惧淇℃伅 - refDevice: function (itemData) { - ///api/devices/{deviceId}/sync - console.log("鍒锋柊瀵瑰簲璁惧:" + itemData.deviceId); - this.$axios({ - method: 'post', - url: '/api/devices/' + itemData.deviceId + '/sync' - }).then(function (res) { - // console.log("鍒锋柊璁惧缁撴灉锛�"+JSON.stringify(res)); - }).catch(function (e) { - that.$message({ - showClose: true, - message: '璇锋眰鎴愬姛', - type: 'success' - }); - }); - }, //閫氱煡璁惧涓婁紶濯掍綋娴� sendDevicePush: function (itemData) { console.log(itemData) -- Gitblit v1.8.0