-
public bool add_rb (uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr)
Add a new report block to packet with the given values. the max MTU is exceeded or the
number of report blocks is greater than RTCP_MAX_RB_COUNT.
-
public bool bye_add_ssrc (uint32 ssrc)
Add ssrc to the BYE packet. the max MTU is exceeded or the number of sources
blocks is greater than RTCP_MAX_BYE_SSRC_COUNT.
-
public bool bye_add_ssrcs (uint32 ssrc, uint len)
Adds len SSRCs in ssrc to BYE packet. the max MTU is exceeded or
the number of sources blocks is greater than RTCP_MAX_BYE_SSRC_COUNT.
-
public uint32 bye_get_nth_ssrc (uint nth)
Get the nth SSRC of the BYE packet.
-
public unowned string bye_get_reason ()
Get the reason in packet. a reason string. The string must be freed with
g_free after usage.
-
public uchar bye_get_reason_len ()
Get the length of the reason string. present.
-
public uint bye_get_ssrc_count ()
Get the number of SSRC fields in packet.
-
public bool bye_set_reason (string reason)
Set the reason string to reason in packet.
-
public uchar fb_get_fci ()
Get the Feedback Control Information attached to a RTPFB or PSFB packet.
-
public uint16 fb_get_fci_length ()
Get the length of the Feedback Control Information attached to a RTPFB or PSFB packet.
-
public uint32 fb_get_media_ssrc ()
Get the media SSRC field of the RTPFB or PSFB packet.
-
public uint32 fb_get_sender_ssrc ()
Get the sender SSRC field of the RTPFB or PSFB packet.
-
public RTCPFBType fb_get_type ()
Get the feedback message type of the FB packet.
-
public bool fb_set_fci_length (uint16 wordlen)
Set the length of the Feedback Control Information attached to a RTPFB or PSFB packet.
-
public void fb_set_media_ssrc (uint32 ssrc)
Set the media SSRC field of the RTPFB or PSFB packet.
-
public void fb_set_sender_ssrc (uint32 ssrc)
Set the sender SSRC field of the RTPFB or PSFB packet.
-
public void fb_set_type (RTCPFBType type)
Set the feedback message type of the FB packet.
-
public uchar get_count ()
Get the count field in packet. valid packet.
-
public uint16 get_length ()
Get the length field of packet. This is the length of the packet in 32-bit words minus one.
-
public bool get_padding ()
Get the packet padding of the packet pointed to by packet.
-
public void get_rb (uint nth, uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr)
Parse the values of the nth report block in packet and store the result in the
values.
-
public uint get_rb_count ()
Get the number of report blocks in packet.
-
public bool move_to_next ()
-
public bool remove ()
Removes the packet pointed to by packet and moves pointer to the next one function.
-
public uint32 rr_get_ssrc ()
Get the ssrc field of the RR packet.
-
public void rr_set_ssrc (uint32 ssrc)
Set the ssrc field of the RR packet.
-
public bool sdes_add_entry (RTCPSDESType type, uchar len, uchar data)
Add a new SDES entry to the current item in packet. reached.
-
public bool sdes_add_item (uint32 ssrc)
Add a new SDES item for ssrc to packet. items has been exceeded for the SDES
packet or the MTU has been reached.
-
public bool sdes_copy_entry (RTCPSDESType type, uchar len, uchar data)
This function is like sdes_get_entry but
it returns a null-terminated copy of the data instead. use g_free after
usage.
-
public bool sdes_first_entry ()
Move to the first SDES entry in the current item.
-
public bool sdes_first_item ()
Move to the first SDES item in packet.
-
public bool sdes_get_entry (RTCPSDESType type, uchar len, uchar data)
Get the data of the current SDES item entry. type (when not NULL) will contain the type of
the entry. data (when not NULL) will point to len bytes. When type refers to a text item,
data will point to a UTF8 string. Note that this UTF8 string is NOT null-terminated. Use
sdes_copy_entry to get a null-termined copy of the entry.
-
public uint sdes_get_item_count ()
Get the number of items in the SDES packet packet.
-
public uint32 sdes_get_ssrc ()
Get the SSRC of the current SDES item.
-
public bool sdes_next_entry ()
Move to the next SDES entry in the current item.
-
public bool sdes_next_item ()
Move to the next SDES item in packet.
-
public void set_rb (uint nth, uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr)
Set the nth new report block in packet with the given values.
-
public void sr_get_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count)
Parse the SR sender info and store the values.
-
public void sr_set_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count)
Set the given values in the SR packet packet.