Documentation ¶
Index ¶
- Variables
- type RTSPConfig
- func (*RTSPConfig) API_Pull(rw http.ResponseWriter, r *http.Request)
- func (*RTSPConfig) API_Push(rw http.ResponseWriter, r *http.Request)
- func (*RTSPConfig) API_list(w http.ResponseWriter, r *http.Request)
- func (conf *RTSPConfig) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (*base.Response, error)
- func (conf *RTSPConfig) OnConnClose(ctx *gortsplib.ServerHandlerOnConnCloseCtx)
- func (conf *RTSPConfig) OnConnOpen(ctx *gortsplib.ServerHandlerOnConnOpenCtx)
- func (conf *RTSPConfig) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base.Response, *gortsplib.ServerStream, error)
- func (conf *RTSPConfig) OnEvent(event any)
- func (conf *RTSPConfig) OnPlay(ctx *gortsplib.ServerHandlerOnPlayCtx) (*base.Response, error)
- func (conf *RTSPConfig) OnRecord(ctx *gortsplib.ServerHandlerOnRecordCtx) (*base.Response, error)
- func (conf *RTSPConfig) OnSessionClose(ctx *gortsplib.ServerHandlerOnSessionCloseCtx)
- func (conf *RTSPConfig) OnSessionOpen(ctx *gortsplib.ServerHandlerOnSessionOpenCtx)
- func (conf *RTSPConfig) OnSetup(ctx *gortsplib.ServerHandlerOnSetupCtx) (*base.Response, *gortsplib.ServerStream, error)
- type RTSPIO
- type RTSPPublisher
- type RTSPPuller
- type RTSPPusher
- type RTSPSubscriber
Constants ¶
This section is empty.
Variables ¶
View Source
var RTSPPlugin = InstallPlugin(rtspConfig)
Functions ¶
This section is empty.
Types ¶
type RTSPConfig ¶
type RTSPConfig struct { config.Publish config.Subscribe config.Pull config.Push ListenAddr string UDPAddr string RTCPAddr string ReadBufferSize int PullProtocol string //tcp、udp、 auto(default) sync.Map }
func (*RTSPConfig) API_Pull ¶
func (*RTSPConfig) API_Pull(rw http.ResponseWriter, r *http.Request)
func (*RTSPConfig) API_Push ¶
func (*RTSPConfig) API_Push(rw http.ResponseWriter, r *http.Request)
func (*RTSPConfig) API_list ¶
func (*RTSPConfig) API_list(w http.ResponseWriter, r *http.Request)
func (*RTSPConfig) OnAnnounce ¶
func (conf *RTSPConfig) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (*base.Response, error)
func (*RTSPConfig) OnConnClose ¶
func (conf *RTSPConfig) OnConnClose(ctx *gortsplib.ServerHandlerOnConnCloseCtx)
func (*RTSPConfig) OnConnOpen ¶
func (conf *RTSPConfig) OnConnOpen(ctx *gortsplib.ServerHandlerOnConnOpenCtx)
func (*RTSPConfig) OnDescribe ¶
func (conf *RTSPConfig) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base.Response, *gortsplib.ServerStream, error)
called after receiving a DESCRIBE request.
func (*RTSPConfig) OnEvent ¶
func (conf *RTSPConfig) OnEvent(event any)
func (*RTSPConfig) OnPlay ¶
func (conf *RTSPConfig) OnPlay(ctx *gortsplib.ServerHandlerOnPlayCtx) (*base.Response, error)
func (*RTSPConfig) OnRecord ¶
func (conf *RTSPConfig) OnRecord(ctx *gortsplib.ServerHandlerOnRecordCtx) (*base.Response, error)
func (*RTSPConfig) OnSessionClose ¶
func (conf *RTSPConfig) OnSessionClose(ctx *gortsplib.ServerHandlerOnSessionCloseCtx)
func (*RTSPConfig) OnSessionOpen ¶
func (conf *RTSPConfig) OnSessionOpen(ctx *gortsplib.ServerHandlerOnSessionOpenCtx)
type RTSPPublisher ¶
func (*RTSPPublisher) SetTracks ¶
func (p *RTSPPublisher) SetTracks() error
type RTSPPuller ¶
type RTSPPuller struct { RTSPPublisher engine.Puller *gortsplib.Client `json:"-"` gortsplib.Transport }
func (*RTSPPuller) Connect ¶
func (p *RTSPPuller) Connect() error
func (*RTSPPuller) Pull ¶
func (p *RTSPPuller) Pull() (err error)
type RTSPPusher ¶
type RTSPPusher struct { RTSPSubscriber engine.Pusher *gortsplib.Client gortsplib.Transport }
func (*RTSPPusher) Connect ¶
func (p *RTSPPusher) Connect() error
func (*RTSPPusher) OnEvent ¶
func (p *RTSPPusher) OnEvent(event any)
func (*RTSPPusher) Push ¶
func (p *RTSPPusher) Push() (err error)
type RTSPSubscriber ¶
type RTSPSubscriber struct { Subscriber RTSPIO }
func (*RTSPSubscriber) OnEvent ¶
func (s *RTSPSubscriber) OnEvent(event any)
Click to show internal directories.
Click to hide internal directories.