Keep track of expected RTP time stamp and control drift. (#1681)

* Keep track of expected RTP time stamp and control drift.

- Use monotonic clock in RTCP Sender Report and packet times
- Keep the time stamp close to expected time stamp on layer/SSRC
  switches

* clean up

* fix test compile

* more test compile failures
This commit is contained in:
Raja Subramanian
2023-05-04 13:00:57 +05:30
committed by GitHub
parent 298ebaee78
commit 15078eb9f4
8 changed files with 218 additions and 99 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
package testutils
import (
"time"
"github.com/pion/rtp"
"github.com/pion/webrtc/v3"
@@ -18,7 +20,7 @@ type TestExtPacketParams struct {
SSRC uint32
PayloadSize int
PaddingSize byte
ArrivalTime int64
ArrivalTime time.Time
VideoLayer buffer.VideoLayer
}