Files
mediamtx/internal/conf/forward.go
T
98ab3009ea support forwarding streams natively (#5558)
It is now possible to define forward destinations for each path configuration. For each destination, the server will create a client that will forward the stream to the intended destination. Supported protocols are RTSP, RTMP, SRT. API and metrics have also been improved to allow monitoring the new forwarding system.

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2026-08-04 21:57:15 +02:00

21 lines
313 B
Go

package conf
import (
"fmt"
)
// Forward is a list of ForwardDest.
type Forward []ForwardDest
// Validate validates the configuration.
func (p Forward) Validate() error {
for i, entry := range p {
err := entry.Validate()
if err != nil {
return fmt.Errorf("entry %d: %w", i, err)
}
}
return nil
}