Commit Graph

26 Commits

Author SHA1 Message Date
Joe Turki
22dd7b733b Replace interface{} with any 2025-06-19 23:44:08 +03:00
sirzooro
0bc950536a Copy PaddingSize from rtp.Packet to Header 2025-06-09 21:27:48 +02:00
Joe Turki
d6154f61e2 Add WithRTPTimestamp to set initial RTP timestamp
Move to the new RTP API newPacketizerWithOptions, add WithRTPTimestamp
To make it possible to set the initial RTP timestamp for the track.
2025-04-27 02:08:17 +03:00
Sean DuBois
705b728d28 Pass Configured MTU into SCTP
Before pion/sctp would always do 1228
2025-04-25 14:21:36 -04:00
Joe Turki
feeeebf251 Upgrade golangci-lint, more linters
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
2025-01-18 07:16:06 -06:00
lt
271ab556c8 Add WithPayloader to TrackLocalStatic
Allow custom payloader depending on the mime type

Fixes #2928
2024-10-15 12:12:13 -04:00
Sean DuBois
32f7063f1a Send FEC and RTX PayloadType into interceptor
New fields added to interceptor.StreamInfo
2024-10-04 21:33:10 -04:00
Sean DuBois
4541b73b1a Add Retransmission and FEC to TrackLocal
If the MediaEngine contains support for them a SSRC will be generated
appropriately

Co-authored-by: aggresss <aggresss@163.com>
Co-authored-by: Kevin Wang <kevmo314@gmail.com>

Resolves #1989
Resolves #1675
2024-10-03 20:44:49 -07:00
Alex Pokotilo
e60bf03293 Add padding support to TrackLocalStaticSample
To add padding-only samples call GeneratePadding
2024-04-10 10:03:59 -04:00
Sean DuBois
dc4b591c4d Start pion/webrtc/v4
60eea43 is a breaking change
2023-09-05 11:48:14 -04:00
Steffen Vogel
683fc837d0 Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
stephanrotolante
257c9e592e Moved duplicate operation to function
No functional changes
2022-11-03 10:24:42 +01:00
Pion
c1467e4871 Update CI configs to v0.7.2
Update lint scripts and CI configs.
2022-04-27 23:00:19 -04:00
Kevin Wang
24078fa7ae Remove unnecessary type assertion
The type assertion is not necessary, discovered by gocritic.
2022-04-05 10:06:40 -04:00
Kevin Wang
f644649329 Add ability to set RTP stream ID on TrackLocal
This change makes it possible to set the RTP stream ID to
allow forwarding and production of simulcast streams.
2022-01-14 12:37:06 -05:00
Sean DuBois
cffa6afc34 Rollback pion/rtp to v0
Resolves #1908
2021-08-02 18:05:45 -04:00
Sean DuBois
a67c66a0c5 Upgrade pion/rtp to v2
Also updates interceptor and srtp
2021-07-29 11:18:41 -04:00
Robin Raymond
7d97c9b5d3 Refactored samplebuilder logic
Many corner cases would cause samplebuilder to fail and return invalid
results. This refactoring is more reliable in all cases.

Fixed bug in H264 writer by reusing the packet object in  H264 writer.
2021-05-06 15:14:21 -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
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