From 4eae57c864cabf05f8739838c964e505811b65ef Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 20 五月 2022 22:20:28 +0800
Subject: [PATCH] 修复ip配置后提示链接

---
 src/components/wasmPlayer/index.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/components/wasmPlayer/index.vue b/src/components/wasmPlayer/index.vue
index 43aca2c..8ff8d75 100644
--- a/src/components/wasmPlayer/index.vue
+++ b/src/components/wasmPlayer/index.vue
@@ -175,6 +175,17 @@
           this.playVideo()
         })
       }
+    },
+    videoUrl: function(newVal, oldVal) {
+      if (newVal !== oldVal) {
+        if (this.player) {
+          this.player.stop()
+        }
+        this.$nextTick(() => {
+          this.player.preloadFlag = 0
+          this.playVideo()
+        })
+      }
     }
   },
   mounted() {
@@ -406,7 +417,8 @@
     },
     setPlayerStatus(stat) {
       this.videoLoading = false
-      this.playerStatus = 1
+      // 鎺у埗鍔犺浇鍚庣殑鎾斁鎸夐挳鐘舵�侊紝瀹炴椂娴佷负鑷姩鎾斁锛岃棰戜负preload
+      this.playerStatus = this.isStream ? 1 : 0
     },
     stopVideo() {
       if (this.player.hPlayer == 0) return

--
Gitblit v1.8.0