提交 c9ea5771 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

SrtpSession: set policy.allow_repeat_tx = 1 (required for RTP retransmission without RTX)

上级 ed8f27bb
...@@ -68,7 +68,7 @@ namespace RTC ...@@ -68,7 +68,7 @@ namespace RTC
break; break;
case Profile::AES_CM_128_HMAC_SHA1_32: case Profile::AES_CM_128_HMAC_SHA1_32:
srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32(&policy.rtp); srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32(&policy.rtp);
srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); // NOTE: Must be 80 for RTCP!. srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); // NOTE: Must be 80 for RTCP!.
break; break;
default: default:
MS_ABORT("unknown SRTP suite"); MS_ABORT("unknown SRTP suite");
...@@ -88,9 +88,9 @@ namespace RTC ...@@ -88,9 +88,9 @@ namespace RTC
policy.ssrc.value = 0; policy.ssrc.value = 0;
policy.key = key; policy.key = key;
policy.allow_repeat_tx = 0; policy.allow_repeat_tx = 1; // Required for RTP retransmission without RTX.
policy.window_size = 1024; policy.window_size = 1024;
policy.next = nullptr; // No more policies. policy.next = nullptr; // No more policies.
// Set the SRTP session. // Set the SRTP session.
err = srtp_create(&this->session, &policy); err = srtp_create(&this->session, &policy);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论