Documentation
¶
Overview ¶
Package srt holds the SRT dialer and listener of mediactl: a dialer calls for a stream in a mode, named in the access control syntax of the stream ID, a listener takes the callers of a passphrase, passes every published stream to the readers of the same stream itself and returns the other callers, for mediactl.Serve to echo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dialer ¶
Dialer calls SRT listeners for a stream in a mode, encrypted with the passphrase unless it is empty.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener takes the SRT callers at an address. A publisher's stream goes to the readers of the same stream inside the listener; Accept returns the other callers, as gosrt.Conns.
func Listen ¶
func Listen(address, passphrase string, log logging.LeveledLogger) (*Listener, error)
Listen takes SRT callers at an address; a caller with an encrypted stream must know the passphrase. The callers the listener refuses or serves itself are reported to the logger, unless nil.