修正转码播放停止后重复回调的错误

This commit is contained in:
Lawrence 2020-12-16 12:41:49 +08:00
parent 2852561e50
commit f804dbfa34

View File

@ -296,7 +296,7 @@ export default {
}).catch(function (e) {});
that.coverPlaying = false;
that.convertKey = "";
if (callback )callback();
// if (callback )callback();
},
playFromStreamInfo: function (realHasAudio, streamInfo) {
@ -306,7 +306,7 @@ export default {
},
close: function () {
console.log('关闭视频');
if (!this.$refs.videoPlayer){
if (this.$refs.videoPlayer){
this.$refs.videoPlayer.pause();
}
this.videoUrl = '';