mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 23:47:25 +00:00
Add support for better qualities through the IOS HLS manifest. (#474)
This commit is contained in:
parent
610fe86c32
commit
881621d3a4
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user