Commit Graph

2039 Commits

Author SHA1 Message Date
boks1971
3f41a223f9 Update datachannel to v1.5.9
https://github.com/pion/datachannel/releases/tag/v1.5.9
2024-08-16 19:11:27 +05:30
Tristan Matthews
d54f7870eb Only send PLIs for video tracks in examples 2024-08-15 19:15:04 -04:00
Eric Daniels
ddb9219c84 Bump sctp to v1.8.33 2024-08-15 09:26:23 -04:00
Eric Daniels
d10ba36a5b Add TestPeerConnection_GracefulCloseWhileOpening 2024-08-14 14:47:16 -04:00
Eric Daniels
48a2e5a0cc Revert "Run ops.GracefulClose earlier in pc.Close"
This reverts commit ec6b6f1d54.
2024-08-14 14:36:04 -04:00
Eric Daniels
130b6ae7ff Bump sctp to v1.8.22 2024-08-13 11:31:15 -04:00
sukun
1e76a83d1a Fix SCTPTransport OnClose test 2024-08-13 20:48:56 +05:30
Eric Daniels
ec6b6f1d54 Run ops.GracefulClose earlier in pc.Close 2024-08-13 09:29:11 -04:00
renovate[bot]
9ca52b43ab Update module github.com/pion/sctp to v1.8.21
Generated by renovateBot
v4.0.0-beta.28
2024-08-12 22:07:28 +00:00
Sean DuBois
3aab0355e0 Upgrade dtls, ice, stun and turn
New major version of all packages caused by DTLS upgrade
2024-08-12 13:45:35 -04:00
sukun
6cfa00f1bc Provide SCTP Association OnClose callback 2024-08-12 22:15:39 +05:30
Atsushi Watanabe
c4d56d4759 SampleBuilder: add memory leak test
Test that the input RTP packets are unreferenced
after all samples are popped.
2024-08-07 00:22:20 -04:00
renovate[bot]
d9994bdf6c Update module github.com/pion/rtp to v1.8.9
Generated by renovateBot
2024-08-07 01:25:59 +00:00
renovate[bot]
4ba98f5921 Update module github.com/pion/interceptor to v0.1.30
Generated by renovateBot
2024-08-06 19:37:53 +00:00
Eric Daniels
78c8a2e07c Add PeerConnection.GracefulClose v4.0.0-beta.27 2024-08-06 09:51:54 -04:00
Radek Gruchalski
dbe26d34d8 Adapt an existing test to provide coverage 2024-08-05 11:05:46 -04:00
Radek Gruchalski
4f40756d9c IVF writer fix invalid timestamp into headers 2024-08-05 11:05:46 -04:00
renovate[bot]
8ec98b7c0d Update module github.com/pion/sctp to v1.8.20
Generated by renovateBot
2024-08-02 21:15:17 +00:00
renovate[bot]
a3edabfd26 Update module github.com/pion/ice/v3 to v3.0.15
Generated by renovateBot
2024-08-02 19:01:17 +00:00
Eric Daniels
13b4a614b1 Fix TestPeerConnection_EventHandlers flake
- Fixes #2848
2024-08-02 13:10:41 -04:00
renovate[bot]
3f2cd52862 Update module github.com/pion/rtp to v1.8.8
Generated by renovateBot
2024-08-02 15:57:57 +00:00
lactyy
cbe3465c8b Adding pendingQueue to internal/mux
Buffer a small amount of packets in the internal/mux to allow remotes to
send DTLS traffic before ICE has completed
2024-08-01 23:11:35 -04:00
Juliusz Chroboczek
f29ef99b22 Avoid leaking tickers
In Go 1.22 and earlier, a ticker needs to be explicitly stopped
when it's no longer useful in order to avoid a resource leak.
In Go 1.23 and later, an orphaned ticker will eventually be
garbage collected, but it's still more thrifty to stop it early.
2024-08-01 14:35:24 -04:00
Juan Navarro
cbbb1c29e5 Fix disordered RIDs in SDP
Map iteration order is not guaranteed by Go, so it's an error to iterate
over a map in places where maintaining the same ordering is important.

This change replaces the map of simulcastRid{} with an array of the same
type. The simulcastRid{} type is extended to hold the rid-id which
previously was used as the key in the map.

Accesses to the map are replaced with range loops to find the desired
rid-id for each case.

