Documentation ¶
Index ¶
- type Server
- func (s *Server) Close()
- func (s *Server) CloseClientStream(proxyId int32)
- func (s *Server) OnConnClose(ctx *gortsplib.ServerHandlerOnConnCloseCtx)
- func (s *Server) OnConnOpen(ctx *gortsplib.ServerHandlerOnConnOpenCtx)
- func (s *Server) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base.Response, *gortsplib.ServerStream, error)
- func (s *Server) OnPlay(ctx *gortsplib.ServerHandlerOnPlayCtx) (*base.Response, error)
- func (s *Server) OnSessionClose(ctx *gortsplib.ServerHandlerOnSessionCloseCtx)
- func (s *Server) OnSessionOpen(ctx *gortsplib.ServerHandlerOnSessionOpenCtx)
- func (s *Server) OnSetup(ctx *gortsplib.ServerHandlerOnSetupCtx) (*base.Response, *gortsplib.ServerStream, error)
- func (s *Server) Run()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // Log is the logger. Log *logger.Logger // PG is the postgres client. PG *pg.PG // contains filtered or unexported fields }
func (*Server) CloseClientStream ¶
CloseClientStream closes a client stream. Does not panic if stream not found.
func (*Server) OnConnClose ¶
func (s *Server) OnConnClose(ctx *gortsplib.ServerHandlerOnConnCloseCtx)
OnConnClose is called when a connections is closed.
func (*Server) OnConnOpen ¶
func (s *Server) OnConnOpen(ctx *gortsplib.ServerHandlerOnConnOpenCtx)
OnConnOpen is called when a connection is opened.
func (*Server) OnDescribe ¶
func (s *Server) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base.Response, *gortsplib.ServerStream, error)
OnDescribe is called when receiving a DESCRIBE request.
func (*Server) OnSessionClose ¶
func (s *Server) OnSessionClose(ctx *gortsplib.ServerHandlerOnSessionCloseCtx)
OnSessionClose is called when a session is closed.
func (*Server) OnSessionOpen ¶
func (s *Server) OnSessionOpen(ctx *gortsplib.ServerHandlerOnSessionOpenCtx)
OnSessionOpen is called when a session is opened.
Click to show internal directories.
Click to hide internal directories.