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 // Direction of the stream (optional). Direction MediaDirection // 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
Marshal encodes the media in SDP format.
type MediaDirection ¶
type MediaDirection string
MediaDirection is the direction of a media stream.
const ( MediaDirectionSendonly MediaDirection = "sendonly" MediaDirectionRecvonly MediaDirection = "recvonly" MediaDirectionSendrecv MediaDirection = "sendrecv" )
standard directions.
type Session ¶
type Session struct { // Base URL of the stream (read only). BaseURL *url.URL // Title of the stream (optional). Title string // 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.