From ec5238329cdb0f895463ac60c1136e6734f1f902 Mon Sep 17 00:00:00 2001 From: "PC-ROGE\\c" Date: Tue, 25 Apr 2023 17:01:42 +0300 Subject: [PATCH] sfu disabled --- src/controller/session.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/controller/session.js b/src/controller/session.js index 14a0974..a50565f 100644 --- a/src/controller/session.js +++ b/src/controller/session.js @@ -19,7 +19,7 @@ const run_session = async (req, res, next) => { let webrtc_port = await get_webrtc_port() let app_port = await get_app_port() - let sfu_port = await get_sfu_port() + let sfu_port = 8889//await get_sfu_port() if (!app_port) { next(new server_error('all app ports busy')) @@ -27,10 +27,11 @@ const run_session = async (req, res, next) => { } else if (!webrtc_port) { next(new server_error('all webrtc ports busy')) return - } else if (!sfu_port) { - next(new server_error('all sfu ports busy')) - return - } + } + // else if (!sfu_port) { + // next(new server_error('all sfu ports busy')) + // return + // } let app_pid = await run_app(app_path, app_port) if (!app_pid) { @@ -47,13 +48,13 @@ const run_session = async (req, res, next) => { return } - let sfu_pid = await run_sfu(sfu_port) - if (!sfu_pid) { - kill_proc(app_pid) - kill_proc(webrtc_pid) - next(new server_error('can not run sfu')) - return - } + let sfu_pid = null //await run_sfu(sfu_port) + // if (!sfu_pid) { + // kill_proc(app_pid) + // kill_proc(webrtc_pid) + // next(new server_error('can not run sfu')) + // return + // } let add_runnning_session_result = await database.add_running_session(session_id, title, app_pid, webrtc_pid, sfu_pid, app_port, webrtc_port, sfu_port)