Versions in this module Expand all Collapse all v1 v1.3.0 Jul 16, 2020 Changes in this version + const MIME_TYPE_AUDIO + const MIME_TYPE_UNSET + const MIME_TYPE_VIDEO + const SUB_TYPE_H264 + const SUB_TYPE_OPUS + const SUB_TYPE_RED + const SUB_TYPE_ULPFEC + const SUB_TYPE_UNSET + const SUB_TYPE_VP8 + const SUB_TYPE_VP9 + func ProcessRtpPacket(packet *Packet, codetype CodeType) + func ProcessRtpPacketH264(packet *Packet) codecs.PayloadDescriptor + func ProcessRtpPacketVP8(packet *Packet) codecs.PayloadDescriptor + type AbsSendTimeExtension struct + Timestamp uint64 + func NewAbsSendTimeExtension(sendTime time.Time) *AbsSendTimeExtension + func (t *AbsSendTimeExtension) Estimate(receive time.Time) time.Time + func (t *AbsSendTimeExtension) Marshal() ([]byte, error) + func (t *AbsSendTimeExtension) Unmarshal(rawData []byte) error + type AudioLevelExtension struct + Level uint8 + Voice bool + func (a *AudioLevelExtension) Marshal() ([]byte, error) + func (a *AudioLevelExtension) Unmarshal(rawData []byte) error + type CodeType struct + MimeType int + SubType int + type Depacketizer interface + Unmarshal func(packet []byte) ([]byte, error) + type Extension struct + type Header struct + CSRC []uint32 + Extension bool + ExtensionProfile uint16 + Extensions []Extension + Marker bool + Padding bool + PayloadOffset int + PayloadType uint8 + SSRC uint32 + SequenceNumber uint16 + Timestamp uint32 + Version uint8 + func (h *Header) DelExtension(id uint8) error + func (h *Header) GetExtension(id uint8) []byte + 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(rawPacket []byte) error + type Packet struct + Payload []byte + PayloadDescriptorHandler codecs.PayloadDescriptor + PayloadLength int + PayloadPadding uint8 + Raw []byte + RawLen int + func (p *Packet) Clone() *Packet + func (p *Packet) GetSpatialLayer() uint8 + func (p *Packet) GetTemporalLayer() uint8 + func (p *Packet) IsKeyFrame() bool + func (p *Packet) Marshal() (buf []byte, err error) + func (p *Packet) MarshalSize() int + func (p *Packet) MarshalTo(buf []byte) (n int, err error) + func (p *Packet) ReadAbsSendTime(absId uint8, time *uint32) bool + func (p *Packet) RtxDecode(payloadType uint8, ssrc uint32) bool + func (p *Packet) Unmarshal(rawPacket []byte) error + func (p Packet) String() string + type Packetizer interface + EnableAbsSendTime func(value int) + Packetize func(payload []byte, samples uint32) []*Packet + func NewPacketizer(mtu int, pt uint8, ssrc uint32, payloader Payloader, sequencer Sequencer, ...) Packetizer + type PartitionHeadChecker interface + IsPartitionHead func([]byte) bool + type Payloader interface + Payload func(mtu int, payload []byte) [][]byte + type Sequencer interface + NextSequenceNumber func() uint16 + RollOverCount func() uint64 + func NewFixedSequencer(s uint16) Sequencer + func NewRandomSequencer() Sequencer + type TransportCCExtension struct + TransportSequence uint16 + func (t *TransportCCExtension) Marshal() ([]byte, error) + func (t *TransportCCExtension) Unmarshal(rawData []byte) error