rename RTPJitter into RTPPacketsJitter (#669)

This commit is contained in:
Alessandro Ros
2024-12-25 15:14:40 +01:00
committed by GitHub
parent 87c6d81053
commit 5d44205cbe
3 changed files with 6 additions and 6 deletions

View File

@@ -2048,7 +2048,7 @@ func (c *Client) Stats() *ClientStats {
}
return v
}(),
RTPJitter: func() float64 {
RTPPacketsJitter: func() float64 {
v := float64(0)
n := float64(0)
for _, sm := range c.setuppedMedias {
@@ -2159,7 +2159,7 @@ func (c *Client) Stats() *ClientStats {
}
return time.Time{}
}(),
RTPJitter: func() float64 {
RTPPacketsJitter: func() float64 {
if recvStats != nil {
return recvStats.Jitter
}

View File

@@ -411,7 +411,7 @@ func (ss *ServerSession) Stats() *StatsSession {
}
return v
}(),
RTPJitter: func() float64 {
RTPPacketsJitter: func() float64 {
v := float64(0)
n := float64(0)
for _, sm := range ss.setuppedMedias {
@@ -528,7 +528,7 @@ func (ss *ServerSession) Stats() *StatsSession {
}
return time.Time{}
}(),
RTPJitter: func() float64 {
RTPPacketsJitter: func() float64 {
if recvStats != nil {
return recvStats.Jitter
}

View File

@@ -16,7 +16,7 @@ type StatsSessionFormat struct {
// number of lost RTP packets
RTPPacketsLost uint64
// mean jitter of received RTP packets
RTPJitter float64
RTPPacketsJitter float64
// local SSRC
LocalSSRC uint32
// remote SSRC
@@ -63,7 +63,7 @@ type StatsSession struct {
// number of RTP packets that could not be processed
RTPPacketsInError uint64
// mean jitter of received RTP packets
RTPJitter float64
RTPPacketsJitter float64
// number of RTCP packets correctly received and processed
RTCPPacketsReceived uint64
// number of sent RTCP packets