Added possibilities to configure the ICE agent
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user