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>
21 lines
313 B
Go
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
|
|
}
|