mediasoup-client 3.6.70 → 3.6.72
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.
- package/lib/handlers/Chrome74.js +1 -1
- package/lib/handlers/Firefox60.js +1 -1
- package/lib/handlers/sdp/commonUtils.d.ts +4 -0
- package/lib/handlers/sdp/commonUtils.d.ts.map +1 -1
- package/lib/handlers/sdp/commonUtils.js +21 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +8 -8
package/lib/handlers/Chrome74.js
CHANGED
|
@@ -282,7 +282,7 @@ class Chrome74 extends HandlerInterface_1.HandlerInterface {
|
|
|
282
282
|
(sendingRtpParameters.codecs[0].mimeType.toLowerCase() === 'video/vp8' ||
|
|
283
283
|
sendingRtpParameters.codecs[0].mimeType.toLowerCase() === 'video/h264')) {
|
|
284
284
|
for (const encoding of sendingRtpParameters.encodings) {
|
|
285
|
-
encoding.scalabilityMode = '
|
|
285
|
+
encoding.scalabilityMode = 'S1T2';
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
this._remoteSdp.send({
|
|
@@ -293,7 +293,7 @@ class Firefox60 extends HandlerInterface_1.HandlerInterface {
|
|
|
293
293
|
(sendingRtpParameters.codecs[0].mimeType.toLowerCase() === 'video/vp8' ||
|
|
294
294
|
sendingRtpParameters.codecs[0].mimeType.toLowerCase() === 'video/h264')) {
|
|
295
295
|
for (const encoding of sendingRtpParameters.encodings) {
|
|
296
|
-
encoding.scalabilityMode = '
|
|
296
|
+
encoding.scalabilityMode = 'S1T2';
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
this._remoteSdp.send({
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { DtlsParameters } from '../../Transport';
|
|
2
2
|
import { RtpCapabilities, RtpParameters } from '../../RtpParameters';
|
|
3
|
+
/**
|
|
4
|
+
* This function must be called with an SDP with 1 m=audio and 1 m=video
|
|
5
|
+
* sections.
|
|
6
|
+
*/
|
|
3
7
|
export declare function extractRtpCapabilities({ sdpObject }: {
|
|
4
8
|
sdpObject: any;
|
|
5
9
|
}): RtpCapabilities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonUtils.d.ts","sourceRoot":"","sources":["../../../src/handlers/sdp/commonUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAY,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EACN,eAAe,EAGf,aAAa,EAEb,MAAM,qBAAqB,CAAC;AAE7B,wBAAgB,sBAAsB,CACrC,EAAE,SAAS,EAAE,EACb;IAAE,SAAS,EAAE,GAAG,CAAA;CAAE,GAChB,eAAe,
|
|
1
|
+
{"version":3,"file":"commonUtils.d.ts","sourceRoot":"","sources":["../../../src/handlers/sdp/commonUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAY,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EACN,eAAe,EAGf,aAAa,EAEb,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,EAAE,SAAS,EAAE,EACb;IAAE,SAAS,EAAE,GAAG,CAAA;CAAE,GAChB,eAAe,CAuIjB;AAED,wBAAgB,qBAAqB,CACpC,EAAE,SAAS,EAAE,EACb;IAAE,SAAS,EAAE,GAAG,CAAA;CAAE,GAChB,cAAc,CAuChB;AAED,wBAAgB,QAAQ,CACvB,EAAE,gBAAgB,EAAE,EACpB;IAAE,gBAAgB,EAAE,GAAG,CAAA;CAAE,GACvB,MAAM,CASR;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,EACC,kBAAkB,EAClB,iBAAiB,EACjB,EACD;IACC,kBAAkB,EAAE,aAAa,CAAC;IAClC,iBAAiB,EAAE,GAAG,CAAC;CACvB,GACC,IAAI,CAsDN"}
|
|
@@ -25,6 +25,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.applyCodecParameters = exports.getCname = exports.extractDtlsParameters = exports.extractRtpCapabilities = void 0;
|
|
27
27
|
const sdpTransform = __importStar(require("sdp-transform"));
|
|
28
|
+
/**
|
|
29
|
+
* This function must be called with an SDP with 1 m=audio and 1 m=video
|
|
30
|
+
* sections.
|
|
31
|
+
*/
|
|
28
32
|
function extractRtpCapabilities({ sdpObject }) {
|
|
29
33
|
// Map of RtpCodecParameters indexed by payload type.
|
|
30
34
|
const codecsMap = new Map();
|
|
@@ -81,16 +85,29 @@ function extractRtpCapabilities({ sdpObject }) {
|
|
|
81
85
|
}
|
|
82
86
|
// Get RTCP feedback for each codec.
|
|
83
87
|
for (const fb of m.rtcpFb || []) {
|
|
84
|
-
const codec = codecsMap.get(fb.payload);
|
|
85
|
-
if (!codec)
|
|
86
|
-
continue;
|
|
87
88
|
const feedback = {
|
|
88
89
|
type: fb.type,
|
|
89
90
|
parameter: fb.subtype
|
|
90
91
|
};
|
|
91
92
|
if (!feedback.parameter)
|
|
92
93
|
delete feedback.parameter;
|
|
93
|
-
|
|
94
|
+
// rtcp-fb payload is not '*', so just apply it to its corresponding
|
|
95
|
+
// codec.
|
|
96
|
+
if (fb.payload !== '*') {
|
|
97
|
+
const codec = codecsMap.get(fb.payload);
|
|
98
|
+
if (!codec)
|
|
99
|
+
continue;
|
|
100
|
+
codec.rtcpFeedback.push(feedback);
|
|
101
|
+
}
|
|
102
|
+
// If rtcp-fb payload is '*' it must be applied to all codecs with same
|
|
103
|
+
// kind (with some exceptions such as RTX codec).
|
|
104
|
+
else {
|
|
105
|
+
for (const codec of codecsMap.values()) {
|
|
106
|
+
if (codec.kind === kind && !/.+\/rtx$/i.test(codec.mimeType)) {
|
|
107
|
+
codec.rtcpFeedback.push(feedback);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
94
111
|
}
|
|
95
112
|
// Get RTP header extensions.
|
|
96
113
|
for (const ext of m.ext || []) {
|
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.6.
|
|
3
|
+
"version": "3.6.72",
|
|
4
4
|
"description": "mediasoup client side JavaScript library",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/events": "^3.0.0",
|
|
77
|
-
"@types/jest": "^29.
|
|
77
|
+
"@types/jest": "^29.4.0",
|
|
78
78
|
"@types/sdp-transform": "^2.4.5",
|
|
79
79
|
"@types/uuid": "^3.4.9",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
81
|
-
"@typescript-eslint/parser": "^5.
|
|
82
|
-
"eslint": "^8.
|
|
83
|
-
"eslint-plugin-jest": "^27.2.
|
|
84
|
-
"jest": "^29.
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
81
|
+
"@typescript-eslint/parser": "^5.49.0",
|
|
82
|
+
"eslint": "^8.32.0",
|
|
83
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
84
|
+
"jest": "^29.4.0",
|
|
85
85
|
"open-cli": "^7.1.0",
|
|
86
|
-
"ts-jest": "^29.0.
|
|
86
|
+
"ts-jest": "^29.0.5",
|
|
87
87
|
"tsc-watch": "^6.0.0",
|
|
88
88
|
"typescript": "^4.9.4"
|
|
89
89
|
}
|