瀏覽代碼

Update player.js

lqzhgood 6 年之前
父節點
當前提交
e5be8fad4d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/js/player.js

+ 2 - 1
src/js/player.js

@@ -114,6 +114,7 @@ class DPlayer {
         }
 
         this.setting = new Setting(this);
+        this.plugins = {};
 
         document.addEventListener('click', () => {
             this.focus = false;
@@ -344,7 +345,7 @@ class DPlayer {
                 if (Hls) {
                     if (Hls.isSupported()) {
                         const hls = new Hls();
-                        this.hls = hls;
+                        this.plugins.Hls = hls;
                         hls.loadSource(video.src);
                         
                         .attachMedia(video);