Versions in this module Expand all Collapse all v1 v1.1.0 Mar 7, 2019 Changes in this version + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (r *Decoder) DecodePacket() (Packet, error) type SenderReport + ProfileExtensions []byte v1.0.0 Jan 28, 2019 Changes in this version + const FormatPLI + const FormatRRR + const FormatSLI + const FormatTLN + func Unmarshal(rawPacket []byte) (Packet, Header, error) + type Goodbye struct + Reason string + Sources []uint32 + func (g *Goodbye) DestinationSSRC() []uint32 + func (g *Goodbye) Header() Header + func (g *Goodbye) Unmarshal(rawPacket []byte) error + func (g Goodbye) Marshal() ([]byte, error) + type Header struct + Count uint8 + Length uint16 + Padding bool + Type PacketType + func (h *Header) Unmarshal(rawPacket []byte) error + func (h Header) Marshal() ([]byte, error) + type NackPair struct + LostPackets PacketBitmap + PacketID uint16 + func (n *NackPair) PacketList() []uint16 + type Packet interface + DestinationSSRC func() []uint32 + Header func() Header + Marshal func() ([]byte, error) + Unmarshal func(rawPacket []byte) error + type PacketBitmap uint16 + type PacketType uint8 + const TypeApplicationDefined + const TypeGoodbye + const TypePayloadSpecificFeedback + const TypeReceiverReport + const TypeSenderReport + const TypeSourceDescription + const TypeTransportSpecificFeedback + func (p PacketType) String() string + type PictureLossIndication struct + MediaSSRC uint32 + SenderSSRC uint32 + func (p *PictureLossIndication) DestinationSSRC() []uint32 + func (p *PictureLossIndication) Header() Header + func (p *PictureLossIndication) String() string + func (p *PictureLossIndication) Unmarshal(rawPacket []byte) error + func (p PictureLossIndication) Marshal() ([]byte, error) + type RapidResynchronizationRequest struct + MediaSSRC uint32 + SenderSSRC uint32 + func (p *RapidResynchronizationRequest) DestinationSSRC() []uint32 + func (p *RapidResynchronizationRequest) Header() Header + func (p *RapidResynchronizationRequest) String() string + func (p *RapidResynchronizationRequest) Unmarshal(rawPacket []byte) error + func (p RapidResynchronizationRequest) Marshal() ([]byte, error) + type RawPacket []byte + func (r *RawPacket) DestinationSSRC() []uint32 + func (r *RawPacket) Unmarshal(b []byte) error + func (r RawPacket) Header() Header + func (r RawPacket) Marshal() ([]byte, error) + type Reader struct + func NewReader(r io.Reader) *Reader + func (r *Reader) ReadPacket() (header Header, data []byte, err error) + type ReceiverReport struct + ProfileExtensions []byte + Reports []ReceptionReport + SSRC uint32 + func (r *ReceiverReport) DestinationSSRC() []uint32 + func (r *ReceiverReport) Header() Header + func (r *ReceiverReport) Unmarshal(rawPacket []byte) error + func (r ReceiverReport) Marshal() ([]byte, error) + func (r ReceiverReport) String() string + type ReceptionReport struct + Delay uint32 + FractionLost uint8 + Jitter uint32 + LastSenderReport uint32 + LastSequenceNumber uint32 + SSRC uint32 + TotalLost uint32 + func (r *ReceptionReport) Unmarshal(rawPacket []byte) error + func (r ReceptionReport) Marshal() ([]byte, error) + type SDESType uint8 + const SDESCNAME + const SDESEmail + const SDESEnd + const SDESLocation + const SDESName + const SDESNote + const SDESPhone + const SDESPrivate + const SDESTool + func (s SDESType) String() string + type SLIEntry struct + First uint16 + Number uint16 + Picture uint8 + type SenderReport struct + NTPTime uint64 + OctetCount uint32 + PacketCount uint32 + RTPTime uint32 + Reports []ReceptionReport + SSRC uint32 + func (r *SenderReport) DestinationSSRC() []uint32 + func (r *SenderReport) Header() Header + func (r *SenderReport) Unmarshal(rawPacket []byte) error + func (r SenderReport) Marshal() ([]byte, error) + type SliceLossIndication struct + MediaSSRC uint32 + SLI []SLIEntry + SenderSSRC uint32 + func (p *SliceLossIndication) DestinationSSRC() []uint32 + func (p *SliceLossIndication) Header() Header + func (p *SliceLossIndication) String() string + func (p *SliceLossIndication) Unmarshal(rawPacket []byte) error + func (p SliceLossIndication) Marshal() ([]byte, error) + type SourceDescription struct + Chunks []SourceDescriptionChunk + func (s *SourceDescription) DestinationSSRC() []uint32 + func (s *SourceDescription) Header() Header + func (s *SourceDescription) Unmarshal(rawPacket []byte) error + func (s SourceDescription) Marshal() ([]byte, error) + type SourceDescriptionChunk struct + Items []SourceDescriptionItem + Source uint32 + func (s *SourceDescriptionChunk) Unmarshal(rawPacket []byte) error + func (s SourceDescriptionChunk) Marshal() ([]byte, error) + type SourceDescriptionItem struct + Text string + Type SDESType + func (s *SourceDescriptionItem) Unmarshal(rawPacket []byte) error + func (s SourceDescriptionItem) Marshal() ([]byte, error) + type TransportLayerNack struct + MediaSSRC uint32 + Nacks []NackPair + SenderSSRC uint32 + func (p *TransportLayerNack) DestinationSSRC() []uint32 + func (p *TransportLayerNack) Header() Header + func (p *TransportLayerNack) String() string + func (p *TransportLayerNack) Unmarshal(rawPacket []byte) error + func (p TransportLayerNack) Marshal() ([]byte, error)