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 + func (d *Decoder) Decode(pkt *rtp.Packet) ([]byte, time.Duration, error) + func (d *Decoder) Init() + type Encoder struct + InitialSequenceNumber *uint16 + InitialTimestamp *uint32 + PayloadMaxSize int + SSRC *uint32 + func (e *Encoder) Encode(image []byte, pts time.Duration) ([]*rtp.Packet, error) + func (e *Encoder) Init()