mediasoup-client 3.6.98 → 3.6.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,9 +138,9 @@ function extractRtpCapabilities({ sdpObject }) {
138
138
  exports.extractRtpCapabilities = extractRtpCapabilities;
139
139
  function extractDtlsParameters({ sdpObject }) {
140
140
  const mediaObject = (sdpObject.media || [])
141
- .find((m) => (m.iceUfrag && m.port !== 0));
141
+ .find((m) => (m.port !== 0 && m.setup));
142
142
  if (!mediaObject) {
143
- throw new Error('no active media section found');
143
+ throw new Error('no active media section with DTLS role found');
144
144
  }
145
145
  const fingerprint = mediaObject.fingerprint || sdpObject.fingerprint;
146
146
  let role;
package/lib/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { types };
8
8
  /**
9
9
  * Expose mediasoup-client version.
10
10
  */
11
- export declare const version = "3.6.98";
11
+ export declare const version = "3.6.99";
12
12
  /**
13
13
  * Expose Device class and detectDevice() helper.
14
14
  */
package/lib/index.js CHANGED
@@ -37,7 +37,7 @@ exports.types = types;
37
37
  /**
38
38
  * Expose mediasoup-client version.
39
39
  */
40
- exports.version = '3.6.98';
40
+ exports.version = '3.6.99';
41
41
  /**
42
42
  * Expose parseScalabilityMode() function.
43
43
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup-client",
3
- "version": "3.6.98",
3
+ "version": "3.6.99",
4
4
  "description": "mediasoup client side JavaScript library",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
@@ -65,7 +65,7 @@
65
65
  "awaitqueue": "^3.0.1",
66
66
  "debug": "^4.3.4",
67
67
  "events": "^3.3.0",
68
- "fake-mediastreamtrack": "^1.1.6",
68
+ "fake-mediastreamtrack": "^1.2.0",
69
69
  "h264-profile-level-id": "^1.0.1",
70
70
  "queue-microtask": "^1.2.3",
71
71
  "sdp-transform": "^2.14.1",
@@ -74,14 +74,14 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/events": "^3.0.0",
77
- "@types/jest": "^29.5.3",
77
+ "@types/jest": "^29.5.4",
78
78
  "@types/sdp-transform": "^2.4.6",
79
79
  "@types/ua-parser-js": "^0.7.36",
80
- "@typescript-eslint/eslint-plugin": "^6.0.0",
81
- "@typescript-eslint/parser": "^6.0.0",
82
- "eslint": "^8.45.0",
80
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
81
+ "@typescript-eslint/parser": "^6.4.1",
82
+ "eslint": "^8.47.0",
83
83
  "eslint-plugin-jest": "^27.2.3",
84
- "jest": "^29.6.1",
84
+ "jest": "^29.6.3",
85
85
  "open-cli": "^7.2.0",
86
86
  "ts-jest": "^29.1.1",
87
87
  "typescript": "^5.1.6"