diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 4e3b6bd..a58e289 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -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;