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
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
DescribeRes is a describe response.
type ErrAuthCritical ¶
ErrAuthCritical is a critical authentication error.
func (ErrAuthCritical) Error ¶
func (ErrAuthCritical) Error() string
Error implements the error interface.
type ErrAuthNotCritical ¶
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 PlayRes ¶ added in v0.15.1
type PlayRes struct {
TrackInfos []streamproc.TrackInfo
}
PlayRes is a play response.
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.