mirror of
https://github.com/aler9/gortsplib
synced 2025-10-18 21:14:38 +08:00
ConnClient: add automatic port selection
This commit is contained in:
@@ -36,7 +36,7 @@ func main() {
|
||||
var rtcpReads []gortsplib.UDPReadFunc
|
||||
|
||||
for _, track := range tracks {
|
||||
rtpRead, rtcpRead, _, err := conn.SetupUDP(u, track, 9000+track.Id*2, 9001+track.Id*2)
|
||||
rtpRead, rtcpRead, _, err := conn.SetupUDP(u, track, 0, 0)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user