Documentation
¶
Index ¶
- type ClientManager
- func (cm *ClientManager) Close()
- func (cm *ClientManager) Log(level logger.Level, format string, args ...interface{})
- func (cm *ClientManager) OnClientAnnounce(c *client.Client, pathName string, tracks gortsplib.Tracks, req *base.Request) (client.Path, error)
- func (cm *ClientManager) OnClientClose(c *client.Client)
- func (cm *ClientManager) OnClientDescribe(c *client.Client, pathName string, req *base.Request) (client.Path, error)
- func (cm *ClientManager) OnClientSetupPlay(c *client.Client, pathName string, trackID int, req *base.Request) (client.Path, error)
- type Parent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientManager ¶
type ClientManager struct {
// contains filtered or unexported fields
}
ClientManager is a client.Client manager.
func New ¶
func New( rtspPort int, readTimeout time.Duration, runOnConnect string, runOnConnectRestart bool, protocols map[base.StreamProtocol]struct{}, stats *stats.Stats, pathMan *pathman.PathManager, serverPlain *serverplain.Server, serverTLS *servertls.Server, parent Parent) *ClientManager
New allocates a ClientManager.
func (*ClientManager) Log ¶
func (cm *ClientManager) Log(level logger.Level, format string, args ...interface{})
Log is the main logging function.
func (*ClientManager) OnClientAnnounce ¶
func (cm *ClientManager) OnClientAnnounce(c *client.Client, pathName string, tracks gortsplib.Tracks, req *base.Request) (client.Path, error)
OnClientAnnounce is called by client.Client.
func (*ClientManager) OnClientClose ¶
func (cm *ClientManager) OnClientClose(c *client.Client)
OnClientClose is called by client.Client.
Click to show internal directories.
Click to hide internal directories.