提交 5fc053d4 authored 作者: José Luis Millán's avatar José Luis Millán

Fix #151. Ignore RTCP XR

上级 d492ad8f
...@@ -27,7 +27,8 @@ namespace RTC ...@@ -27,7 +27,8 @@ namespace RTC
BYE = 203, BYE = 203,
APP = 204, APP = 204,
RTPFB = 205, RTPFB = 205,
PSFB = 206 PSFB = 206,
XR = 207
}; };
class Packet class Packet
......
...@@ -30,7 +30,8 @@ namespace RTC ...@@ -30,7 +30,8 @@ namespace RTC
{ Type::BYE, "BYE" }, { Type::BYE, "BYE" },
{ Type::APP, "APP" }, { Type::APP, "APP" },
{ Type::RTPFB, "RTPFB" }, { Type::RTPFB, "RTPFB" },
{ Type::PSFB, "PSFB" } { Type::PSFB, "PSFB" },
{ Type::XR, "XR" }
}; };
// clang-format on // clang-format on
...@@ -115,15 +116,21 @@ namespace RTC ...@@ -115,15 +116,21 @@ namespace RTC
break; break;
} }
case Type::RTPFB:
{
current = FeedbackRtpPacket::Parse(data, packetLen);
break;
}
case Type::PSFB: case Type::PSFB:
{ {
current = FeedbackPsPacket::Parse(data, packetLen); current = FeedbackPsPacket::Parse(data, packetLen);
break; break;
} }
case Type::RTPFB: case Type::XR:
{ {
current = FeedbackRtpPacket::Parse(data, packetLen); current = nullptr;
break; break;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论