浏览代码

Update VideoPlayer.vue component

Daniel Supernault 9 月之前
父节点
当前提交
297b7f3859
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      resources/assets/components/presenter/VideoPlayer.vue

+ 2 - 4
resources/assets/components/presenter/VideoPlayer.vue

@@ -45,8 +45,6 @@
     import Hls from 'hls.js';
     import Hls from 'hls.js';
     import "plyr/dist/plyr.css";
     import "plyr/dist/plyr.css";
     import Plyr from 'plyr';
     import Plyr from 'plyr';
-    import { p2pml } from '@peertube/p2p-media-loader-core'
-    import { Engine, initHlsJsPlayer } from '@peertube/p2p-media-loader-hlsjs'
 
 
     export default {
     export default {
         props: ['status', 'fixedHeight'],
         props: ['status', 'fixedHeight'],
@@ -72,8 +70,8 @@
         methods: {
         methods: {
             handleShouldPlay(){
             handleShouldPlay(){
                 this.shouldPlay = true;
                 this.shouldPlay = true;
-                this.isHlsSupported = this.hlsConfig.enabled && Hls.isSupported();
-                this.isP2PSupported = this.hlsConfig.enabled && this.hlsConfig.p2p && Engine.isSupported();
+                this.isHlsSupported = false;
+                this.isP2PSupported = false;
                 this.$nextTick(() => {
                 this.$nextTick(() => {
                     this.init();
                     this.init();
                 })
                 })