Add support for better qualities through the IOS HLS manifest.

This commit is contained in:
FireMasterK 2021-09-23 11:42:35 +01:00 committed by FireMaskterK
parent 610fe86c32
commit a1fafd11ea
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

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";