clientman

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Close

func (cm *ClientManager) Close()

Close closes 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.

func (*ClientManager) OnClientDescribe

func (cm *ClientManager) OnClientDescribe(c *client.Client, pathName string, req *base.Request) (client.Path, error)

OnClientDescribe is called by client.Client.

func (*ClientManager) OnClientSetupPlay

func (cm *ClientManager) OnClientSetupPlay(c *client.Client, pathName string, trackID int, req *base.Request) (client.Path, error)

OnClientSetupPlay is called by client.Client.

type Parent

type Parent interface {
	Log(logger.Level, string, ...interface{})
}

Parent is implemented by program.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL