Skip to content

Commit

Permalink
rename RTPJitter into RTPPacketsJitter (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Dec 25, 2024
1 parent 87c6d81 commit 5d44205
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -2159,7 +2159,7 @@ func (c *Client) Stats() *ClientStats {
}
return time.Time{}
}(),
RTPJitter: func() float64 {
RTPPacketsJitter: func() float64 {
if recvStats != nil {
return recvStats.Jitter
}
Expand Down
4 changes: 2 additions & 2 deletions server_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -528,7 +528,7 @@ func (ss *ServerSession) Stats() *StatsSession {
}
return time.Time{}
}(),
RTPJitter: func() float64 {
RTPPacketsJitter: func() float64 {
if recvStats != nil {
return recvStats.Jitter
}
Expand Down
4 changes: 2 additions & 2 deletions stats_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5d44205

Please sign in to comment.