Versions in this module Expand all Collapse all v2 v2.2.2 Jul 25, 2024 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)