fix: support password-less MediaFlow Proxy

This commit is contained in:
WebStreamr 2025-06-24 19:12:21 +00:00
parent f12e3c5bd8
commit 39dec26450
No known key found for this signature in database

View file

@ -8,7 +8,7 @@ interface ExtractResult {
query_params: Record<string, string>;
}
export const supportsMediaFlowProxy = (ctx: Context): boolean => !!(ctx.config['mediaFlowProxyUrl'] && ctx.config['mediaFlowProxyPassword']);
export const supportsMediaFlowProxy = (ctx: Context): boolean => !!ctx.config['mediaFlowProxyUrl'];
const buildMediaFlowProxyExtractorUrl = (ctx: Context, host: string, url: URL): URL => {
const mediaFlowProxyUrl = new URL(`${ctx.config.mediaFlowProxyUrl}/extractor/video`);