Commit Graph

25 Commits

Author SHA1 Message Date
Sean DuBois
e4ff415b2b Support DataChannel messages larger then MaxUint16
SCTP now internally can handle larger messages

Resolves #2712
2025-03-04 18:22:14 -08: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
Juliusz Chroboczek
f2191fbfa7 Finish moving SDESRTPStreamIDURI (#3000)
Finish moving SDESRTPStreamIDURI from here to pion/sdp.
2025-01-13 09:25:13 -05:00
Brave Yao
8fbf8219dd Change receiveMTU from 1460 -> 1500
Raise the default ReceiveMTU to 1500, as same
as the default MTU setting of WebRTC. This is because
some senders, i.e. FFmpeg, may packetize RTP with 1460
payload + 12 RTP header + etc.

Fixes #2927
2024-10-14 23:42:13 -04:00
Sean DuBois
f388de6581 Update module github.com/pion/dtls/v2 to v3
Generated by renovateBot
2024-07-25 11:16:12 -05:00
cnderrauber
ee9717e95b Answer to paused simucalst stream correctly
Answer to paused simucalst stream correctly
2023-12-12 15:10:12 +08:00
Adrian Cable
6de39bf37a RTX attribute constants should be public 2023-10-08 09:38:45 -07:00
Adrian Cable
ff34ec9b67 Read() handles distinct-SSRC RTX packets 2023-09-29 14:00:48 -07:00
Woodrow Douglass
13450332a4 Remove the "Unknown" constant
This commit replaces the Unknown constant with
separate constants for each enumeration that
uses it.

Fixes #1293
2023-09-12 13:29:05 -04:00
Sean DuBois
7a100b9065 Enable SRTP_AEAD_AES_256_GCM
pion/srtp@v2.0.15 fixed the cipher
2023-05-19 15:19:48 -04:00
Sean DuBois
f83bd730c1 Remove SRTP_AEAD_AES_256_GCM from default
Not working currently, disabling until we fix
2023-05-18 23:43:07 -04:00
Patryk Rogalski
bb022d5b22 Implemented SRTP_AEAD_AES_256_GCM
This adds missing bits for
SRTP_AEAD_AES_256_GCM and updates
srtp module to v2.0.14.
2023-05-17 15:28:30 -04:00
Steffen Vogel
683fc837d0 Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
Sean DuBois
11b8873da2 Handle Simulcast RepairStream
Read + Discard packets from the Simulcast repair stream. When a
Simulcast stream is enabled the remote will send packets via the repair
stream for probing. We can't ignore these packets anymore because it
will cause gaps in the feedback reports

Resolves #1957
2021-09-15 15:08:22 -04:00
Sean DuBois
f1831eb5ee Update GenerateCertificate to match libwebrtc
When attempting to interact with a WebRTC service a user was getting a
DTLS alert of UnknownCA. The remote service was asserting the lifetime +
subject of the certificate. This PR modifies Pion's certificate
generation code to match libwebrtc so it can work with the WebRTC
service.

Resolves #1940
2021-09-03 11:00:55 -04:00
Sean DuBois
89042ee5f6 Don't consider simulcast for undeclared SSRC
If we have a media section with no SSRC we would fire an OnTrack. This
code now properly ignores a MediaSection that has a rid attribute.

Resolves #1808
2021-08-24 17:02:21 -04:00
Sean DuBois
b03856c6c1 Populate ID/StreamID for Undeclared SSRC
Relates to #1808
2021-08-22 21:56:32 -04:00
digitalix
f8a8c09949 Support PayloadTypes changing a TrackRemote
If the PayloadType changes for a SSRC update the codec on the
TrackRemote.

Resolves #1850
2021-06-27 14:44:02 -04:00
Sean DuBois
9677e616b7 Move defaultSrtpProtectionProfiles to constants.go
If a user is curious about the default value when configuring
SetSRTPProtectionProfiles this makes it easier to find.
2021-05-04 13:01:34 -07:00
Sean DuBois
70fb90c7fd Fix Simulcast routine leak
When a new SSRC is seen we start a Read loop for the packets. However if
we only see one packet this loop will just sit forever. If a user
doesn't send us enough packets to finish probing it will prevent any
subsequent streams from being probed.

Relates to #1345
2020-12-07 09:18:15 -08:00
Jason
6ee528d349 Add Simulcast support
Resolves #1016
2020-07-24 01:01:43 -07:00
Sean DuBois
f78334d9d4 Only start SCTP if RemoteDescription requests
Relates to #346
2020-05-18 00:05:40 -07:00
Andrew N. Shalaev
d8d2295368 Decrease to 1460 bytes for less memory bloat
The value we picked before was just used for debugging
when first starting Pion
2019-11-13 10:58:36 -08:00
Sean DuBois
c6ad8c78ea Handle undeclared SSRCes
If we receive an unknown SSRC and we have a single
media section with no SSRCes declared fire an OnTrack
with that stream

Resolves #880
2019-10-20 02:05:43 -07:00
Alex Browne
0f1ddf0825 Add JavaScript/WASM bindings
Resolves #478. Adds minimal JavaScript/WASM bindings. This makes it
possible to compile core parts of pions/webrtc to WASM and run it in the
browser. Only data channels are supported for now and there is
limited/no support for certificates and credentials.
2019-03-08 00:26:17 +01:00