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
// RTP Profile.
Profile headers.TransportProfile
// key-mgmt attribute.
KeyMgmtMikey *mikey.Message
// Control attribute.
Control string
// 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 ¶
func (m Media) Marshal() (*psdp.MediaDescription, error)
Marshal 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.