Skip to content

Commit a48bac0

Browse files
committed
fix: send right server ports when playing via udp
1 parent c90d259 commit a48bac0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,7 @@ func (c *client) handleRequest(req *rtsp.Request) (*rtsp.Response, error) {
491491
"RTP/AVP",
492492
"unicast",
493493
fmt.Sprintf("client_port=%d-%d", rtpPort, rtcpPort),
494-
// use two fake server ports, since we do not want to receive feedback
495-
// from the client
496-
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort+2, c.p.rtcpPort+2),
494+
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
497495
"ssrc=1234ABCD",
498496
}, ";"),
499497
"Session": "12345678",

0 commit comments

Comments
 (0)