From 8b0ff3767b23f9479a0b3ebe8e343ed6470bd194 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 09 八月 2022 14:41:21 +0800 Subject: [PATCH] Merge branch 'wvp-28181-2.0' --- web_src/src/components/dialog/devicePlayer.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue index 25628f2..ba02441 100644 --- a/web_src/src/components/dialog/devicePlayer.vue +++ b/web_src/src/components/dialog/devicePlayer.vue @@ -388,7 +388,7 @@ url: '/zlm/' +this.mediaServerId+ '/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtmp&app='+ this.app +'&stream='+ this.streamId }).then(function (res) { that.tracksLoading = false; - if (res.data.code == 0 && res.data.online) { + if (res.data.code == 0 && res.data.tracks) { that.tracks = res.data.tracks; }else{ that.tracksNotLoaded = true; @@ -915,7 +915,7 @@ this.broadcastStatus = 0; }else if (e === "connected") { this.broadcastStatus = 1; - }else { + }else if (e === "disconnected") { this.broadcastStatus = -1; } }); @@ -937,6 +937,7 @@ }).then( (res)=> { if (res.data.code == 0) { // this.broadcastStatus = -1; + // this.broadcastRtc.close() }else { this.$message({ showClose: true, -- Gitblit v1.8.0