mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-22 13:33:37 +00:00
Set range parameter like official client.
This commit is contained in:
parent
cd93328fb2
commit
5cbe60aaaf
@ -122,6 +122,14 @@ export default {
|
||||
url.host = new URL(component.video.proxyUrl).host;
|
||||
request.uris[0] = url.toString();
|
||||
}
|
||||
if (url.pathname === "/videoplayback") {
|
||||
const headers = request.headers;
|
||||
if (headers.Range) {
|
||||
url.searchParams.set("range", headers.Range.split("=")[1]);
|
||||
request.headers = {};
|
||||
request.uris[0] = url.toString();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
localPlayer.configure(
|
||||
|
Loading…
Reference in New Issue
Block a user