Commit Graph

13 Commits

Author SHA1 Message Date
Atsushi Watanabe
b361a21c54 Detect partition head in SampleBuilder
Add functional option to set PartitionHeadChecker to detect the
beginning of the frame partition and avoid dropping the first
packet.
2020-01-30 13:39:38 +09:00
Atsushi Watanabe
1d69a90d23 Fix seqnum distance in SampleBuilder
Fix overflow and underflow handling.
2019-12-19 10:24:32 +09:00
Atsushi Watanabe
accfca4575 Add SampleBuilder.PopWithTimestamp
PopWithTimestamp function is added to provide RTP timestamp
of the sample.
This makes it possible to detect frame drops in user application.
2019-12-14 20:35:52 +09:00
Sean DuBois
10d2ca3d88 Enable gochecknoglobals linter
Resolves #434
2019-07-09 23:31:56 +01:00
Sean DuBois
5e8e1f0869 Bump pion/rtp and pion/srtp
Update rtp.Depacketizer interface to match VP8 and H264 codec
2019-05-07 00:52:18 -07:00
Sean DuBois
dbde6114a2 Update import paths
Add /v2 to import paths everywhere
2019-04-07 02:17:15 -07:00
Sean DuBois
1cdfc10c84 Mass replace pions -> pion
Pions organization was renamed to pion
2019-04-04 15:32:03 -07:00
Max Hawkins
0e7086d37a Remove RTC prefix from all names
Let's pull off the bandaid!

* Reduces studdering: webrtc.RTCTrack -> webrtc.Track
* Makes it easier to find types by editor autocomplete
* Makes code read more fluently (less repetition)

Since we're breaking the API in 2.0, our only chance to
do this is now.

Relates to #408
2019-02-17 16:22:56 -08:00
Sean DuBois
5efb6b0b7f Fix SampleBuilder not respecting maxLate
SampleBuilder now respects maxLate after a buffer have been popped
2019-02-14 22:39:02 -08:00
Sean DuBois
2863555984 Export RTP/RTCP to unique packages
Resolves #272
2019-01-28 11:38:54 -08:00
Sean DuBois
bce2813b68 Update SRTP to allow in place operations
Relates to #272
2019-01-13 13:17:09 -08:00
Sean DuBois
f7c4fea4f5 Add RTP Depackatization to SampleBuilder
When constructing a SampleBuilder the caller now passes in a
Depacketizer. This allows the SampleBuilder to take a RTP packet
to a sample. This wasn't possible before because RTP payloads may carry
codec specific metadata in the payloads that need to be stripped

Relates to #63
2018-09-22 16:58:10 -07:00
Sean DuBois
e500917a6e Implement SampleBuilder
SampleBuilder provides a simple API to build an
RTCSample from RTP packets. This is useful when proxying
audio/video data to multiple peers. This is the alternative
to allowing users to push RTP Packets directly. This would be
confusing as we would throw away some of the information that users
give us and could lead to weird edge cases

Resolves #112
2018-09-09 23:16:19 -07:00