fix Hls is not supported in Safari Mobile
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user