Versions in this module Expand all Collapse all v0 v0.0.2 Mar 15, 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 + MaxDONDiff int + func (d *Decoder) Decode(pkt *rtp.Packet) ([][]byte, time.Duration, error) + func (d *Decoder) DecodeUntilMarker(pkt *rtp.Packet) ([][]byte, time.Duration, error) + func (d *Decoder) Init() + type Encoder struct + InitialSequenceNumber *uint16 + InitialTimestamp *uint32 + MaxDONDiff int + PayloadMaxSize int + PayloadType uint8 + SSRC *uint32 + func (e *Encoder) Encode(nalus [][]byte, pts time.Duration) ([]*rtp.Packet, error) + func (e *Encoder) Init()