mirror of
https://github.com/DIYgod/DPlayer
synced 2024-11-22 18:56:54 +00:00
fix Hls not defined bug
This commit is contained in:
parent
74602816a1
commit
ec57545b2b
4
dist/DPlayer.min.js
vendored
4
dist/DPlayer.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/DPlayer.min.js.map
vendored
2
dist/DPlayer.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -289,7 +289,7 @@ class DPlayer {
|
||||
this.audio = this.element.getElementsByClassName('dplayer-video')[0];
|
||||
|
||||
// Support HTTP Live Streaming
|
||||
if (this.option.video.url.match(/(m3u8)$/i) || Hls.isSupported()) {
|
||||
if (this.option.video.url.match(/(m3u8)$/i) && Hls.isSupported()) {
|
||||
this.element.getElementsByClassName('dplayer-time')[0].style.display = 'none';
|
||||
const hls = new Hls();
|
||||
hls.attachMedia(this.audio);
|
||||
|
Loading…
Reference in New Issue
Block a user