From 6378f543895346da4ce164dd3674b8c0c8d1bebf Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Thu, 10 Apr 2025 16:38:26 +0800 Subject: [PATCH] debug --- util/RTCContext.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;