Revert "feat(streams): add phase-2 SFU transport handshake and produce/consume APIs"

This reverts commit 498a7f838b7747470b220701505c4bfbd3ea8cff.
This commit is contained in:
2026-02-20 14:00:00 +00:00
parent ef652ea7e5
commit 37d7c27ba0
12 changed files with 65 additions and 1395 deletions

View File

@@ -1,20 +1,14 @@
import { mediaMode } from '../config';
import { MediasoupSfuService } from './mediasoup';
import { NoopSfuService } from './noop';
import type { SfuService } from './types';
const sfuEngine = (process.env.MEDIA_SFU_ENGINE ?? 'mediasoup').trim().toLowerCase();
const createSfuService = (): SfuService | null => {
if (mediaMode !== 'single_server_sfu') {
return null;
}
if (sfuEngine === 'noop') {
return new NoopSfuService();
}
return new MediasoupSfuService();
return new NoopSfuService();
};
export const sfuService = createSfuService();