This commit is contained in:
wangjiyu 2025-04-10 16:38:26 +08:00
parent e97b9257ae
commit 6378f54389
1 changed files with 10 additions and 0 deletions

View File

@ -142,6 +142,11 @@ void RTCContext::onProducer(uint32_t msgId, mrtc::MRTCProducerInfo& info)
}
bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId)
{
if (!PyArray_API) {
std::cout << "PyArray_API is null in init" << std::endl;
} else {
std::cout << "PyArray_API is not null in init" << std::endl;
}
mrtc::IMRTCEngineFactory * rtcFactory = mrtc::getMRTCEngineFactory();
if (!rtcFactory)
{
@ -192,6 +197,11 @@ bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const
}
bool RTCContext::initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex)
{
if (!PyArray_API) {
std::cout << "PyArray_API is null in init" << std::endl;
} else {
std::cout << "PyArray_API is not null in init" << std::endl;
}
while (!isOnConsumer_)
{
std::cout << "wait for OnConsumer" << std::endl;