debug
This commit is contained in:
parent
c6b0a5cb08
commit
41d47101d2
|
@ -17,7 +17,7 @@ ret = rtc_plugins.init(srcUserId, srcDisplayName, srcRoomId, my_callback)
|
|||
if ret != 0:
|
||||
print(f"init fail, ret:{ret}")
|
||||
exit(1)
|
||||
ret = rtc_plugins.initSend(destRoomId, destChannelIndex)
|
||||
ret = rtc_plugins.initSend(srcRoomId, destRoomId, destChannelIndex)
|
||||
if ret != 0:
|
||||
print(f"initSend fail, ret:{ret}")
|
||||
exit(1)
|
||||
|
|
|
@ -23,7 +23,7 @@ ret = rtc_plugins.initRecv(destRoomId, srcUserId, destChannelIndex)
|
|||
if ret != 0:
|
||||
print(f"initRecv fail, ret:{ret}")
|
||||
exit(1)
|
||||
ret = rtc_plugins.initSend(srcRoomId, srcChannelIndex)
|
||||
ret = rtc_plugins.initSend(destRoomId, srcRoomId, srcChannelIndex)
|
||||
if ret != 0:
|
||||
print(f"initSend fail, ret:{ret}")
|
||||
exit(1)
|
||||
|
|
|
@ -17,7 +17,7 @@ ret = rtc_plugins.init(srcUserId, srcDisplayName, srcRoomId, my_callback)
|
|||
if ret != 0:
|
||||
print(f"init fail, ret:{ret}")
|
||||
exit(1)
|
||||
ret = rtc_plugins.initSend(destRoomId, destChannelIndex)
|
||||
ret = rtc_plugins.initSend(srcRoomId, destRoomId, destChannelIndex)
|
||||
if ret != 0:
|
||||
print(f"initSend fail, ret:{ret}")
|
||||
exit(1)
|
||||
|
|
|
@ -507,19 +507,21 @@ bool RTCContext::initRecv(const char* destRoomId, const char* srcUserId, const i
|
|||
return true;
|
||||
|
||||
}
|
||||
bool RTCContext::initSend(const char* destRoomId, const int16_t destChannelIndex)
|
||||
bool RTCContext::initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex)
|
||||
{
|
||||
while (!isOnRoom_)
|
||||
{
|
||||
std::cout << "wait for OnRoom" << std::endl;
|
||||
sleep(3);
|
||||
}
|
||||
std::cout << "join multi room" << std::endl;
|
||||
int16_t ret1 = rtcEngine_->joinMultiRoom(destRoomId);
|
||||
if (ret1 != 0)
|
||||
{
|
||||
std::cout << "joinMultiRoom fail, ret:" << ret1;
|
||||
return false;
|
||||
if (std::string(srcRoomId) != std::string(destRoomId)) {
|
||||
std::cout << "join multi room" << std::endl;
|
||||
int16_t ret1 = rtcEngine_->joinMultiRoom(destRoomId);
|
||||
if (ret1 != 0)
|
||||
{
|
||||
std::cout << "joinMultiRoom fail, ret:" << ret1;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
mrtc::MRTCAudioOption option;
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
mrtc::IMRTCEngine* getRtcEngine() const;
|
||||
bool init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId);
|
||||
bool initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex);
|
||||
bool initSend(const char* destRoomId, const int16_t destChannelIndex);
|
||||
bool initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex);
|
||||
|
||||
void* getpData() const;
|
||||
void setpData(void* pData);
|
||||
|
|
Loading…
Reference in New Issue