rtp: added field RTT to RTCP statistics
This commit is contained in:
parent
edf3cf5430
commit
2ca28e292b
2 changed files with 9 additions and 6 deletions
|
@ -175,15 +175,16 @@ struct rtcp_msg {
|
|||
/** RTCP Statistics */
|
||||
struct rtcp_stats {
|
||||
struct {
|
||||
uint32_t sent;
|
||||
int lost;
|
||||
uint32_t jit;
|
||||
uint32_t sent; /**< Tx RTP Packets */
|
||||
int lost; /**< Tx RTP Packets Lost */
|
||||
uint32_t jit; /**< Tx Inter-arrival Jitter in [us] */
|
||||
} tx;
|
||||
struct {
|
||||
uint32_t sent;
|
||||
int lost;
|
||||
uint32_t jit;
|
||||
uint32_t sent; /**< Rx RTP Packets */
|
||||
int lost; /**< Rx RTP Packets Lost */
|
||||
uint32_t jit; /**< Rx Inter-Arrival Jitter in [us] */
|
||||
} rx;
|
||||
uint32_t rtt; /**< Current Round-Trip Time in [us] */
|
||||
};
|
||||
|
||||
struct sa;
|
||||
|
|
|
@ -603,6 +603,8 @@ int rtcp_stats(struct rtp_sock *rs, uint32_t ssrc, struct rtcp_stats *stats)
|
|||
stats->tx.lost = mbr->cum_lost;
|
||||
stats->tx.jit = mbr->jit;
|
||||
|
||||
stats->rtt = mbr->rtt;
|
||||
|
||||
if (!mbr->s) {
|
||||
memset(&stats->rx, 0, sizeof(stats->rx));
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue