Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client Rtsp client
func (*Client) LocalAddress ¶
LocalAddress returns the local (our) address
func (*Client) RemoteAddress ¶
RemoteAddress returns the remote address
type Request ¶
type Request struct { Method Method RequestURI string Headers map[string]string Body []byte // contains filtered or unexported fields }
Request RTSP request
func NewRequest ¶
func NewRequest() *Request
type RequestHandler ¶
RequestHandler callback function that gets invoked when a request is received
type Response ¶
type Response struct { Headers map[string]string Body []byte Status Status // contains filtered or unexported fields }
Response RTSP response
func NewResponse ¶
func NewResponse() *Response
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server Server for handling Rtsp control requests
func (*Server) AddHandler ¶
func (r *Server) AddHandler(m Method, rh RequestHandler)
AddHandler registers a handler for a given RTSP method
type Session ¶
type Session struct { Description *sdp.SessionDescription RemotePorts PortSet LocalPorts PortSet DataChan chan []byte // contains filtered or unexported fields }
Session a streaming session
func NewSession ¶
func NewSession(description *sdp.SessionDescription, decrypter Decrypter) *Session
NewSession instantiates a new Session
func (*Session) InitReceive ¶
InitReceive initializes the session to for receiving
func (*Session) StartReceiving ¶
StartReceiving starts a session for listening for data
func (*Session) StartSending ¶
StartSending starts a session for sending data
type Status ¶
type Status int
const ( Continue Status = 100 Ok Status = 200 Created Status = 201 LowOnStorage Status = 250 MultipleChoices Status = 300 MovedPermanently Status = 301 MovedTemp Status = 301 SeeOther Status = 303 UseProxy Status = 305 BadRequest Status = 400 PaymentRequired Status = 402 Forbidden Status = 403 NotFound Status = 404 MethodNotAllowed Status = 405 NotAcceptable Status = 406 ProxyAuthenticationRequired Status = 407 RequestTimeout Status = 408 Gone Status = 410 LengthRequired Status = 411 PreconditionFailed Status = 412 RequestEntityTooLarge Status = 413 RequestURITooLong Status = 414 UnsupportedMediaType Status = 415 Invalidparameter Status = 451 IllegalConferenceIdentifier Status = 452 NotEnoughBandwidth Status = 453 SessionNotFound Status = 454 MethodNotValidInThisState Status = 455 HeaderFieldNotValid Status = 456 InvalidRange Status = 457 ParameterIsReadOnly Status = 458 AggregateOperationNotAllowed Status = 459 OnlyAggregateOperationAllowed Status = 460 UnsupportedTransport Status = 461 DestinationUnreachable Status = 462 InternalServerError Status = 500 NotImplemented Status = 501 BadGateway Status = 502 GatewayTimeout Status = 504 RTSPVersionNotSupported Status = 505 Optionnotsupport Status = 551 )
Click to show internal directories.
Click to hide internal directories.