Skip to content

Commit

Permalink
fix: use separate udp ports for publishers and readers
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Dec 29, 2019
1 parent 30624e6 commit 58e6f6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rtsp_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ func (c *rtspClient) run(wg sync.WaitGroup) {
"RTP/AVP",
"unicast",
fmt.Sprintf("client_port=%d-%d", clientPort1, clientPort2),
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
// use two fake server ports, since we do not want to receive feedback
// from the client
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort + 2, c.p.rtcpPort + 2),
"ssrc=1234ABCD",
}, ";"),
"Session": "12345678",
Expand Down

0 comments on commit 58e6f6d

Please sign in to comment.