Commit Graph

2053 Commits

Author SHA1 Message Date
Aditya Kumar
dfbbd22c3d Fix case insensitive mimetype check
Relates to pion/webrtc #2241
2022-05-24 21:16:47 -07:00
Pion
ae4c0edde4 Update CI configs to v0.7.10
Update lint scripts and CI configs.
2022-05-24 12:47:21 +02:00
Adrian Cable
81e80b465f Linty fixes
I have been writing too much Node code recently
2022-05-23 18:15:16 -07:00
Adrian Cable
14c032ce72 Fix TestExtensionIdCollision
This test previously assumed deterministic (i.e. ordered)
behaviour for getRTPParametersByKind which is not necessary, and
is no longer true following PR #2236 due to use of range. The
result was that occasionally this test would fail incorrectly
(thanks, golang-ci). This PR fixes the test.
2022-05-23 18:15:16 -07:00
cnderrauber
89c05b714f Generate unique extmap id for extensions
Generate unique extmap id for extesions with different uri
2022-05-23 17:06:21 -07:00
Sean DuBois
7367daf232 Increase requirements for Plan-B detection
Before a SessionDescription was assumed to be Plan-B if it contained a
MediaName of `audio` or `video`. This PR Changes that behavior.

If SDPSemantics is UnifiedPlan the SessionDescription must contain a
MediaDescription with two SSRCes to be considered a Plan-B. Before if
the MediaDescription had name of `audio` or `video` it was assumed to be
Plan-B.

If SDPSemantics is PlanB or UnifiedPlanWithFallback it maintains the
existing behavior.

Resolves #2193
v3.1.41
2022-05-23 10:13:02 -04:00
Renovate Bot
4983f0864d Update module github.com/pion/srtp/v2 to v2.0.9
Generated by renovateBot
2022-05-23 13:13:59 +00:00
Pion
d88b8225c9 Update CI configs to v0.7.9
Update lint scripts and CI configs.
2022-05-22 13:59:34 -04:00
David Zhao
26f673d847 Fixed panic in ICEGatherer.Gather
It's possible the ICEGatherer is closed shortly after Gather began
2022-05-20 22:38:09 -04:00
Pion
007b0a9ee1 Update CI configs to v0.7.8
Update lint scripts and CI configs.
2022-05-20 20:59:52 -04:00
Renovate Bot
9ad778c0ba Update module github.com/pion/srtp/v2 to v2.0.8
Generated by renovateBot
2022-05-20 03:19:28 +00:00
Sean DuBois
ea7964c12c Update module github.com/pion/dtls/v2 to v2.1.5
Generated by renovateBot
v3.1.40
2022-05-16 13:05:27 -04:00
Adrian Cable
63b4529ca1 Fix conflicting/misassigned extmap IDs on re-offer
This PR addresses an issue whereby under a specific (but not unusual)
circumstance. Pion fails in two different ways to generate the correct
SDP extmap IDs for a track. Some browsers are more picky about this
than others, but Firefox is known to be picky and this issue may be
responsible for some reported incompatibilities.

Sequence to trigger the issue:

* Pion side registers audio & video codecs and audio & video header
  extensions.
* Pion side gets an audio-only offer from the remote, and responds
  with an answer.
* At some later point in time, Pion side wants to add a video track
  and prepares a new offer.
* Extmap IDs in the new offer SDP are usually incorrect
  conflicting/misassigned

Co-authored-by: Hugo Tunius <hugo@lookback.io>
Relates to: webrtc-rs/webrtc#154
2022-05-13 22:18:30 -04:00
Forest Johnson
5c737e1f87 Add note to OnICECandidate on when ICE Gathering
ICE Gathering is triggered by SetLocalDescription and
SetRemoteDescription
2022-05-13 12:51:06 -04:00
Woodrow Douglass
d07baa8973 Add a few tests, to improve coverage
specifically, tests for stats.go, certificate.go and sdpsemantics.go
v3.1.39
2022-05-12 20:49:44 -04:00
cnderrauber
0c8ce8e15c Set extmap-allow-mixed by default
For support with dependency descriptor, chrome will use
mixed extmap both one-byte and two-byte defined in RFC8285,
add the attribute to support that
2022-05-12 12:19:25 +08:00
Renovate Bot
a6b84ec056 Update module github.com/pion/sdp/v3 to v3.0.5
Generated by renovateBot
2022-05-12 03:00:42 +00:00
Atsushi Watanabe
777437895c Fix datachannel accept EOF check logic
Fix the logic inverted by c1467e4
v3.1.38
2022-05-11 20:52:16 -04:00
Juliusz Chroboczek
a6d0403a46 Remove occurrences of Unknonwn ICECredentialType
In 3.1.37, we removed the possibility for ICECredentialType
to be Unknown.  Remove remaining tests for this case from
the WASM code.
2022-05-11 15:36:38 -04:00
Sean DuBois
16f536785d Use wasm_exec_node.js if exists
Go starting with 680caf15355057ca84857a2a291b6f5c44e73329
split these into two files. Check if file exists so we can support both
versions
2022-05-10 21:44:03 -04:00
Juliusz Chroboczek
b4579949e1 Fix the zero value of ICECredentialType
Ensure that the zero value of ICECredentialType is password.
v3.1.37
2022-05-10 21:12:05 -04:00
Daniele Sluijters
37a145a51f Upgrade DTLS dependency to 2.1.4
The 2.1.4 release contains two security fixes.
v3.1.36
2022-05-10 23:44:54 +02:00
Sean DuBois
e18818b3a6 Remove codacy from README
Not used anymore
2022-05-10 10:29:07 -04:00
Renovate Bot
74a8f26f0a Update module github.com/pion/srtp/v2 to v2.0.7
Generated by renovateBot
2022-05-09 23:46:25 -04:00
Daniele Sluijters
b8fd4d98ea Fix incorrect conversion between integer types
The result of strconv.Atoi uses an architecture dependent bit size. It
is not safe to use when converted to an integer type of a smaller size,
without performing bounds checking.

