mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
server: fix channel of RTCP packets, avoiding client timeouts
This commit is contained in:
@@ -1212,7 +1212,7 @@ func (sc *ServerConn) backgroundRecord() {
|
||||
now := time.Now()
|
||||
for trackID, track := range sc.announcedTracks {
|
||||
r := track.rtcpReceiver.Report(now)
|
||||
sc.WriteFrame(trackID, StreamTypeRTP, r)
|
||||
sc.WriteFrame(trackID, StreamTypeRTCP, r)
|
||||
}
|
||||
|
||||
case <-sc.backgroundRecordTerminate:
|
||||
|
Reference in New Issue
Block a user