Browse Source

fix: send proper SETUP response when publishing or receiving via udp

pull/2/head v0.3.1
aler9 6 years ago
parent
commit
0fcdc79b1d
  1. 6
      client.go

6
client.go

@ -435,11 +435,10 @@ func (c *client) handleRequest(req *rtsp.Request) bool { @@ -435,11 +435,10 @@ func (c *client) handleRequest(req *rtsp.Request) bool {
Headers: map[string]string{
"CSeq": cseq,
"Transport": strings.Join([]string{
"RTP/AVP",
"RTP/AVP/UDP",
"unicast",
fmt.Sprintf("client_port=%d-%d", rtpPort, rtcpPort),
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
"ssrc=1234ABCD",
}, ";"),
"Session": "12345678",
},
@ -559,11 +558,10 @@ func (c *client) handleRequest(req *rtsp.Request) bool { @@ -559,11 +558,10 @@ func (c *client) handleRequest(req *rtsp.Request) bool {
Headers: map[string]string{
"CSeq": cseq,
"Transport": strings.Join([]string{
"RTP/AVP",
"RTP/AVP/UDP",
"unicast",
fmt.Sprintf("client_port=%d-%d", rtpPort, rtcpPort),
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
"ssrc=1234ABCD",
}, ";"),
"Session": "12345678",
},

Loading…
Cancel
Save