Commit Graph

8 Commits

Author SHA1 Message Date
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
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
Juliusz Chroboczek
92055aedc8 Implement Codec() for local static tracks
This is analoguous to remote tracks, but returns just RTPCodecCapability
rather than RTPCodecParameters.
2020-12-05 12:53:49 -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
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
a218b857bd Implement RTPSender.ReplaceTrack
Resolves #1020
2020-11-18 21:50:27 -08:00
Sean DuBois
7edfb701e0 New Track API
The Pion WebRTC API has been dramatically redesigned. The design docs
are located here [0]

You can also read the release notes [1] on how to migrate your
application.

[0] https://github.com/pion/webrtc-v3-design
[1] https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0
2020-11-15 09:20:47 -08:00