Update player.js

This commit is contained in:
lqzhgood 2019-07-25 16:03:37 +08:00 committed by GitHub
parent e5be8fad4d
commit ba7ca32439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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();
});