From 5d44205cbea16bfa0ed902e6f62f23270bb10d2b Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Wed, 25 Dec 2024 15:14:40 +0100 Subject: [PATCH] rename RTPJitter into RTPPacketsJitter (#669) --- client.go | 4 ++-- server_session.go | 4 ++-- stats_session.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client.go b/client.go index ce61cd83..3110087e 100644 --- a/client.go +++ b/client.go @@ -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 } diff --git a/server_session.go b/server_session.go index 3baddb43..59380f13 100644 --- a/server_session.go +++ b/server_session.go @@ -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 } diff --git a/stats_session.go b/stats_session.go index 4c7fe2ec..5540ef62 100644 --- a/stats_session.go +++ b/stats_session.go @@ -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