feat: pre-load ElfHosted MediaFlow Proxy config URL
This commit is contained in:
parent
39dec26450
commit
9e2242093c
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,11 @@ export class ConfigureController {
|
|||
private getConfigure(req: Request, res: Response) {
|
||||
const config: Config = JSON.parse(req.params['config'] || JSON.stringify(getDefaultConfig()));
|
||||
|
||||
// Convenience preset for ElfHosted WebStreamr bundle including Media Flow Proxy
|
||||
if (!req.params['config'] && req.host.endsWith('elfhosted.com')) {
|
||||
config.mediaFlowProxyUrl = `${req.protocol}://${req.host.replace('webstreamr', 'mediaflow-proxy')}`;
|
||||
}
|
||||
|
||||
const manifest = buildManifest(this.sources, config);
|
||||
|
||||
res.setHeader('content-type', 'text/html');
|
||||
|
|
|
|||
Loading…
Reference in a new issue