mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Use reliable ice by default
This commit is contained in:
@@ -44,7 +44,7 @@ int IceAgent::CreateIceAgent(nice_cb_state_changed_t on_state_changed,
|
|||||||
|
|
||||||
agent_ = nice_agent_new_full(g_main_loop_get_context(gloop_),
|
agent_ = nice_agent_new_full(g_main_loop_get_context(gloop_),
|
||||||
NICE_COMPATIBILITY_RFC5245,
|
NICE_COMPATIBILITY_RFC5245,
|
||||||
(NiceAgentOption)(NICE_AGENT_OPTION_NONE));
|
(NiceAgentOption)(NICE_AGENT_OPTION_RELIABLE));
|
||||||
|
|
||||||
if (agent_ == nullptr) {
|
if (agent_ == nullptr) {
|
||||||
LOG_ERROR("Failed to create agent_");
|
LOG_ERROR("Failed to create agent_");
|
||||||
|
|||||||
@@ -507,7 +507,7 @@ int PeerConnection::SendVideoData(const char *data, size_t size) {
|
|||||||
int ret = video_encoder_->Encode(
|
int ret = video_encoder_->Encode(
|
||||||
(uint8_t *)data, size, [this](char *encoded_frame, size_t size) -> int {
|
(uint8_t *)data, size, [this](char *encoded_frame, size_t size) -> int {
|
||||||
for (auto &ice_trans : ice_transmission_list_) {
|
for (auto &ice_trans : ice_transmission_list_) {
|
||||||
LOG_ERROR("H264 frame size: [{}]", size);
|
// LOG_ERROR("H264 frame size: [{}]", size);
|
||||||
ice_trans.second->SendData(IceTransmission::DATA_TYPE::VIDEO,
|
ice_trans.second->SendData(IceTransmission::DATA_TYPE::VIDEO,
|
||||||
encoded_frame, size);
|
encoded_frame, size);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user