client

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnounceReq added in v0.14.0

type AnnounceReq struct {
	Client   Client
	PathName string
	Tracks   gortsplib.Tracks
	Data     interface{}
	Res      chan AnnounceRes
}

AnnounceReq is a announce request.

type AnnounceRes added in v0.14.0

type AnnounceRes struct {
	Path Path
	Err  error
}

AnnounceRes is a announce response.

type Client

type Client interface {
	IsClient()
	IsSource()
	Close()
	Authenticate([]headers.AuthMethod,
		string, []interface{},
		string, string, interface{}) error
	OnFrame(int, gortsplib.StreamType, []byte)
}

Client is implemented by all client*.

type DescribeReq added in v0.14.0

type DescribeReq struct {
	Client   Client
	PathName string
	Data     *base.Request
	Res      chan DescribeRes
}

DescribeReq is a describe request.

type DescribeRes added in v0.14.0

type DescribeRes struct {
	SDP      []byte
	Redirect string
	Err      error
}

DescribeRes is a describe response.

type ErrAuthCritical

type ErrAuthCritical struct {
	*base.Response
}

ErrAuthCritical is a critical authentication error.

func (ErrAuthCritical) Error

func (ErrAuthCritical) Error() string

Error implements the error interface.

type ErrAuthNotCritical

type ErrAuthNotCritical struct {
	*base.Response
}

ErrAuthNotCritical is a non-critical authentication error.

func (ErrAuthNotCritical) Error

func (ErrAuthNotCritical) Error() string

Error implements the error interface.

type ErrNoOnePublishing added in v0.15.0

type ErrNoOnePublishing struct {
	PathName string
}

ErrNoOnePublishing is a "no one is publishing" error.

func (ErrNoOnePublishing) Error added in v0.15.0

func (e ErrNoOnePublishing) Error() string

Error implements the error interface.

type Path

type Path interface {
	Name() string
	Conf() *conf.PathConf
	OnClientRemove(RemoveReq)
	OnClientPlay(PlayReq)
	OnClientRecord(RecordReq)
	OnClientPause(PauseReq)
}

Path is implemented by path.Path.

type PauseReq added in v0.14.0

type PauseReq struct {
	Client Client
	Res    chan struct{}
}

PauseReq is a pause request.

type PlayReq added in v0.14.0

type PlayReq struct {
	Client Client
	Res    chan PlayRes
}

PlayReq is a play request.

type PlayRes added in v0.15.1

type PlayRes struct {
	TrackInfos []streamproc.TrackInfo
}

PlayRes is a play response.

type RecordReq added in v0.14.0

type RecordReq struct {
	Client Client
	Res    chan RecordRes
}

RecordReq is a record request.

type RecordRes added in v0.15.1

type RecordRes struct {
	SP  *streamproc.StreamProc
	Err error
}

RecordRes is a record response.

type RemoveReq added in v0.14.0

type RemoveReq struct {
	Client Client
	Res    chan struct{}
}

RemoveReq is a remove request.

type SetupPlayReq added in v0.14.0

type SetupPlayReq struct {
	Client   Client
	PathName string
	Data     interface{}
	Res      chan SetupPlayRes
}

SetupPlayReq is a setup/play request.

type SetupPlayRes added in v0.14.0

type SetupPlayRes struct {
	Path   Path
	Tracks gortsplib.Tracks
	Err    error
}

SetupPlayRes is a setup/play response.

Jump to

Keyboard shortcuts

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