Skip to content

Commit

Permalink
fix: Need a change to generate a new package
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-tutor committed Jun 5, 2024
1 parent 1263b78 commit 7cec89b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions vpx_rtp/received_rtp_stream_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ class ReceivedRtpStreamStatistics:
_last_arrival: int
_last_timestamp: int

@property
def jitter(self) -> int:
"""
An estimate of the statistical variance of the RTP data packet
interarrival time, measured in timestamp units and expressed as an
unsigned integer.
"""
return self._jitter_q4 >> 4

@property
def packets_expected(self) -> int:
"""
Expand All @@ -45,6 +36,15 @@ def packets_lost(self) -> int:
"""
return self.packets_expected - self.packets_received

@property
def jitter(self) -> int:
"""
An estimate of the statistical variance of the RTP data packet
interarrival time, measured in timestamp units and expressed as an
unsigned integer.
"""
return self._jitter_q4 >> 4


def _get_arrival_number() -> int:
return int(time.time() * VIDEO_CLOCK_RATE)
Expand Down

0 comments on commit 7cec89b

Please sign in to comment.