mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
client: decode and encode RTP/RTCP packets
This commit is contained in:
@@ -355,7 +355,8 @@ func (ss *ServerSession) run() {
|
||||
for trackID, track := range ss.announcedTracks {
|
||||
rr := track.rtcpReceiver.Report(now)
|
||||
if rr != nil {
|
||||
ss.WritePacketRTCP(trackID, rr)
|
||||
byts, _ := rr.Marshal()
|
||||
ss.WritePacketRTCP(trackID, byts)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user