mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
add debug print
This commit is contained in:
parent
6db329de13
commit
b241436ed3
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,8 @@ export default {
|
||||||
const proxyURL = new URL(component.video.proxyUrl);
|
const proxyURL = new URL(component.video.proxyUrl);
|
||||||
const proxyHost = proxyURL.host;
|
const proxyHost = proxyURL.host;
|
||||||
const proxyPath = proxyURL.pathname;
|
const proxyPath = proxyURL.pathname;
|
||||||
|
console.log("proxyHost", proxyHost);
|
||||||
|
console.log("proxyPath", proxyPath);
|
||||||
|
|
||||||
localPlayer.getNetworkingEngine().registerRequestFilter((_type, request) => {
|
localPlayer.getNetworkingEngine().registerRequestFilter((_type, request) => {
|
||||||
const uri = request.uris[0];
|
const uri = request.uris[0];
|
||||||
|
@ -223,6 +225,7 @@ export default {
|
||||||
url.searchParams.set("host", url.host);
|
url.searchParams.set("host", url.host);
|
||||||
url.host = proxyHost;
|
url.host = proxyHost;
|
||||||
url.pathname = proxyPath + url.pathname;
|
url.pathname = proxyPath + url.pathname;
|
||||||
|
console.log("url.pathname", url.pathname);
|
||||||
request.uris[0] = url.toString();
|
request.uris[0] = url.toString();
|
||||||
}
|
}
|
||||||
if (url.pathname === proxyPath + "/videoplayback") {
|
if (url.pathname === proxyPath + "/videoplayback") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue