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

This commit is contained in:
aler9 2020-01-14 21:33:53 +01:00
parent 888691dec9
commit 0fcdc79b1d

View File

@ -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 {
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",
},