Browse Source

fix Hls not defined bug

DIYgod 9 years ago
parent
commit
ec57545b2b
3 changed files with 1 additions and 1 deletions
  1. 0 0
      dist/DPlayer.min.js
  2. 0 0
      dist/DPlayer.min.js.map
  3. 1 1
      src/DPlayer.js

File diff suppressed because it is too large
+ 0 - 0
dist/DPlayer.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/DPlayer.min.js.map


+ 1 - 1
src/DPlayer.js

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

Some files were not shown because too many files changed in this diff