Skip to content

Commit 0fcdc79

Browse files
committed
fix: send proper SETUP response when publishing or receiving via udp
1 parent 888691d commit 0fcdc79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,10 @@ func (c *client) handleRequest(req *rtsp.Request) bool {
435435
Headers: map[string]string{
436436
"CSeq": cseq,
437437
"Transport": strings.Join([]string{
438-
"RTP/AVP",
438+
"RTP/AVP/UDP",
439439
"unicast",
440440
fmt.Sprintf("client_port=%d-%d", rtpPort, rtcpPort),
441441
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
442-
"ssrc=1234ABCD",
443442
}, ";"),
444443
"Session": "12345678",
445444
},
@@ -559,11 +558,10 @@ func (c *client) handleRequest(req *rtsp.Request) bool {
559558
Headers: map[string]string{
560559
"CSeq": cseq,
561560
"Transport": strings.Join([]string{
562-
"RTP/AVP",
561+
"RTP/AVP/UDP",
563562
"unicast",
564563
fmt.Sprintf("client_port=%d-%d", rtpPort, rtcpPort),
565564
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
566-
"ssrc=1234ABCD",
567565
}, ";"),
568566
"Session": "12345678",
569567
},

0 commit comments

Comments
 (0)