Skip to content

Commit a5b3ab3

Browse files
committed
feat: upgrade nertc to 5.9.15
Signed-off-by: Dylan <2894220@gmail.com>
1 parent 9cc9293 commit a5b3ab3

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

.cmake/conan.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ function(_get_msvc_ide_version result)
5757
set(${result} 16 PARENT_SCOPE)
5858
elseif(NOT MSVC_VERSION VERSION_LESS 1930 AND MSVC_VERSION VERSION_LESS 1950)
5959
set(${result} 17 PARENT_SCOPE)
60+
elseif(NOT MSVC_VERSION VERSION_LESS 1950 AND MSVC_VERSION VERSION_LESS 1960)
61+
set(${result} 18 PARENT_SCOPE)
6062
else()
6163
message(FATAL_ERROR "Conan: Unknown MSVC compiler version [${MSVC_VERSION}]")
6264
endif()

.cmake/export_recipes.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function(export_recipes_dynamically)
129129
"sqlite3/3.51.0@yunxin/stable"
130130
"tinyxml/2.6.2@yunxin/stable"
131131
"nim/10.9.72-beta.0@yunxin/stable"
132-
"nertc/4.1.1@yunxin/stable"
132+
"nertc/5.9.15@yunxin/stable"
133133
"libcef/3.2623.1401@yunxin/stable"
134134
"ne_live_player/1.6.9@yunxin/stable"
135135
"image_ole/4.2.0@yunxin/stable"

app_sdk/protocol/sdk_pro.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ SDK_PRO::LoginByCodeRequest::LoginByCodeRequest(std::string mobile, std::string
296296
}
297297
std::string SDK_PRO::LoginByCodeRequest::OnGetHost() const
298298
{
299+
#if defined(DEBUG) || defined(_DEBUG)
300+
return "https://yiyong-user-center-qa.netease.im";
301+
#else
299302
return "https://yiyong-user-center.netease.im";
303+
#endif
300304
}
301305
std::string SDK_PRO::LoginByCodeRequest::OnGetAPI() const
302306
{

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def requirements(self):
3232
self.requires("sqlite3/3.51.0@yunxin/stable")
3333
self.requires("tinyxml/2.6.2@yunxin/stable")
3434
self.requires("nim/10.9.72-beta.0@yunxin/stable")
35-
self.requires("nertc/4.1.1@yunxin/stable")
35+
self.requires("nertc/5.9.15@yunxin/stable")
3636
self.requires("libcef/3.2623.1401@yunxin/stable")
3737
self.requires("ne_live_player/1.6.9@yunxin/stable")
3838
self.requires("image_ole/4.2.0@yunxin/stable")

recipes/nertc/all/conandata.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ sources:
3131
x86_64:
3232
url: "https://yx-web-nosdn.netease.im/package/1679992232/NERTC_MacOS_SDK_V4.6.50.zip"
3333
sha256: "e81961ad042c5dcf36722e7c16b6f449ffcdadd951fb03333266f729bea65ee2"
34+
"5.9.15":
35+
Windows:
36+
x86_64:
37+
url: "https://yx-web-nosdn.netease.im/package/1766136551/NERTC_Windows_SDK_V5.9.15.zip"
38+
sha256: "28419e38311115c935ee2c117206eccbcf84a8bd16febc8a50d0f4ab66eb6aa8"

tool_kits/ui_component/g2_kit/component/avchat_component.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ namespace nim_comp
582582
}
583583
else {
584584
requestTokenValue(uid);
585-
while ("xyz" == stoken_)
585+
while ("xyz" == stoken_ && isUseRtcSafeMode)
586586
{
587587
std::this_thread::yield();
588588
}
@@ -755,7 +755,7 @@ namespace nim_comp
755755
//std::string sValue = values["cid"].asString();
756756
if (value == 1) {
757757
if (notifyInfo) {
758-
while ("xyz" == stoken_)
758+
while ("xyz" == stoken_ && isUseRtcSafeMode)
759759
{
760760
std::this_thread::yield();
761761
}
@@ -875,7 +875,7 @@ namespace nim_comp
875875
QLOG_APP(L"handleAccepted, version_: {0}") << version_;
876876

877877
requestTokenValue(channelMembers_[senderAccid]);
878-
while ("xyz" == stoken_)
878+
while ("xyz" == stoken_ && isUseRtcSafeMode)
879879
{
880880
std::this_thread::yield();
881881
}
@@ -1088,12 +1088,13 @@ namespace nim_comp
10881088
}
10891089
///////////////////////////////G2事件///////////////////////////////
10901090
void AvChatComponent::onJoinChannel(nertc::channel_id_t cid, nertc::uid_t uid, nertc::NERtcErrorCode result, uint64_t elapsed) {
1091-
QLOG_APP(L"onJoinChannel");
1091+
QLOG_APP(L"onJoinChannel, cid: {0}, uid: {1}, result: {2}, elapsed: {3}")
1092+
<< cid << uid << result << elapsed;
10921093
//rtcEngine_->enableLocalAudio(true);
10931094
}
10941095
void AvChatComponent::onUserJoined(nertc::uid_t uid, const char* user_name)
10951096
{
1096-
QLOG_APP(L"onUserJoined");
1097+
QLOG_APP(L"onUserJoined, uid: {0}, user name: {1}") << uid << user_name;
10971098
int ret = rtcEngine_->subscribeRemoteVideoStream(uid, nertc::kNERtcRemoteVideoStreamTypeHigh, true);
10981099
//ret = rtcEngine_->subscribeRemoteAudioStream(uid, true);
10991100

0 commit comments

Comments
 (0)