Skip to content

Commit

Permalink
fix: send proper SETUP response when publishing or receiving via udp
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jan 14, 2020
1 parent 888691d commit 0fcdc79
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down Expand Up @@ -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",
},
Expand Down

0 comments on commit 0fcdc79

Please sign in to comment.