feat(media): add single-server SFU scaffolding and media mode config

This commit is contained in:
2026-02-07 17:30:00 +00:00
parent 63e7700340
commit aae91ac862
5 changed files with 179 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { mediaMode } from '../config';
import { NoopSfuService } from './noop';
import type { SfuService } from './types';
const createSfuService = (): SfuService | null => {
if (mediaMode !== 'single_server_sfu') {
return null;
}
return new NoopSfuService();
};
export const sfuService = createSfuService();