Fixes #2838
2024-08-01 10:56:45 -04:00
AfonsoVi
35b3ae1bb5 Change time.Sleep to time.Ticker in the examples 2024-07-28 22:31:32 -04:00
cnderrauber
021c271a92 Fix our-of-order twcc fb cause by rtx blocked
Fix #2830. The TrackRemote.Read could block in
readRTP if the buffer is empty then rtx packets
arrival before next media rtp packet will be
readed after the next media rtp packet and cause
out-of-order fb and mess up remote peer's
bandwidth estimation.
v4.0.0-beta.26
2024-07-25 23:03:28 -05:00
renovate[bot]
bdbeb0c4db Update module github.com/pion/transport/v3 to v3.0.6
Generated by renovateBot
2024-07-26 01:25:06 +00:00
Sean DuBois
f388de6581 Update module github.com/pion/dtls/v2 to v3
Generated by renovateBot
v4.0.0-beta.25
2024-07-25 11:16:12 -05:00
Sean DuBois
6a4a57a682 Update module github.com/pion/ice/v3 to v3.0.13 2024-07-25 11:24:45 -04:00
Eric Daniels
05cafb3d03 Close unhandled rtcp simulcast streams
handleIncomingSSRC will call streamsForSSRC which
opens rtp/rtcp streams that if unhandled can be
leaked resources. Now we will proactively open
them before calling handleIncomingSSRC and close
then later. In the future it would be better to
do this inside handleIncomingSSRC to protect other
callers.
2024-07-23 00:03:17 -04:00
Eric Daniels
a93050058f Bump ice to v3.0.12 2024-07-22 23:33:39 -04:00
Sean DuBois
c85269bee3 Properly handle non-media probes
libwebrtc has started sending media probes on an unannounced SSRC(0).
Currently Pion will ignore this as the SSRC hasn't been declared
explicitly and no RID/MID RTP Headers.

This adds a special case to accept SSRC 0 and Read the RTP packets. This
allows the TWCC reports to properly be generated.
v4.0.0-beta.24
2024-07-20 22:16:22 -04:00
sirzooro
19d022423d Added support for SRTP_NULL_HMAC_SHA1_80 cipher
Added support for SRTP_NULL_HMAC_SHA1_80 protection profile (cipher).
It is disabled by default. You need to use SettingEngine and set list
of allowed SRTP protection profiles using its SetSRTPProtectionProfiles
function called with dtls.SRTP_NULL_HMAC_SHA1_80 as a parameter. You
need to do this for both pion peers. For non-pion ones you may need to
enable it somewhere too, as NULL cipher is usually disabled for security
reasons.
2024-07-20 17:53:37 -04:00
renovate[bot]
064006d6d3 Update module github.com/pion/dtls/v2 to v2.2.12
Generated by renovateBot
2024-07-20 21:08:14 +00:00
Eric Daniels
17d3e97b59 Hold pc.mu while populating local candidates 2024-07-19 12:05:41 -04:00
renovate[bot]
b874788a06 Update module github.com/pion/srtp/v3 to v3.0.3
Generated by renovateBot
2024-07-19 01:01:51 +00:00
Sean DuBois
9c6604df0a Drop calls to RegisterDefaultCodecs in tests
Not needed anymore
2024-07-18 16:14:23 -04:00
Sean DuBois
8780e68cb7 Add nolint to examples
Ignore err from Fprintf
2024-07-18 15:40:11 -04:00
Sean DuBois
ce37669dda Delete deadcode in pion-to-pion/answer
Was accidentally copied, never needed
2024-07-18 15:21:46 -04:00
cnderrauber
287d10638d Match header extensions to remote media sections
Firefox would send updated header extension
in renegotiation, e.g. publish a track without
simucalst then renegotiate second track with
simucalst, the two media secontions will have
different rtp header extensions in offer. Need
to match remote header extentions for each
media sections to avoid second track publish
failed.
2024-07-18 12:30:19 +08:00
Sean DuBois
166d82e1e8 Update module github.com/pion/ice/v3 to v3.0.10 v4.0.0-beta.23 2024-07-15 12:23:41 -04:00
Sean DuBois
e17ce04589 Revert 7c8bfbd44a and add test
Don't block Close on spawned goroutines
v4.0.0-beta.22
2024-07-15 11:26:21 -04:00
renovate[bot]
6988aff3af Update module github.com/pion/rtp to v1.8.7
Generated by renovateBot
2024-07-13 22:49:03 +00:00
renovate[bot]
dc99b03894 Update module github.com/pion/srtp/v3 to v3.0.2
Generated by renovateBot
2024-07-08 00:19:20 +00:00
renovate[bot]
4dd839257d Update module github.com/pion/sctp to v1.8.19
Generated by renovateBot
2024-07-07 22:02:24 +00:00
renovate[bot]
adf9a44ba5 Update module github.com/pion/datachannel to v1.5.8
Generated by renovateBot
2024-07-07 18:23:45 +00:00
renovate[bot]
c2a0b33328 Update module github.com/pion/sctp to v1.8.18
Generated by renovateBot
2024-07-07 01:36:17 +00:00
renovate[bot]
a365c79ecb Update module github.com/pion/datachannel to v1.5.7
Generated by renovateBot
2024-07-06 22:39:34 +00:00
renovate[bot]
ee1efb7c4f Update module github.com/pion/ice/v3 to v3.0.9
Generated by renovateBot
2024-07-06 19:16:24 +00:00
renovate[bot]
de5d997e51 Update module github.com/pion/ice/v3 to v3.0.8
Generated by renovateBot
2024-07-02 23:12:41 +00:00