Move rate estimation into rtpDownTrack.WriteRTP.

This commit is contained in:
Juliusz Chroboczek
2021-05-11 22:41:56 +02:00
parent c52e1f4ce0
commit d3f53e6ada
4 changed files with 8 additions and 13 deletions
-2
View File
@@ -225,7 +225,6 @@ func sendKeyframe(kf []uint16, track conn.DownTrack, cache *packetcache.Cache) {
if err != nil {
return
}
track.Accumulate(uint32(bytes))
}
}
@@ -321,7 +320,6 @@ func rtpWriterLoop(writer *rtpWriter, up *rtpUpConnection, track *rtpUpTrack) {
if err != nil {
continue
}
l.Accumulate(uint32(bytes))
}
}
}