SampleBuilder: Deprecate PopWithTimestamp

SampleBuilder.PopWithTimestamp() will be removed in v4.
Use Sample.PacketTimestamp field instead.
This commit is contained in:
Atsushi Watanabe
2024-02-29 10:33:20 +09:00
parent 0b447fd06d
commit 39919d7ca1

View File

@@ -305,6 +305,8 @@ func (s *SampleBuilder) Pop() *media.Sample {
// PopWithTimestamp compiles pushed RTP packets into media samples and then
// returns the next valid sample with its associated RTP timestamp (or nil, 0 if
// no sample is compiled).
//
// Deprecated: PopWithTimestamp will be removed in v4. Use Sample.PacketTimestamp field instead.
func (s *SampleBuilder) PopWithTimestamp() (*media.Sample, uint32) {
sample := s.Pop()
if sample == nil {