Versions in this module Expand all Collapse all v1 v1.1.1 Nov 16, 2018 v1.1.0 Oct 1, 2018 Changes in this version + type Goodbye struct + Reason string + Sources []uint32 + 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 Packet interface + Marshal func() ([]byte, error) + Unmarshal func(rawPacket []byte) error + type PacketType uint8 + const TypeApplicationDefined + const TypeGoodbye + const TypePayloadSpecificFeedback + const TypeReceiverReport + const TypeSenderReport + const TypeSourceDescription + func (p PacketType) String() string + type PictureLossIndication struct + MediaSSRC uint32 + SenderSSRC uint32 + func (p *PictureLossIndication) Unmarshal(rawPacket []byte) error + func (p PictureLossIndication) 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 + Reports []ReceptionReport + SSRC uint32 + func (r *ReceiverReport) Unmarshal(rawPacket []byte) error + func (r ReceiverReport) Marshal() ([]byte, error) + 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 SenderReport struct + NTPTime uint64 + OctetCount uint32 + PacketCount uint32 + RTPTime uint32 + Reports []ReceptionReport + SSRC uint32 + func (r *SenderReport) Unmarshal(rawPacket []byte) error + func (r SenderReport) Marshal() ([]byte, error) + type SourceDescription struct + Chunks []SourceDescriptionChunk + 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)