Add a new packet of type
to rtcp
. packet
will point to the newly created
packet.
the #GstRTCPType of the new packet
pointer to new packet
Initialize a new #GstRTCPPacket pointer that points to the first packet in
rtcp
.
a #GstRTCPPacket
Get the number of RTCP packets in rtcp
.
Finish rtcp
after being constructed. This function is usually called
after gst_rtcp_buffer_map() and after adding the RTCP items to the new buffer.
The function adjusts the size of rtcp
with the total length of all the
added packets.
Open buffer
for reading or writing, depending on flags
. The resulting RTCP
buffer state is stored in rtcp
.
a buffer with an RTCP packet
flags for the mapping
resulting #GstRTCPBuffer
Check if the data
and size
point to the data of a valid compound,
non-reduced size RTCP packet.
Use this function to validate a packet before using the other functions in
this module.
the data to validate
Check if the data
and size
point to the data of a valid RTCP packet.
Use this function to validate a packet before using the other functions in
this module.
This function is updated to support reduced size rtcp packets according to RFC 5506 and will validate full compound RTCP packets as well as reduced size RTCP packets.
the data to validate
Note: The API in this module is not yet declared stable.
The GstRTPCBuffer helper functions makes it easy to parse and create regular #GstBuffer objects that contain compound RTCP packets. These buffers are typically of 'application/x-rtcp' #GstCaps.
An RTCP buffer consists of 1 or more #GstRTCPPacket structures that you can retrieve with gst_rtcp_buffer_get_first_packet(). #GstRTCPPacket acts as a pointer into the RTCP buffer; you can move to the next packet with gst_rtcp_packet_move_to_next().