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:
+10
-4
@@ -2,6 +2,7 @@ package sfu
|
||||
|
||||
import (
|
||||
"github.com/livekit/livekit-server/pkg/sfu/buffer"
|
||||
"github.com/livekit/protocol/logger"
|
||||
)
|
||||
|
||||
//
|
||||
@@ -39,13 +40,18 @@ type RTPMungerParams struct {
|
||||
}
|
||||
|
||||
type RTPMunger struct {
|
||||
logger logger.Logger
|
||||
|
||||
RTPMungerParams
|
||||
}
|
||||
|
||||
func NewRTPMunger() *RTPMunger {
|
||||
return &RTPMunger{RTPMungerParams: RTPMungerParams{
|
||||
missingSNs: make(map[uint16]uint16, 10),
|
||||
}}
|
||||
func NewRTPMunger(logger logger.Logger) *RTPMunger {
|
||||
return &RTPMunger{
|
||||
logger: logger,
|
||||
RTPMungerParams: RTPMungerParams{
|
||||
missingSNs: make(map[uint16]uint16, 10),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (r *RTPMunger) GetParams() RTPMungerParams {
|
||||
|
||||
Reference in New Issue
Block a user