Skip to content

Commit 58e6f6d

Browse files
committed
fix: use separate udp ports for publishers and readers
1 parent 30624e6 commit 58e6f6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rtsp_client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ func (c *rtspClient) run(wg sync.WaitGroup) {
276276
"RTP/AVP",
277277
"unicast",
278278
fmt.Sprintf("client_port=%d-%d", clientPort1, clientPort2),
279-
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
279+
// use two fake server ports, since we do not want to receive feedback
280+
// from the client
281+
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort + 2, c.p.rtcpPort + 2),
280282
"ssrc=1234ABCD",
281283
}, ";"),
282284
"Session": "12345678",

0 commit comments

Comments
 (0)