diff --git a/src/js/player.js b/src/js/player.js index 918be07..d780369 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -333,6 +333,10 @@ class DPlayer { } } + if (this.type === 'hls' && (video.canPlayType('application/x-mpegURL') || video.canPlayType('application/vnd.apple.mpegURL'))) { + this.type = 'normal'; + } + switch (this.type) { // https://github.com/video-dev/hls.js case 'hls':