Skip to content

Commit

Permalink
fix: send right server ports when playing via udp
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jan 1, 2020
1 parent c90d259 commit a48bac0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,7 @@ func (c *client) handleRequest(req *rtsp.Request) (*rtsp.Response, error) {
"RTP/AVP",
"unicast",
fmt.Sprintf("client_port=%d-%d", rtpPort, 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),
fmt.Sprintf("server_port=%d-%d", c.p.rtpPort, c.p.rtcpPort),
"ssrc=1234ABCD",
}, ";"),
"Session": "12345678",
Expand Down

0 comments on commit a48bac0

Please sign in to comment.