@@ -28,6 +28,7 @@ import (
2828
2929 "github.com/livekit/media-sdk/jitter"
3030 "github.com/livekit/mediatransportutil"
31+ "github.com/livekit/mediatransportutil/pkg/latency"
3132 "github.com/livekit/protocol/logger"
3233 "github.com/livekit/protocol/utils/mono"
3334 "github.com/livekit/protocol/utils/rtputil"
@@ -101,7 +102,7 @@ type TrackSynchronizer struct {
101102
102103 nextPTSAdjustmentAt time.Time
103104
104- propagationDelayEstimator * OWDEstimator
105+ propagationDelayEstimator * latency. OWDEstimator
105106 totalStartTimeAdjustment time.Duration
106107 startTimeAdjustResidual time.Duration
107108 initialized bool
@@ -127,7 +128,7 @@ func newTrackSynchronizer(s *Synchronizer, track TrackRemote) *TrackSynchronizer
127128 oldPacketThreshold : s .config .OldPacketThreshold ,
128129 enableStartGate : s .config .EnableStartGate ,
129130 nextPTSAdjustmentAt : mono .Now (),
130- propagationDelayEstimator : NewOWDEstimator (OWDEstimatorParamsDefault ),
131+ propagationDelayEstimator : latency . NewOWDEstimator (latency . OWDEstimatorParamsDefault ),
131132 maxMediaRunningTimeDelay : s .config .MaxMediaRunningTimeDelay ,
132133 lastPTSAdjustedLogBucket : math .MaxInt64 ,
133134 }
0 commit comments