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>
12 lines
168 B
Go
12 lines
168 B
Go
package forward
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Dest is a protocol-specific forward destination.
|
|
type Dest interface {
|
|
Run(context.Context) error
|
|
OutboundBytes() uint64
|
|
}
|