Documentation
¶
Index ¶
- type Extension
- type Header
- func (h Header) Clone() Header
- func (h *Header) DelExtension(id uint8) error
- func (h *Header) GetExtension(id uint8) []byte
- func (h *Header) GetExtensionIDs() []uint8
- func (h Header) Marshal() (buf []byte, err error)
- func (h Header) MarshalSize() int
- func (h Header) MarshalTo(buf []byte) (n int, err error)
- func (h *Header) SetExtension(id uint8, payload []byte) error
- func (h *Header) Unmarshal(buf []byte) (n int, err error)
- type Packet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
Extension RTP Header extension
type Header ¶
type Header struct { Version uint8 Padding bool Extension bool Marker bool PayloadType uint8 SequenceNumber uint16 Timestamp uint32 SSRC uint32 CSRC []uint32 ExtensionProfile uint16 Extensions []Extension }
Header represents an RTP packet header
func (*Header) DelExtension ¶
DelExtension Removes an RTP Header extension
func (*Header) GetExtension ¶
GetExtension returns an RTP header extension
func (*Header) GetExtensionIDs ¶
GetExtensionIDs returns an extension id array
func (Header) MarshalSize ¶
MarshalSize returns the size of the header once marshaled.
func (*Header) SetExtension ¶
SetExtension sets an RTP header extension
type Packet ¶
Packet represents an RTP Packet
func (Packet) MarshalSize ¶
MarshalSize returns the size of the packet once marshaled.
Click to show internal directories.
Click to hide internal directories.