Update player.js
This commit is contained in:
parent
e5be8fad4d
commit
ba7ca32439
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue