diff --git a/web_src/src/components/common/jessibuca.vue b/web_src/src/components/common/jessibuca.vue index 7ab0b930..4049721c 100644 --- a/web_src/src/components/common/jessibuca.vue +++ b/web_src/src/components/common/jessibuca.vue @@ -5,8 +5,8 @@ - - + +
{{ kBps }} kb/s @@ -243,6 +243,16 @@ export default { this.err = ""; this.performance = ""; }, + mute: function () { + if (jessibucaPlayer[this._uid]) { + jessibucaPlayer[this._uid].mute(); + } + }, + cancelMute: function () { + if (jessibucaPlayer[this._uid]) { + jessibucaPlayer[this._uid].cancelMute(); + } + }, destroy: function () { if (jessibucaPlayer[this._uid]) { jessibucaPlayer[this._uid].destroy(); diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue index 9c254c9b..6d736161 100644 --- a/web_src/src/components/dialog/devicePlayer.vue +++ b/web_src/src/components/dialog/devicePlayer.vue @@ -374,7 +374,7 @@ export default { 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;