Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Depacketizer ¶
Depacketizer depacketizes a RTP payload, removing any RTP specific data from the payload
type Header ¶
type Header struct { Version uint8 Padding bool Extension bool Marker bool PayloadOffset int PayloadType uint8 SequenceNumber uint16 Timestamp uint32 SSRC uint32 CSRC []uint32 ExtensionProfile uint16 ExtensionPayload []byte }
Header represents an RTP packet header NOTE: PayloadOffset is populated by Marshal/Unmarshal and should not be modified
func (*Header) MarshalSize ¶
MarshalSize returns the size of the header once marshaled.
type Packet ¶
Packet represents an RTP Packet NOTE: Raw is populated by Marshal/Unmarshal and should not be modified
func (*Packet) MarshalSize ¶
MarshalSize returns the size of the packet once marshaled.
type Packetizer ¶
type Packetizer interface { Packetize(payload []byte, samples uint32) []*Packet EnableAbsSendTime(value int) }
Packetizer packetizes a payload
func NewPacketizer ¶
func NewPacketizer(mtu int, pt uint8, ssrc uint32, payloader Payloader, sequencer Sequencer, clockRate uint32) Packetizer
NewPacketizer returns a new instance of a Packetizer for a specific payloader
type Sequencer ¶
Sequencer generates sequential sequence numbers for building RTP packets
func NewFixedSequencer ¶
NewFixedSequencer returns a new sequencer starting from a specific sequence number
func NewRandomSequencer ¶
func NewRandomSequencer() Sequencer
NewRandomSequencer returns a new sequencer starting from a random sequence number