Cache RTPStats and seed on re-use (#1080)
* Cache RTPStats and seed on re-use When a cached down track is re-used, RTPStats was not cached. This caused sender reports getting out-of-sync with the remote side. Cache RTPStats and seed it on re-use. * staticcheck
This commit is contained in:
@@ -176,6 +176,11 @@ type ForwarderState struct {
|
||||
VP8 VP8MungerState
|
||||
}
|
||||
|
||||
func (f ForwarderState) String() string {
|
||||
return fmt.Sprintf("ForwarderState{lTSCalc: %d, rtp: %s, vp8: %s}",
|
||||
f.LastTSCalc, f.RTP.String(), f.VP8.String())
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
type Forwarder struct {
|
||||
|
||||
Reference in New Issue
Block a user