This commit is contained in:
wangjiyu 2025-05-03 19:59:46 +08:00
parent bbac7269cd
commit a2f2082f54
1 changed files with 8 additions and 1 deletions

View File

@ -118,8 +118,15 @@ int main()
LOG_DEBUG << "RTCContext init failed"; LOG_DEBUG << "RTCContext init failed";
return -1; return -1;
} }
if (!RTCContext::instance().initSend(destRoomId, destChannelIndex)) { if (!RTCContext::instance().initSend(srcRoomId, destRoomId, destChannelIndex, 1)) {
LOG_DEBUG << "RTCContext initSend failed"; LOG_DEBUG << "RTCContext initSend failed";
return -1; return -1;
} }
app().getLoop()->loop();
app().setLogLevel(trantor::Logger::kDebug);
app().run();
LOG_INFO << "bye!";
return 0;
} }