From acdef18cbaba5a77b40e31ac259845da71a2eaff Mon Sep 17 00:00:00 2001 From: shangxingyu Date: Sat, 3 Feb 2024 11:21:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=B8=BB=E5=AD=90=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java index bd212ad7e..46f1e9d53 100755 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java @@ -508,6 +508,7 @@ public class DeviceServiceImpl implements IDeviceService { } deviceChannelMapper.clearPlay(device.getDeviceId()); inviteStreamService.clearInviteInfo(device.getDeviceId()); + deviceInStore.setSwitchPrimarySubStream(device.isSwitchPrimarySubStream()); } if (!ObjectUtils.isEmpty(device.getName())) { @@ -597,6 +598,7 @@ public class DeviceServiceImpl implements IDeviceService { } deviceChannelMapper.cleanChannelsByDeviceId(deviceId); deviceMapper.del(deviceId); + redisCatchStorage.removeDevice(deviceId); return true; } From addb6c04593129ce8257c6ffd675238f4be0030d Mon Sep 17 00:00:00 2001 From: shangxingyu Date: Sat, 3 Feb 2024 11:42:41 +0800 Subject: [PATCH 2/3] =?UTF-8?q?1.=E6=92=AD=E6=94=BE=E5=99=A8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=202.=E5=A4=9A=E5=B1=8F=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E5=A4=9A=E7=AA=97=E5=8F=A3,=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E5=8F=AA=E6=9C=89=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=9C=89=E6=97=B6=E9=97=B4=E7=9B=91=E5=90=AC=E9=97=AE?= =?UTF-8?q?=E9=A2=98=203.=E5=9B=9E=E6=94=BE=E7=AA=97=E5=8F=A3=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E6=97=B6=E8=B0=83=E6=95=B4=E4=B8=8B=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/GBRecordDetail.vue | 24 ++++++--- web_src/src/components/common/jessibuca.vue | 57 +++++++++++---------- 2 files changed, 47 insertions(+), 34 deletions(-) diff --git a/web_src/src/components/GBRecordDetail.vue b/web_src/src/components/GBRecordDetail.vue index 37ec377f5..b800e0c1a 100755 --- a/web_src/src/components/GBRecordDetail.vue +++ b/web_src/src/components/GBRecordDetail.vue @@ -36,7 +36,6 @@ :error="videoError" :message="videoError" :hasAudio="hasAudio" - style="max-height: 100%" fluent autoplay live >
@@ -137,8 +136,11 @@ margin: "10px auto 10px auto" }, playerStyle: { + "display": "flex", + "justify-content": "center", + "align-items": "center", "margin": "0 auto 20px auto", - "height": this.winHeight + "px", + "height": this.winHeight + "px" }, winHeight: window.innerHeight - 240, playTime: null, @@ -178,17 +180,25 @@ }, mounted() { - this.recordListStyle.height = this.winHeight + "px"; - this.playerStyle["height"] = this.winHeight + "px"; - this.chooseDate = moment().format('YYYY-MM-DD') - this.dateChange(); - window.addEventListener('beforeunload', this.stopPlayRecord) + this.$nextTick(() => { + this.updateWinHeight(); + this.chooseDate = moment().format('YYYY-MM-DD') + this.dateChange(); + window.addEventListener('resize',this.updateWinHeight) + window.addEventListener('beforeunload', this.stopPlayRecord) + }) }, destroyed() { this.$destroy('recordVideoPlayer'); window.removeEventListener('beforeunload', this.stopPlayRecord) + window.removeEventListener('resize',this.updateWinHeight) }, methods: { + updateWinHeight(){ + this.winHeight=window.innerHeight - 240; + this.recordListStyle.height = this.winHeight + "px"; + this.playerStyle.height = this.winHeight + "px"; + }, dateChange(){ if (!this.chooseDate) { return; diff --git a/web_src/src/components/common/jessibuca.vue b/web_src/src/components/common/jessibuca.vue index 3419bb590..ef79bab76 100755 --- a/web_src/src/components/common/jessibuca.vue +++ b/web_src/src/components/common/jessibuca.vue @@ -1,23 +1,25 @@