forward fraction lost from subscriber to publisher (#142)

Co-authored-by: cnderrauber <zengjie9004@gmail.com>
This commit is contained in:
cnderrauber
2021-10-10 21:56:13 -07:00
committed by GitHub
co-authored by cnderrauber
parent 72bd394106
commit 8ff18e0326
3 changed files with 17 additions and 10 deletions
+3
View File
@@ -298,6 +298,9 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
onclose()
}
})
t.receiver.OnFractionLostFB(func(lost uint8) {
buff.SetLastFractionLostReport(lost)
})
t.params.Stats.AddPublishedTrack(t.kind.String())
}
t.receiver.AddUpTrack(track, buff, t.shouldStartWithBestQuality())