Documentation ¶
Index ¶
- Constants
- func UnmarshalSDP(rawSDP []byte) ([]*streamer.Media, error)
- type Conn
- func (c *Conn) Accept() error
- func (c *Conn) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track
- 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) GetChannel(media *streamer.Media) int
- func (c *Conn) GetMedias() []*streamer.Media
- func (c *Conn) GetTrack(media *streamer.Media, codec *streamer.Codec) *streamer.Track
- 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 *streamer.Media, codec *streamer.Codec) (*streamer.Track, error)
- func (c *Conn) Start() error
- func (c *Conn) Stop() error
- func (c *Conn) Teardown() (err error)
- type Mode
- 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 { streamer.Element Backchannel bool SessionName string Medias []*streamer.Media Session string UserAgent string URL *url.URL // contains filtered or unexported fields }
func (*Conn) MarshalJSON ¶
func (*Conn) SetupMedia ¶
Click to show internal directories.
Click to hide internal directories.