mirror of
https://github.com/encounter/webrtc.git
synced 2026-03-30 11:42:19 -07:00
1975958f90
Using a custom type rather than raw integers makes it easier to parse RTP and RTCP timestamps and convert them into Go types. This will be useful for writing jitter buffers, track synchronization, and statistics tabulation code. Easy conversion from the Go time package also allows us to use a time.Duration in the RTCSample struct. This makes it more difficult to produce invalid timestamps with short timestamps while using the SampleTrack interface.