Documentation ¶
Index ¶
- Constants
- Variables
- func UnmarshalSDP(rawSDP []byte) ([]*core.Media, error)
- type Conn
- func (c *Conn) Accept() error
- func (c *Conn) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) (err error)
- func (c *Conn) Announce() (err error)
- func (c *Conn) Auth(username, password string)
- func (c *Conn) Close() error
- func (c *Conn) Describe() error
- func (c *Conn) Dial() (err error)
- func (c *Conn) Do(req *tcp.Request) (*tcp.Response, error)
- func (c *Conn) GetMedias() []*core.Media
- func (c *Conn) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (c *Conn) Handle() (err error)
- func (c *Conn) MarshalJSON() ([]byte, error)
- func (c *Conn) Options() error
- func (c *Conn) Play() (err error)
- func (c *Conn) ReadRequest() (*tcp.Request, error)
- func (c *Conn) ReadResponse() (*tcp.Response, error)
- func (c *Conn) Reconnect() error
- func (c *Conn) SetupMedia(media *core.Media) (byte, error)
- func (c *Conn) Start() (err error)
- func (c *Conn) Stop() (err error)
- func (c *Conn) Teardown() (err error)
- func (c *Conn) WriteRequest(req *tcp.Request) error
- func (c *Conn) WriteResponse(res *tcp.Response) error
- type RTCP
- type State
Constants ¶
View Source
const ( ProtoRTSP = "RTSP/1.0" MethodOptions = "OPTIONS" MethodSetup = "SETUP" MethodTeardown = "TEARDOWN" MethodDescribe = "DESCRIBE" MethodPlay = "PLAY" MethodPause = "PAUSE" MethodAnnounce = "ANNOUNCE" MethodRecord = "RECORD" )
Variables ¶
View Source
var Timeout = time.Second * 5
Functions ¶
Types ¶
type Conn ¶
type Conn struct { core.Listener Backchannel bool Media string PacketSize uint16 SessionName string Timeout int Transport string // custom transport support, ex. RTSP over WebSocket Medias []*core.Media UserAgent string URL *url.URL // contains filtered or unexported fields }
func (*Conn) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.