Instead, use Parse(U)int with the desired base and size. Though this
returns a (u)int64, it can then be safely converted into a (u)int8 etc.
2022-05-09 13:07:42 -04:00
Pion
5b4afbb934 Update CI configs to v0.7.5
Update lint scripts and CI configs.
2022-05-09 12:08:35 -04:00
Sean DuBois
a6c749437b Update github.com/pion/interceptor to v0.0.11
Generated by renovateBot
v3.1.35
2022-05-07 23:40:42 -04:00
Woodrow Douglass
c9aaf819bc Add json support to ICECredentialType
This allows the interface to be slightly closer to
upstream interfaces.
2022-05-06 13:34:50 -04:00
Mathis Engelbart
cecdbc9980 Use a new error variable to avoid race condition
The error was reused by two goroutines simultaneously.
Fixes #2203
2022-05-06 12:02:43 -04:00
Pion
e6736962b7 Update CI configs to v0.7.3
Update lint scripts and CI configs.
2022-05-04 14:20:12 -04:00
Aaron Boushley
aa050eaa2f Resolve issue with rejecting tracks from Firefox
When running the reflect example against Firefox 99.0.1 I was receiving
errors around parsing the SDP from Pion.

The error was:

  SIPCC Failed to parse SDP: SDP Parse Error on line 50:  c= connection
  line not specified for every media level, validation failed.

According to the RFC
[4566 5.7](https://datatracker.ietf.org/doc/html/rfc4566#section-5.7)

  A session description MUST contain either at least one "c=" field in
  each media description or a single "c=" field at the session level.
  It MAY contain a single session-level "c=" field and additional "c="
  field(s) per media description, in which case the per-media values
  override the session-level settings for the respective media.

I don't see any errors in the Pion repos for this. Interestingly the
webrtc-rs project that is porting Pion to rust has
[an issue](https://github.com/webrtc-rs/webrtc/issues/144)
where they're encountering this same error.
2022-05-02 10:46:31 -04:00
Renovate Bot
4a6984ac63 Update module github.com/pion/srtp/v2 to v2.0.6
Generated by renovateBot
2022-05-01 21:16:54 +00:00
Renovate Bot
ee66027442 Update golang.org/x/net digest to 2871e0c
Generated by renovateBot
2022-05-01 04:06:49 +00:00
Pion
c1467e4871 Update CI configs to v0.7.2
Update lint scripts and CI configs.
2022-04-27 23:00:19 -04:00
Yutaka Takeda
dc31439c93 Added a unit test
Relates to pion/sctp#218
2022-04-27 17:19:02 -07:00
Yutaka Takeda
eb1f6ad2db Max recv buf size via SettingEngine
Relates to pion/sctp#218
2022-04-27 17:19:02 -07:00
Yutaka Takeda
9f990dbca4 Fix ice-lite attribute
Fixes #2195
2022-04-27 17:07:09 -07:00
Sean DuBois
2cc6ea01ba Use ICETransport private fields for PeerConnection
PeerConnection used the public OnConnectionStateChange to track the
status of the ICETransport. This was incorrect because a user can
override this value at anytime.

Add a new internalOnConnectionStateChangeHandler that is set directly by
the PeerConnection and not accessible to the user.
2022-04-22 23:47:56 -04:00
Sean DuBois
a6981566c5 Update module github.com/pion/ice/v2 to v2.2.6
Generated by renovateBot
v3.1.34
2022-04-22 15:25:21 -04:00
cnderrauber
8d816c3b08 Update ice for accept aggressive nomination
Update ice to 2.2.5 for accept aggressive nomination
v3.1.33
2022-04-21 16:21:42 +08:00
Sean DuBois
84a8da8516 Add test for ICETransport OnConnectionStateChange
No code changes
2022-04-20 15:07:20 -04:00
rob
1368fe899e Drop packets when buffer is full in mux
Resolves #2180
v3.1.32
2022-04-20 00:34:59 -04:00
Renovate Bot
7c625b66c9 Update module github.com/pion/ice/v2 to v2.2.4
Generated by renovateBot
2022-04-19 18:02:49 +00:00
Sean DuBois
014b717636 Enable credential+credentialType for WASM
Resolves #2124
Resolves #2140
v3.1.30 v3.1.31
2022-04-18 16:10:07 -04:00
Juliusz Chroboczek
45061ef3e7 Add testable example for GatheringCompletePromise
It is not immediately obvious how to do traditional (non-trickle)
ICE in Pion, and the current documentation does not make it
sufficiently clear.  Add a testable example for non-Trickle ICE.
v3.1.29
2022-04-17 23:03:00 -04:00
Sean DuBois
6ae706a5a2 Add link to BWE example in README
Before this pointed to WIP issue in pion/interceptor
2022-04-16 22:26:02 -04:00
Pion
619ea1c6a1 Update CI configs to v0.7.1
Update lint scripts and CI configs.
2022-04-13 12:15:52 -04:00
david.s
e07d431f3b Fix RTPTransceiverDirection comments
Missing `the` in constants comments
2022-04-13 10:10:38 -04:00
Sean DuBois
716acdf44c Update module github.com/pion/rtp to v1.7.13
Generated by renovateBot
2022-04-12 12:15:24 -04:00
Sean DuBois
315bbfa723 Add AV1 Support
Also include example

Resolves #1670
v3.1.28
2022-04-12 10:20:00 -04:00