Versions in this module Expand all Collapse all v2 v2.4.2 Aug 12, 2025 v2.0.0 Aug 12, 2025 Changes in this version + type Option func(o *SampleBuilder) + func WithPacketDroppedHandler(h func()) Option + func WithPacketReleaseHandler(h func(*rtp.Packet)) Option + type SampleBuilder struct + func New(maxLate uint16, depacketizer rtp.Depacketizer, sampleRate uint32, ...) *SampleBuilder + func (s *SampleBuilder) ForcePopPackets() []*rtp.Packet + func (s *SampleBuilder) ForcePopWithTimestamp() (*media.Sample, uint32) + func (s *SampleBuilder) Pop() *media.Sample + func (s *SampleBuilder) PopPackets() []*rtp.Packet + func (s *SampleBuilder) PopWithTimestamp() (*media.Sample, uint32) + func (s *SampleBuilder) Push(p *rtp.Packet)