fixes lol
All checks were successful
Build and Push / build-all (push) Successful in 8m33s

This commit is contained in:
doomtube 2026-01-08 19:42:22 -05:00
parent 24d9a945b3
commit c2bcc86527
12 changed files with 252 additions and 83 deletions

View file

@ -127,7 +127,7 @@
const sources = [
{
type: 'hls',
file: `${proto}://${host}:${STREAM_PORT}/app/${actualStreamKey}/llhls.m3u8?token=${viewerToken}`,
file: `${proto}://${host}:${STREAM_PORT}/app/${actualStreamKey}/llhls.m3u8?token=${encodeURIComponent(viewerToken)}`,
label: 'LLHLS'
}
];
@ -151,7 +151,7 @@
// Only add token if not already present (segments don't have it)
if (viewerToken && url.includes('/app/') && !url.includes('token=')) {
const separator = url.includes('?') ? '&' : '?';
xhr.open('GET', url + separator + 'token=' + viewerToken, true);
xhr.open('GET', url + separator + 'token=' + encodeURIComponent(viewerToken), true);
}
xhr.withCredentials = true;
}