mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
extend udpReadBufferSize to WebRTC UDP sockets (#5130)
Some checks failed
code_lint / go (push) Has been cancelled
code_lint / go_mod (push) Has been cancelled
code_lint / docs (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled
Some checks failed
code_lint / go (push) Has been cancelled
code_lint / go_mod (push) Has been cancelled
code_lint / docs (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled
this allows to decrease packet losses without touching system parameters.
This commit is contained in:
parent
adc4a6ceb6
commit
1ef5db5b3c
11 changed files with 96 additions and 33 deletions
|
|
@ -27,8 +27,9 @@ type parent interface {
|
|||
|
||||
// Source is a WebRTC static source.
|
||||
type Source struct {
|
||||
ReadTimeout conf.Duration
|
||||
Parent parent
|
||||
ReadTimeout conf.Duration
|
||||
UDPReadBufferSize uint
|
||||
Parent parent
|
||||
}
|
||||
|
||||
// Log implements logger.Writer.
|
||||
|
|
@ -58,7 +59,8 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
|
|||
Timeout: time.Duration(s.ReadTimeout),
|
||||
Transport: tr,
|
||||
},
|
||||
Log: s,
|
||||
UDPReadBufferSize: s.UDPReadBufferSize,
|
||||
Log: s,
|
||||
}
|
||||
err = client.Initialize(params.Context)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue