Update player.js

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

View File

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