648540858
2022-07-01 b6c97528aeff3a976faa2f9f80bd3fbf42aedfdd
添加界面停止逻辑
1个文件已修改
15 ■■■■■ 已修改文件
web_src/src/components/dialog/devicePlayer.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web_src/src/components/dialog/devicePlayer.vue
@@ -851,6 +851,21 @@
            }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;
            }
        },