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
@@ -5,6 +5,7 @@ import (
"time"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/protocol/utils"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v3"
@@ -21,6 +22,7 @@ type ConnectionStatsParams struct {
CodecType webrtc.RTPCodecType
GetTotalBytes func() uint64
GetIsReducedQuality func() bool
Logger logger.Logger
}
type ConnectionStats struct {