Selaa lähdekoodia

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

Lawrence 4 vuotta sitten
vanhempi
commit
c1204f6615
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      web_src/src/components/gb28181/devicePlayer.vue

+ 2 - 2
web_src/src/components/gb28181/devicePlayer.vue

@@ -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 = '';