mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-28 22:12:00 -08:00
fix: send right server ports when playing via udp
This commit is contained in:
parent
c90d259913
commit
a48bac0f1b
1 changed files with 1 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue