Explorar el Código

Update player.js

lqzhgood hace 6 años
padre
commit
ba7ca32439
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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();
                         });