修复视频播放点击音量报错 #557,修复编解码信息获取失败
This commit is contained in:
parent
db929e5da9
commit
0d2d73117e
@ -5,8 +5,8 @@
|
|||||||
<i v-if="!playing" class="iconfont icon-play jessibuca-btn" @click="playBtnClick"></i>
|
<i v-if="!playing" class="iconfont icon-play jessibuca-btn" @click="playBtnClick"></i>
|
||||||
<i v-if="playing" class="iconfont icon-pause jessibuca-btn" @click="pause"></i>
|
<i v-if="playing" class="iconfont icon-pause jessibuca-btn" @click="pause"></i>
|
||||||
<i class="iconfont icon-stop jessibuca-btn" @click="destroy"></i>
|
<i class="iconfont icon-stop jessibuca-btn" @click="destroy"></i>
|
||||||
<i v-if="isNotMute" class="iconfont icon-audio-high jessibuca-btn" @click="jessibuca.mute()"></i>
|
<i v-if="isNotMute" class="iconfont icon-audio-high jessibuca-btn" @click="mute()"></i>
|
||||||
<i v-if="!isNotMute" class="iconfont icon-audio-mute jessibuca-btn" @click="jessibuca.cancelMute()"></i>
|
<i v-if="!isNotMute" class="iconfont icon-audio-mute jessibuca-btn" @click="cancelMute()"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons-box-right">
|
<div class="buttons-box-right">
|
||||||
<span class="jessibuca-btn">{{ kBps }} kb/s</span>
|
<span class="jessibuca-btn">{{ kBps }} kb/s</span>
|
||||||
@ -243,6 +243,16 @@ export default {
|
|||||||
this.err = "";
|
this.err = "";
|
||||||
this.performance = "";
|
this.performance = "";
|
||||||
},
|
},
|
||||||
|
mute: function () {
|
||||||
|
if (jessibucaPlayer[this._uid]) {
|
||||||
|
jessibucaPlayer[this._uid].mute();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cancelMute: function () {
|
||||||
|
if (jessibucaPlayer[this._uid]) {
|
||||||
|
jessibucaPlayer[this._uid].cancelMute();
|
||||||
|
}
|
||||||
|
},
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
if (jessibucaPlayer[this._uid]) {
|
if (jessibucaPlayer[this._uid]) {
|
||||||
jessibucaPlayer[this._uid].destroy();
|
jessibucaPlayer[this._uid].destroy();
|
||||||
|
@ -374,7 +374,7 @@ export default {
|
|||||||
url: '/zlm/' +this.mediaServerId+ '/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtmp&app='+ this.app +'&stream='+ this.streamId
|
url: '/zlm/' +this.mediaServerId+ '/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtmp&app='+ this.app +'&stream='+ this.streamId
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
that.tracksLoading = false;
|
that.tracksLoading = false;
|
||||||
if (res.data.code == 0 && res.data.online) {
|
if (res.data.code == 0 && res.data.tracks) {
|
||||||
that.tracks = res.data.tracks;
|
that.tracks = res.data.tracks;
|
||||||
}else{
|
}else{
|
||||||
that.tracksNotLoaded = true;
|
that.tracksNotLoaded = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user