Set range parameter like official client.

This commit is contained in:
FireMasterK 2021-08-26 02:02:56 +05:30
parent cd93328fb2
commit 5cbe60aaaf
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -122,6 +122,14 @@ export default {
url.host = new URL(component.video.proxyUrl).host; url.host = new URL(component.video.proxyUrl).host;
request.uris[0] = url.toString(); 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( localPlayer.configure(