Browse Source

销售直播代码 直播间连接rtmp服务器拉取直播页面

yuhongqi 1 day ago
parent
commit
7c948ff826
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/live/liveConsole/index.vue

+ 2 - 1
src/views/live/liveConsole/index.vue

@@ -267,7 +267,8 @@ export default {
       })
     },
     initPlayer(){
-      if (flvjs.isSupported()) {
+      var isUrl = this.livingUrl === null || this.livingUrl.trim() === ''
+      if (flvjs.isSupported() && !isUrl) {
         const videoElement = this.$refs.videoPlayer
         var flvPlayer = flvjs.createPlayer({
           type: 'flv',