mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Add closed status for ice
This commit is contained in:
@@ -101,6 +101,10 @@ int PeerConnection::Init(PeerConnectionParams params,
|
|||||||
on_connection_status_(ConnectionStatus::Connected);
|
on_connection_status_(ConnectionStatus::Connected);
|
||||||
b_force_i_frame_ = true;
|
b_force_i_frame_ = true;
|
||||||
LOG_INFO("Ice finish");
|
LOG_INFO("Ice finish");
|
||||||
|
} else if ("closed" == ice_status) {
|
||||||
|
ice_ready_ = false;
|
||||||
|
on_connection_status_(ConnectionStatus::Closed);
|
||||||
|
LOG_INFO("Ice closed");
|
||||||
} else {
|
} else {
|
||||||
ice_ready_ = false;
|
ice_ready_ = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,6 +175,9 @@ int IceTransmission::InitIceTransmission(std::string &stun_ip, int stun_port,
|
|||||||
|
|
||||||
int IceTransmission::DestroyIceTransmission() {
|
int IceTransmission::DestroyIceTransmission() {
|
||||||
LOG_INFO("[{}->{}] Destroy ice transmission", user_id_, remote_user_id_);
|
LOG_INFO("[{}->{}] Destroy ice transmission", user_id_, remote_user_id_);
|
||||||
|
if (on_ice_status_change_) {
|
||||||
|
on_ice_status_change_("closed");
|
||||||
|
}
|
||||||
return ice_agent_->DestroyIceAgent();
|
return ice_agent_->DestroyIceAgent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user