mirror of
https://github.com/aler9/gortsplib
synced 2025-10-25 08:10:34 +08:00
add UDPReadBufferSize option (#857)
This commit is contained in:
@@ -430,6 +430,10 @@ type Client struct {
|
||||
// at least a packet within this timeout, otherwise it switches to TCP.
|
||||
// It defaults to 3 seconds.
|
||||
InitialUDPReadTimeout time.Duration
|
||||
// Size of the UDP read buffer.
|
||||
// This can be increased to reduce packet losses.
|
||||
// It defaults to the operating system default value.
|
||||
UDPReadBufferSize int
|
||||
// Size of the queue of outgoing packets.
|
||||
// It defaults to 256.
|
||||
WriteQueueSize int
|
||||
|
||||
Reference in New Issue
Block a user