Documentation ¶
Index ¶
- Constants
- 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) Request(req *tcp.Request) error
- func (c *Conn) Response(res *tcp.Response) error
- func (c *Conn) Setup() error
- func (c *Conn) SetupMedia(media *core.Media, first bool) (byte, error)
- func (c *Conn) Start() error
- func (c *Conn) Stop() error
- func (c *Conn) Teardown() (err 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 ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct { core.Listener Backchannel bool SessionName string Medias []*core.Media Session string UserAgent string URL *url.URL // contains filtered or unexported fields }
func (*Conn) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.