Revert "feat(streams): add phase-2 SFU transport handshake and produce/consume APIs"
This reverts commit 498a7f838b7747470b220701505c4bfbd3ea8cff.
This commit is contained in:
@@ -17,18 +17,7 @@ router.get('/ready', async (_req, res) => {
|
||||
try {
|
||||
await db.execute('select 1');
|
||||
await minioClient.bucketExists(minioBucket);
|
||||
const sfu = sfuService;
|
||||
const sfuSessions = sfu ? await sfu.listSessions() : [];
|
||||
const sfuSessionIds = sfuSessions.map((session) => session.streamSessionId);
|
||||
const sfuTransports = sfu
|
||||
? (await Promise.all(sfuSessionIds.map(async (streamSessionId) => await sfu.listTransports(streamSessionId)))).flat()
|
||||
: [];
|
||||
const sfuProducers = sfu
|
||||
? (await Promise.all(sfuSessionIds.map(async (streamSessionId) => await sfu.listProducers(streamSessionId)))).flat()
|
||||
: [];
|
||||
const sfuConsumers = sfu
|
||||
? (await Promise.all(sfuSessionIds.map(async (streamSessionId) => await sfu.listConsumers(streamSessionId)))).flat()
|
||||
: [];
|
||||
const sfuSessions = sfuService ? await sfuService.listSessions() : [];
|
||||
|
||||
res.json({
|
||||
status: 'ready',
|
||||
@@ -39,9 +28,6 @@ router.get('/ready', async (_req, res) => {
|
||||
mediaProvider: mediaProvider.name,
|
||||
sfuService: sfuService ? sfuService.mode : 'disabled',
|
||||
sfuActiveSessions: sfuSessions.filter((session) => session.state !== 'ended').length,
|
||||
sfuTransports: sfuTransports.length,
|
||||
sfuProducers: sfuProducers.length,
|
||||
sfuConsumers: sfuConsumers.length,
|
||||
},
|
||||
timestamp: new Date().toISOString(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user