clientrtmp

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a RTMP client.

func New

func New(
	rtspPort int,
	readTimeout time.Duration,
	writeTimeout time.Duration,
	readBufferCount int,
	runOnConnect string,
	runOnConnectRestart bool,
	wg *sync.WaitGroup,
	stats *stats.Stats,
	conn *rtmputils.Conn,
	parent Parent) *Client

New allocates a Client.

func (*Client) Authenticate

func (c *Client) Authenticate(authMethods []headers.AuthMethod,
	pathName string, ips []interface{},
	user string, pass string, req interface{}) error

Authenticate performs an authentication.

func (*Client) Close

func (c *Client) Close()

Close closes a Client.

func (*Client) IsClient

func (c *Client) IsClient()

IsClient implements client.Client.

func (*Client) IsSource

func (c *Client) IsSource()

IsSource implements path.source.

func (*Client) OnIncomingFrame

func (c *Client) OnIncomingFrame(trackID int, streamType gortsplib.StreamType, buf []byte)

OnIncomingFrame implements path.Reader.

type Parent

type Parent interface {
	Log(logger.Level, string, ...interface{})
	OnClientClose(client.Client)
	OnClientSetupPlay(client.SetupPlayReq)
	OnClientAnnounce(client.AnnounceReq)
}

Parent is implemented by clientman.ClientMan.

Jump to

Keyboard shortcuts

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