From a2f2082f54b7eb5885a0d4ce1f0f36c716b15731 Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Sat, 3 May 2025 19:59:46 +0800 Subject: [PATCH] debug --- src/websocket2rtc/WebSocket2RTC.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/websocket2rtc/WebSocket2RTC.cc b/src/websocket2rtc/WebSocket2RTC.cc index 31419ab..9fb0c05 100644 --- a/src/websocket2rtc/WebSocket2RTC.cc +++ b/src/websocket2rtc/WebSocket2RTC.cc @@ -118,8 +118,15 @@ int main() LOG_DEBUG << "RTCContext init failed"; return -1; } - if (!RTCContext::instance().initSend(destRoomId, destChannelIndex)) { + if (!RTCContext::instance().initSend(srcRoomId, destRoomId, destChannelIndex, 1)) { LOG_DEBUG << "RTCContext initSend failed"; return -1; } + + app().getLoop()->loop(); + app().setLogLevel(trantor::Logger::kDebug); + app().run(); + LOG_INFO << "bye!"; + + return 0; } \ No newline at end of file