Added possibilities to configure the ICE agent

This commit is contained in:
WolverinDEV
2020-11-16 14:50:54 +01:00
parent 83fa79a51d
commit 225c006140
4 changed files with 79 additions and 6 deletions
+8 -1
View File
@@ -714,7 +714,14 @@ void SpeakingClient::processJoin() {
/* TODO: Will be a RTP client later on, just without audio */
this->rtc_client_id = this->server->rtc_server().create_native_client(dynamic_pointer_cast<SpeakingClient>(this->ref()));
} else if(this->getType() == ClientType::CLIENT_WEB) {
this->rtc_client_id = this->server->rtc_server().create_rtp_client(dynamic_pointer_cast<SpeakingClient>(this->ref()));
std::string error;
auto result = this->server->rtc_server().create_rtp_client(dynamic_pointer_cast<SpeakingClient>(this->ref()), error);
if(result > 0) {
this->rtc_client_id = result;
} else {
this->rtc_client_id = 0;
logCritical(this->getServerId(), "{} Failed to configure RTC session: {}", CLIENT_STR_LOG_PREFIX, error);
}
}
this->rtc_session_pending_describe = true;