Add a resync API to sfu.DownTrack (#389)

* Add a resync API to sfu.DownTrack

Also passing in logger with context into sfu package. More to do here
with proper logging context in all modules, but this is a start

* Remove debug code

* fix tests
This commit is contained in:
Raja Subramanian
2022-01-30 10:59:47 +05:30
committed by GitHub
parent 7ac3631b6c
commit a1f88faed1
10 changed files with 141 additions and 68 deletions
+1
View File
@@ -112,6 +112,7 @@ func NewMediaTrack(track *webrtc.TrackRemote, params MediaTrackParams) *MediaTra
publishing, expected := t.getNumUpTracks()
return publishing < expected
},
Logger: t.params.Logger,
})
t.connectionStats.OnStatsUpdate(func(_cs *connectionquality.ConnectionStats, stat *livekit.AnalyticsStat) {
t.params.Telemetry.TrackStats(livekit.StreamType_UPSTREAM, t.PublisherID(), t.ID(), stat)