Versions in this module Expand all Collapse all v4 v4.1.4 Mar 6, 2023 Changes in this version + var RTSPPlugin = InstallPlugin(rtspConfig) + type RTSPConfig struct + ListenAddr string + PullProtocol string + RTCPAddr string + ReadBufferSize int + UDPAddr string + 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 struct + type RTSPPublisher struct + Tracks map[*media.Media]common.AVTrack + func (p *RTSPPublisher) OnPacket(m *media.Media, f format.Format, pack *rtp.Packet) + func (p *RTSPPublisher) SetTracks() error + type RTSPPuller struct + func (p *RTSPPuller) Connect() error + func (p *RTSPPuller) Pull() (err error) + type RTSPPusher struct + func (p *RTSPPusher) Connect() error + func (p *RTSPPusher) OnEvent(event any) + func (p *RTSPPusher) Push() (err error) + type RTSPSubscriber struct + func (s *RTSPSubscriber) OnEvent(event any)