diff --git a/rtcclient.cpp b/rtcclient.cpp index af606c3cd3fc7a08ea13cee271091c6253bed926..0e937bced9ba38d2037ed053d1b7c3595f23db54 100644 --- a/rtcclient.cpp +++ b/rtcclient.cpp @@ -11,7 +11,7 @@ RtcClient::RtcClient() : m_roomobj(0), m_audio(0), m_video(0), m_chat(0) } RtcClient::~RtcClient() { uninit(); } -int RtcClient::init(std::string url, std::string token) +int RtcClient::init(std::string url, std::string appkey, std::string secretkey) { // token 需要转换成三体的token @@ -28,8 +28,8 @@ int RtcClient::init(std::string url, std::string token) rtc::IAVDEngine::Instance()->setOption(eo_video_codec_priority, &g_videocodec); rtc::IAVDEngine::Instance()->setOption(eo_camera_capability_default, &g_cap); // 初始化 - // result = rtc::IAVDEngine::Instance()->init(this, url, g_appkey, g_secretkey); - result = rtc::IAVDEngine::Instance()->init(this, url, tokenTee3); + result = rtc::IAVDEngine::Instance()->init(this, url, appkey, secretkey); + // result = rtc::IAVDEngine::Instance()->init(this, url, tokenTee3); if (result != AVD_OK) { diff --git a/rtcclient.h b/rtcclient.h index 787ca55ec2a752bd53af52cd092db32dce2d053f..09ca2eb65620d35520f52591dfdb1f1c009c9cfb 100644 --- a/rtcclient.h +++ b/rtcclient.h @@ -26,7 +26,7 @@ public: RtcClient(); ~RtcClient(); - int init(std::string url, std::string token) override; + int init(std::string url, std::string appkey, std::string secretkey) override; void uninit(); int joinRoom(std::string roomid, std::string selfUserId, std::string selfUserName) override; int leave(int reason) override;