mirror of
https://github.com/aler9/gortsplib
synced 2025-10-09 00:50:24 +08:00
simplify UDP configuration
This commit is contained in:
@@ -20,13 +20,13 @@ type ServerConf struct {
|
||||
// a TLS configuration to accept TLS (RTSPS) connections.
|
||||
TLSConfig *tls.Config
|
||||
|
||||
// a ServerUDPListener to send and receive UDP/RTP packets.
|
||||
// If UDPRTPListener and UDPRTCPListener are not null, the server can accept and send UDP streams.
|
||||
UDPRTPListener *ServerUDPListener
|
||||
// a port to send and receive UDP/RTP packets.
|
||||
// If UDPRTPAddress and UDPRTCPAddress are != "", the server can accept and send UDP streams.
|
||||
UDPRTPAddress string
|
||||
|
||||
// a ServerUDPListener to send and receive UDP/RTCP packets.
|
||||
// If UDPRTPListener and UDPRTCPListener are not null, the server can accept and send UDP streams.
|
||||
UDPRTCPListener *ServerUDPListener
|
||||
// a port to send and receive UDP/RTCP packets.
|
||||
// If UDPRTPAddress and UDPRTCPAddress are != "", the server can accept and send UDP streams.
|
||||
UDPRTCPAddress string
|
||||
|
||||
// timeout of read operations.
|
||||
// It defaults to 10 seconds
|
||||
|
Reference in New Issue
Block a user