rtcp: Detect received RTCP FB packets, PT 205 and 206

This commit is contained in:
Heikki Tampio 2023-07-31 15:02:11 +03:00
parent 19cc31cd4a
commit 04af2dfabd
2 changed files with 15 additions and 5 deletions

View File

@ -24,11 +24,13 @@ namespace uvgrtp {
namespace frame {
enum RTCP_FRAME_TYPE {
RTCP_FT_SR = 200, /* Sender report */
RTCP_FT_RR = 201, /* Receiver report */
RTCP_FT_SDES = 202, /* Source description */
RTCP_FT_BYE = 203, /* Goodbye */
RTCP_FT_APP = 204 /* Application-specific message */
RTCP_FT_SR = 200, /* Sender report */
RTCP_FT_RR = 201, /* Receiver report */
RTCP_FT_SDES = 202, /* Source description */
RTCP_FT_BYE = 203, /* Goodbye */
RTCP_FT_APP = 204, /* Application-specific message */
RTCP_FT_RTPFB = 205, /* Transport layer FB message */
RTCP_FT_PSFB = 206 /* Payload-specific FB message */
};
PACK(struct rtp_header {

View File

@ -1225,6 +1225,14 @@ rtp_error_t uvgrtp::rtcp::handle_incoming_packet(void* args, int rce_flags, uint
ret = handle_app_packet(buffer, read_ptr, packet_end, header);
break;
case uvgrtp::frame::RTCP_FT_RTPFB:
UVG_LOG_INFO("Received a transport-layer FB message");
break;
case uvgrtp::frame::RTCP_FT_PSFB:
UVG_LOG_INFO("Received a payload-specific FB message");
break;
default:
UVG_LOG_WARN("Unknown packet received, type %d", header.pkt_type);
break;