Commit 826ec33c by xiongziliang

rtx ssrc不强制指定

parent 0377796c
...@@ -1253,11 +1253,15 @@ void RtcMedia::checkValid() const{ ...@@ -1253,11 +1253,15 @@ void RtcMedia::checkValid() const{
CHECK(!plan.empty() || type == TrackApplication ); CHECK(!plan.empty() || type == TrackApplication );
bool send_rtp = (direction == RtpDirection::sendonly || direction == RtpDirection::sendrecv); bool send_rtp = (direction == RtpDirection::sendonly || direction == RtpDirection::sendrecv);
CHECK(!rtp_rtx_ssrc.empty() || !send_rtp); CHECK(!rtp_rtx_ssrc.empty() || !send_rtp);
#if 0
//todo 发现Firefox(88.0)在mac平台下,开启rtx后没有指定ssrc
auto rtx_plan = getPlan("rtx"); auto rtx_plan = getPlan("rtx");
if (rtx_plan) { if (rtx_plan) {
//开启rtx后必须指定rtx_ssrc //开启rtx后必须指定rtx_ssrc
CHECK(rtp_rtx_ssrc.size() >= 2 || !send_rtp); CHECK(rtp_rtx_ssrc.size() >= 2 || !send_rtp);
} }
#endif
} }
void RtcSession::checkValid() const{ void RtcSession::checkValid() const{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论