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",
}).then(response => response.headers.get("Content-Type"));
mime = contentType;
} else if (this.video.hls) {
uri = this.video.hls;
mime = "application/x-mpegURL";
} else {
uri = this.video.videoStreams.filter(stream => stream.codec == null).slice(-1)[0].url;
mime = "video/mp4";