From b6c97528aeff3a976faa2f9f80bd3fbf42aedfdd Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Fri, 1 Jul 2022 18:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=95=8C=E9=9D=A2=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/dialog/devicePlayer.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue index 5c40c31f..25101eae 100644 --- a/web_src/src/components/dialog/devicePlayer.vue +++ b/web_src/src/components/dialog/devicePlayer.vue @@ -851,6 +851,21 @@ export default { }else if (this.broadcastStatus === 1) { this.broadcastRtc.close() this.broadcastRtc = null; + this.$axios({ + method: 'get', + url: '/api/play/broadcast/stop/' + this.deviceId + '/' + this.channelId + }).then( (res)=> { + if (res.data.code == 0) { + let streamInfo = res.data.data.streamInfo; + this.startBroadcast(streamInfo.rtc) + }else { + this.$message({ + showClose: true, + message: res.data.msg, + type: "error", + }); + } + }); this.broadcastStatus = -1; } },