mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[feat] use trickle ice by default
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -79,6 +79,7 @@ int IceTransmission::InitIceTransmission(
|
||||
}
|
||||
|
||||
if (state_ != NICE_COMPONENT_STATE_READY) {
|
||||
LOG_ERROR("Ice is not ready");
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user