[feat] use trickle ice by default

This commit is contained in:
dijunkun
2024-08-09 10:43:26 +08:00
parent 911f209fda
commit 10cb335779
3 changed files with 3 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ int PeerConnection::Init(PeerConnectionParams params,
LOG_INFO("Hardware accelerated codec [{}]",
hardware_acceleration_ ? "ON" : "OFF");
LOG_INFO("AV1 encoding [{}]", av1_encoding_ ? "ON" : "OFF");
LOG_INFO("Video format [{}]", av1_encoding_ ? "AV1" : "H.264");
on_receive_video_buffer_ = params.on_receive_video_buffer;
on_receive_audio_buffer_ = params.on_receive_audio_buffer;

View File

@@ -99,7 +99,7 @@ class PeerConnection {
int turn_server_port_ = 0;
bool hardware_acceleration_ = false;
bool av1_encoding_ = false;
bool trickle_ice_ = false;
bool trickle_ice_ = true;
TraversalMode mode_ = TraversalMode::P2P;
private:

View File

@@ -79,6 +79,7 @@ int IceTransmission::InitIceTransmission(
}
if (state_ != NICE_COMPONENT_STATE_READY) {
LOG_ERROR("Ice is not ready");
return -2;
}