Documentation
¶
Overview ¶
Package rtmp contains a RTMP server.
Index ¶
- Variables
- type Server
- func (s *Server) APIConnsGet(uuid uuid.UUID) (*defs.APIRTMPConn, error)
- func (s *Server) APIConnsKick(uuid uuid.UUID) error
- func (s *Server) APIConnsList() (*defs.APIRTMPConnList, error)
- func (s *Server) Close()
- func (s *Server) Initialize() error
- func (s *Server) Log(level logger.Level, format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnNotFound = errors.New("connection not found")
ErrConnNotFound is returned when a connection is not found.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Address string
DumpPackets bool
ReadTimeout conf.Duration
WriteTimeout conf.Duration
Encryption bool
ServerCert string
ServerKey string
RTSPAddress string
TrustedProxies conf.IPNetworks
RunOnConnect string
RunOnConnectRestart bool
RunOnDisconnect string
ExternalCmdPool *externalcmd.Pool
Metrics serverMetrics
PathManager serverPathManager
Parent serverParent
// contains filtered or unexported fields
}
Server is a RTMP server.
func (*Server) APIConnsGet ¶
APIConnsGet implements defs.APIRTMPServer.
func (*Server) APIConnsKick ¶
APIConnsKick implements defs.APIRTMPServer.
func (*Server) APIConnsList ¶
func (s *Server) APIConnsList() (*defs.APIRTMPConnList, error)
APIConnsList implements defs.APIRTMPServer.
Click to show internal directories.
Click to hide internal directories.