Versions in this module Expand all Collapse all v2 v2.0.0 Jun 30, 2023 Changes in this version + var ErrMorePacketsNeeded = errors.New("need more packets") + var ErrNonStartingPacketAndNoPrevious = errors.New("received a non-starting fragment without any previous starting fragment") + type Decoder struct + func (d *Decoder) Decode(pkt *rtp.Packet) ([]byte, time.Duration, error) + func (d *Decoder) Init() + type Encoder struct + InitialPictureID *uint16 + InitialSequenceNumber *uint16 + InitialTimestamp *uint32 + PayloadMaxSize int + PayloadType uint8 + SSRC *uint32 + func (e *Encoder) Encode(frame []byte, pts time.Duration) ([]*rtp.Packet, error) + func (e *Encoder) Init()