Versions in this module Expand all Collapse all v4 v4.0.1 Feb 8, 2024 Changes in this version + type Encoder struct + func NewEncoder(clockRate int, initialTimestamp uint32) *Encoder + func (e *Encoder) Encode(ts time.Duration) uint32 + type GlobalDecoder struct + func NewGlobalDecoder() *GlobalDecoder + func (d *GlobalDecoder) Decode(track GlobalDecoderTrack, pkt *rtp.Packet) (time.Duration, bool) + type GlobalDecoderTrack interface + ClockRate func() int + PTSEqualsDTS func(*rtp.Packet) bool