mediasoup-client 3.16.5 → 3.16.7
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.
|
@@ -7,7 +7,7 @@ class FakeEventTarget {
|
|
|
7
7
|
if (!callback) {
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
|
-
this.listeners[type]
|
|
10
|
+
this.listeners[type] = this.listeners[type] ?? [];
|
|
11
11
|
this.listeners[type].push({
|
|
12
12
|
callback: typeof callback === 'function' ? callback : callback.handleEvent,
|
|
13
13
|
once: typeof options === 'object' && options.once === true,
|
|
@@ -107,8 +107,8 @@ function extractDtlsParameters({ sdpObject, }) {
|
|
|
107
107
|
if (!setup || !fingerprint) {
|
|
108
108
|
const mediaObject = (sdpObject.media ?? []).find((m) => m.port !== 0);
|
|
109
109
|
if (mediaObject) {
|
|
110
|
-
setup
|
|
111
|
-
fingerprint
|
|
110
|
+
setup = setup ?? mediaObject.setup;
|
|
111
|
+
fingerprint = fingerprint ?? mediaObject.fingerprint;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
if (!setup) {
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediasoup-client",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.7",
|
|
4
4
|
"description": "mediasoup client side TypeScript library",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"awaitqueue": "^3.3.0",
|
|
77
77
|
"debug": "^4.4.3",
|
|
78
78
|
"events-alias": "npm:events@^3.3.0",
|
|
79
|
-
"fake-mediastreamtrack": "^2.2.
|
|
79
|
+
"fake-mediastreamtrack": "^2.2.1",
|
|
80
80
|
"h264-profile-level-id": "^2.3.1",
|
|
81
81
|
"sdp-transform": "^2.15.0",
|
|
82
82
|
"supports-color": "^10.2.2"
|