Sean DuBois
a67c66a0c5
Upgrade pion/rtp to v2
...
Also updates interceptor and srtp
2021-07-29 11:18:41 -04:00
David Zhao
e5c8c659ca
Improve MediaEngine codec matching
...
Implement more sophisticated matching to prefer exact
matches over partial ones.
2021-03-04 09:08:59 -08:00
Sean DuBois
9c7b365144
Use closePairNow in tests
...
Instead of explicitly closing each PeerConnection use helper.
No change in test behavior, just makes code more consistent.
2021-02-16 15:47:58 -08:00
Juliusz Chroboczek
026ffcd27c
Use a pool in Write and WriteRTP
...
This avoids one allocation for every write.
2021-02-16 15:27:25 -08:00
Sean DuBois
9715626a0c
Revert "Read/Write RTP/RTCP packets with context"
...
This change caused a ~24% performance decrease
Relates to pion/webrtc#1564
This reverts commit 47a7a64898
.
2020-12-02 20:11:06 -08:00
Sean DuBois
3da29b7c0c
Write/WriteRTP shouldn't block before SRTP
...
A Track shouldn't block until a PeerConnection is connected. It should
only send to PeerConnections that are fully established. v3 Track API
changed this behavior by mistake.
Related to pion/transport#116
2020-12-02 19:25:43 -08:00
Atsushi Watanabe
47a7a64898
Read/Write RTP/RTCP packets with context
...
Control cancel/timeout by context.
2020-12-01 11:08:48 +09:00
Sean DuBois
16b313b492
Take copy of rtp.Packet in WriteRTP
...
Otherwise we will modify user input. In the future we can investigate
ways to optimize.
2020-11-29 23:39:15 -08:00
Sean DuBois
e32d766199
Improve TrackLocal error handling
...
* Return error to user when remote doesn't support codecs
* Assert that bindings are properly incremented/decremented
* Assert that a added track doesn't error even when disconnected
Relates to #1526
2020-11-27 23:07:29 -08:00