Revert "feat(streams): add phase-2 SFU transport handshake and produce/consume APIs"
This reverts commit 498a7f838b7747470b220701505c4bfbd3ea8cff.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user