don't send datatrack info to client (#492)

* don't send datatrack info to client
This commit is contained in:
cnderrauber
2022-03-08 17:05:26 +08:00
committed by GitHub
parent d57f76fbef
commit 128199e634
11 changed files with 47 additions and 28 deletions
+1
View File
@@ -558,6 +558,7 @@ func (d *DownTrack) CloseWithFlush(flush bool) {
// Idea here is to send blank 1x1 key frames to flush the decoder buffer at the remote end.
// Otherwise, with transceiver re-use last frame from previous stream is held in the
// display buffer and there could be a brief moment where the previous stream is displayed.
d.logger.Infow("close downtrack", "peerID", d.peerID, "trackID", d.id, "flushBlankFrame", flush)
if flush {
_ = d.writeBlankFrameRTP()
}