add debug print

This commit is contained in:
Andrea Spacca 2021-11-16 09:43:58 +01:00
parent 6db329de13
commit b241436ed3

View file

@ -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") {