Add support for better qualities through the IOS HLS manifest. (#474)

This commit is contained in:
Kavin 2021-11-07 18:40:42 +00:00 committed by GitHub
parent 610fe86c32
commit 881621d3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,9 @@ export default {
method: "HEAD", method: "HEAD",
}).then(response => response.headers.get("Content-Type")); }).then(response => response.headers.get("Content-Type"));
mime = contentType; mime = contentType;
} else if (this.video.hls) {
uri = this.video.hls;
mime = "application/x-mpegURL";
} else { } else {
uri = this.video.videoStreams.filter(stream => stream.codec == null).slice(-1)[0].url; uri = this.video.videoStreams.filter(stream => stream.codec == null).slice(-1)[0].url;
mime = "video/mp4"; mime = "video/mp4";