Browse Source

Update player.js

lqzhgood 6 năm trước cách đây
mục cha
commit
ba7ca32439
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/js/player.js

+ 1 - 2
src/js/player.js

@@ -347,8 +347,7 @@ class DPlayer {
                         const hls = new Hls();
                         this.plugins.Hls = hls;
                         hls.loadSource(video.src);
-                        
-                        .attachMedia(video);
+                        hls.attachMedia(video);
                         this.events.on('destroy', () => {
                             hls.destroy();
                         });