Documentation
¶
Overview ¶
Package description contains objects to describe streams.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Media ¶
type Media struct {
// Media type.
Type MediaType
// Media ID (optional).
ID string
// Whether this media is a back channel.
IsBackChannel bool
// Control attribute.
Control string
// Whether the transport is secure.
Secure bool
// key-mgmt attribute.
KeyMgmtMikey *mikey.Message
// Formats contained into the media.
Formats []format.Format
}
Media is a media stream. It contains one or more formats.
func (Media) FindFormat ¶
FindFormat finds a certain format among all the formats in the media.
func (Media) Marshal
deprecated
func (m Media) Marshal() *psdp.MediaDescription
Marshal encodes the media in SDP format.
Deprecated: replaced by Marshal2.
func (Media) Marshal2 ¶
func (m Media) Marshal2() (*psdp.MediaDescription, error)
Marshal2 encodes the media in SDP format.
type Session ¶
type Session struct {
// Base URL of the stream (read only).
BaseURL *base.URL
// Title of the stream (optional).
Title string
// Whether to use multicast.
Multicast bool
// key-mgmt attribute.
KeyMgmtMikey *mikey.Message
// FEC groups (RFC5109).
FECGroups []SessionFECGroup
// Media streams.
Medias []*Media
}
Session is the description of a RTSP stream.
func (*Session) FindFormat ¶
FindFormat finds a certain format among all the formats in all the medias of the stream. If the format is found, it is inserted into forma, and its media is returned.
Click to show internal directories.
Click to hide internal directories.