#include <rtpsourcedata.h>
Collaboration diagram for RTPSourceData:
Public Member Functions | |
RTPPacket * | GetNextPacket () |
Extracts the first packet of this participants RTP packet queue. | |
void | FlushPackets () |
Clears the participant's RTP packet list. | |
bool | HasData () const |
Returns true if there are RTP packets which can be extracted. | |
uint32_t | GetSSRC () const |
Returns the SSRC identifier for this member. | |
bool | IsOwnSSRC () const |
Returns true if the participant was added using the RTPSources member function CreateOwnSSRC and returns false otherwise. | |
bool | IsCSRC () const |
Returns true if the source identifier is actually a CSRC from an RTP packet. | |
bool | IsSender () const |
Returns true if this member is marked as a sender and false if not. | |
bool | IsValidated () const |
Returns true if the participant is validated, which is the case if a number of consecutive RTP packets have been received or if a CNAME item has been received for this participant. | |
bool | IsActive () const |
Returns true if the source was validated and had not yet sent a BYE packet. | |
void | SetProcessedInRTCP (bool v) |
This function is used by the RTCPPacketBuilder class to mark whether this participant's information has been processed in a report block or not. | |
bool | IsProcessedInRTCP () const |
This function is used by the RTCPPacketBuilder class and returns whether this participant has been processed in a report block or not. | |
bool | IsRTPAddressSet () const |
Returns true if the address from which this participant's RTP packets originate has already been set. | |
bool | IsRTCPAddressSet () const |
Returns true if the address from which this participant's RTCP packets originate has already been set. | |
const RTPAddress * | GetRTPDataAddress () const |
Returns the address from which this participant's RTP packets originate. | |
const RTPAddress * | GetRTCPDataAddress () const |
Returns the address from which this participant's RTCP packets originate. | |
bool | ReceivedBYE () const |
Returns true if we received a BYE message for this participant and false otherwise. | |
uint8_t * | GetBYEReason (size_t *len) const |
Returns the reason for leaving contained in the BYE packet of this participant. | |
RTPTime | GetBYETime () const |
Returns the time at which the BYE packet was received. | |
void | SetTimestampUnit (double tsu) |
Sets the value for the timestamp unit to be used in jitter calculations for data received from this participant. | |
double | GetTimestampUnit () const |
Returns the timestamp unit used for this participant. | |
bool | SR_HasInfo () const |
Returns true if an RTCP sender report has been received from this participant. | |
RTPNTPTime | SR_GetNTPTimestamp () const |
Returns the NTP timestamp contained in the last sender report. | |
uint32_t | SR_GetRTPTimestamp () const |
Returns the RTP timestamp contained in the last sender report. | |
uint32_t | SR_GetPacketCount () const |
Returns the packet count contained in the last sender report. | |
uint32_t | SR_GetByteCount () const |
Returns the octet count contained in the last sender report. | |
RTPTime | SR_GetReceiveTime () const |
Returns the time at which the last sender report was received. | |
bool | SR_Prev_HasInfo () const |
Returns true if more than one RTCP sender report has been received. | |
RTPNTPTime | SR_Prev_GetNTPTimestamp () const |
Returns the NTP timestamp contained in the second to last sender report. | |
uint32_t | SR_Prev_GetRTPTimestamp () const |
Returns the RTP timestamp contained in the second to last sender report. | |
uint32_t | SR_Prev_GetPacketCount () const |
Returns the packet count contained in the second to last sender report. | |
uint32_t | SR_Prev_GetByteCount () const |
Returns the octet count contained in the second to last sender report. | |
RTPTime | SR_Prev_GetReceiveTime () const |
Returns the time at which the second to last sender report was received. | |
bool | RR_HasInfo () const |
Returns true if this participant sent a receiver report with information about the reception of our data. | |
double | RR_GetFractionLost () const |
Returns the fraction lost value from the last report. | |
int32_t | RR_GetPacketsLost () const |
Returns the number of lost packets contained in the last report. | |
uint32_t | RR_GetExtendedHighestSequenceNumber () const |
Returns the extended highest sequence number contained in the last report. | |
uint32_t | RR_GetJitter () const |
Returns the jitter value from the last report. | |
uint32_t | RR_GetLastSRTimestamp () const |
Returns the LSR value from the last report. | |
uint32_t | RR_GetDelaySinceLastSR () const |
Returns the DLSR value from the last report. | |
RTPTime | RR_GetReceiveTime () const |
Returns the time at which the last report was received. | |
bool | RR_Prev_HasInfo () const |
Returns true if this participant sent more than one receiver report with information about the reception of our data. | |
double | RR_Prev_GetFractionLost () const |
Returns the fraction lost value from the second to last report. | |
int32_t | RR_Prev_GetPacketsLost () const |
Returns the number of lost packets contained in the second to last report. | |
uint32_t | RR_Prev_GetExtendedHighestSequenceNumber () const |
Returns the extended highest sequence number contained in the second to last report. | |
uint32_t | RR_Prev_GetJitter () const |
Returns the jitter value from the second to last report. | |
uint32_t | RR_Prev_GetLastSRTimestamp () const |
Returns the LSR value from the second to last report. | |
uint32_t | RR_Prev_GetDelaySinceLastSR () const |
Returns the DLSR value from the second to last report. | |
RTPTime | RR_Prev_GetReceiveTime () const |
Returns the time at which the second to last report was received. | |
bool | INF_HasSentData () const |
Returns true if validated RTP packets have been received from this participant. | |
int32_t | INF_GetNumPacketsReceived () const |
Returns the total number of received packets from this participant. | |
uint32_t | INF_GetBaseSequenceNumber () const |
Returns the base sequence number of this participant. | |
uint32_t | INF_GetExtendedHighestSequenceNumber () const |
Returns the extended highest sequence number received from this participant. | |
uint32_t | INF_GetJitter () const |
Returns the current jitter value for this participant. | |
RTPTime | INF_GetLastMessageTime () const |
Returns the time at which something was last heard from this member. | |
RTPTime | INF_GetLastRTPPacketTime () const |
Returns the time at which the last RTP packet was received. | |
double | INF_GetEstimatedTimestampUnit () const |
Returns the estimated timestamp unit, calculated from two consecutive sender reports. | |
uint32_t | INF_GetNumPacketsReceivedInInterval () const |
Returns the number of packets received since a new interval was started with INF_StartNewInterval. | |
uint32_t | INF_GetSavedExtendedSequenceNumber () const |
Returns the extended sequence number which was stored by the INF_StartNewInterval call. | |
void | INF_StartNewInterval () |
Starts a new interval to count received packets in; this also stores the current extended highest sequence number to be able to calculate the packet loss during the interval. | |
RTPTime | INF_GetRoundtripTime () const |
Estimates the round trip time by using the LSR and DLSR info from the last receiver report. | |
RTPTime | INF_GetLastSDESNoteTime () const |
Returns the time at which the last SDES NOTE item was received. | |
uint8_t * | SDES_GetCNAME (size_t *len) const |
Returns a pointer to the SDES CNAME item of this participant and stores its length in len . | |
uint8_t * | SDES_GetName (size_t *len) const |
Returns a pointer to the SDES name item of this participant and stores its length in len . | |
uint8_t * | SDES_GetEMail (size_t *len) const |
Returns a pointer to the SDES e-mail item of this participant and stores its length in len . | |
uint8_t * | SDES_GetPhone (size_t *len) const |
Returns a pointer to the SDES phone item of this participant and stores its length in len . | |
uint8_t * | SDES_GetLocation (size_t *len) const |
Returns a pointer to the SDES location item of this participant and stores its length in len . | |
uint8_t * | SDES_GetTool (size_t *len) const |
Returns a pointer to the SDES tool item of this participant and stores its length in len . | |
uint8_t * | SDES_GetNote (size_t *len) const |
Returns a pointer to the SDES note item of this participant and stores its length in len . | |
void | SDES_GotoFirstPrivateValue () |
Starts the iteration over the stored SDES private item prefixes and their associated values. | |
bool | SDES_GetNextPrivateValue (uint8_t **prefix, size_t *prefixlen, uint8_t **value, size_t *valuelen) |
If available, returns true and stores the next SDES private item prefix in prefix and its length in prefixlen ; the associated value and its length are then stored in value and valuelen . | |
bool | SDES_GetPrivateValue (uint8_t *prefix, size_t prefixlen, uint8_t **value, size_t *valuelen) const |
Looks for the entry which corresponds to the SDES private item prefix prefix with length prefixlen ; if found, the function returns true and stores the associated value and its length in value and valuelen respectively. |
const RTPAddress* RTPSourceData::GetRTPDataAddress | ( | ) | const [inline] |
Returns the address from which this participant's RTP packets originate. If the address has been set and the returned value is NULL, this indicates that it originated from the local participant.
const RTPAddress* RTPSourceData::GetRTCPDataAddress | ( | ) | const [inline] |
Returns the address from which this participant's RTCP packets originate. If the address has been set and the returned value is NULL, this indicates that it originated from the local participant.
uint8_t* RTPSourceData::GetBYEReason | ( | size_t * | len | ) | const [inline] |
Returns the reason for leaving contained in the BYE packet of this participant. The length of the reason is stored in len
.
void RTPSourceData::SetTimestampUnit | ( | double | tsu | ) | [inline] |
Sets the value for the timestamp unit to be used in jitter calculations for data received from this participant. If not set, the library uses an approximation for the timestamp unit which is calculated from two consecutive RTCP sender reports. The timestamp unit is defined as a time interval divided by the corresponding timestamp interval. For 8000 Hz audio this would be 1/8000. For video, often a timestamp unit of 1/90000 is used.