mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: decode and encode RTP/RTCP packets
This commit is contained in:
@@ -1608,9 +1608,7 @@ func (c *Client) doPlay(ra *headers.Range, isSwitchingProtocol bool) (*base.Resp
|
||||
|
||||
// open the firewall by sending packets to the counterpart.
|
||||
for _, cct := range c.tracks {
|
||||
byts, _ := (&rtp.Packet{
|
||||
Header: rtp.Header{Version: 2},
|
||||
}).Marshal()
|
||||
byts, _ := (&rtp.Packet{Header: rtp.Header{Version: 2}}).Marshal()
|
||||
cct.udpRTPListener.write(byts)
|
||||
|
||||
byts, _ = (&rtcp.ReceiverReport{}).Marshal()
|
||||
|
Reference in New Issue
Block a user