Commit c1204f66156dd97ff765e7b8d847ca4b591b8413

Authored by Lawrence
1 parent e56fcc48

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

web_src/src/components/gb28181/devicePlayer.vue
@@ -296,7 +296,7 @@ export default { @@ -296,7 +296,7 @@ export default {
296 }).catch(function (e) {}); 296 }).catch(function (e) {});
297 that.coverPlaying = false; 297 that.coverPlaying = false;
298 that.convertKey = ""; 298 that.convertKey = "";
299 - if (callback )callback(); 299 + // if (callback )callback();
300 }, 300 },
301 301
302 playFromStreamInfo: function (realHasAudio, streamInfo) { 302 playFromStreamInfo: function (realHasAudio, streamInfo) {
@@ -306,7 +306,7 @@ export default { @@ -306,7 +306,7 @@ export default {
306 }, 306 },
307 close: function () { 307 close: function () {
308 console.log('关闭视频'); 308 console.log('关闭视频');
309 - if (!this.$refs.videoPlayer){ 309 + if (this.$refs.videoPlayer){
310 this.$refs.videoPlayer.pause(); 310 this.$refs.videoPlayer.pause();
311 } 311 }
312 this.videoUrl = ''; 312 this.videoUrl = '';