This commit is contained in:
wangjiyu 2025-04-15 20:24:49 +08:00
parent aa3e6e2bbb
commit 4fbc35689a
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ void RTCContext::onRoom(uint32_t typeId, RTCENGINE_NAMESPACE::MRTCRoomInfo& room
}
void RTCContext::onConsumer(uint32_t msgId, const char* roomId, const char* peerId,
RTCENGINE_NAMESPACE::MRTCConsumerInfo& consumerInfo) {
std::cout << "RTCContext::onConsumer()" << std::endl;
std::cout << "RTCContext::onConsumer():" << consumerInfo.roomId << "," << consumerInfo.displayName << ","
<< consumerInfo.channelIndex << std::endl;
if (isRecv_) {
@ -37,6 +38,7 @@ void RTCContext::onRender(const char* roomId, const char* peerId,
std::cout << "RTCContext::onRender()" << std::endl;
}
void RTCContext::onCallBackMessage(uint32_t msgId, const char* msg) {
std::cout << "onCallBackMessage():" << msgId << std::endl;
std::lock_guard<std::mutex> lock(mutex_);
if (msgId == (uint32_t)mrtc::JOIN_MULTI_ROOM_SUCCESS) {