mediasoup-client 3.25.0 → 3.25.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/handlers/ortc/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EACX,eAAe,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CAc5E;AAED,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAgBA;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,WAAW,EAAE,iBAAiB,EAC9B,mBAAmB,EAAE,0BAA0B,GAC7C,OAAO,CAiCT"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/handlers/ortc/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EACX,eAAe,EAEf,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CAc5E;AAED,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAgBA;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,WAAW,EAAE,iBAAiB,EAC9B,mBAAmB,EAAE,0BAA0B,GAC7C,OAAO,CA+CT"}
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addNackSupportForOpus = addNackSupportForOpus;
4
4
  exports.getMsidStreamIdAndTrackId = getMsidStreamIdAndTrackId;
5
5
  exports.applyForcedRtpExtensions = applyForcedRtpExtensions;
6
+ const Logger_1 = require("../../Logger");
7
+ const logger = new Logger_1.Logger('ortc/utils');
6
8
  /**
7
9
  * This function adds RTCP NACK support for OPUS codec in given capabilities.
8
10
  */
@@ -58,6 +60,17 @@ function applyForcedRtpExtensions(transceiver, forcedRtpExtensions) {
58
60
  }
59
61
  return extenCap;
60
62
  });
61
- transceiver.setHeaderExtensionsToNegotiate(extensionsToNegotiate);
63
+ try {
64
+ transceiver.setHeaderExtensionsToNegotiate(extensionsToNegotiate);
65
+ }
66
+ catch (error) {
67
+ logger.error('applyForcedRtpExtensions() | transceiver.setHeaderExtensionsToNegotiate() failed', {
68
+ transceiver,
69
+ forcedRtpExtensions,
70
+ extensionsToNegotiate,
71
+ error,
72
+ });
73
+ return false;
74
+ }
62
75
  return true;
63
76
  }
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export * as types from './types';
6
6
  /**
7
7
  * Expose mediasoup-client version.
8
8
  */
9
- export declare const version = "3.25.0";
9
+ export declare const version = "3.25.1";
10
10
  /**
11
11
  * Expose Device class and device detector helpers.
12
12
  */
package/lib/index.js CHANGED
@@ -46,7 +46,7 @@ exports.types = __importStar(require("./types"));
46
46
  /**
47
47
  * Expose mediasoup-client version.
48
48
  */
49
- exports.version = '3.25.0';
49
+ exports.version = '3.25.1';
50
50
  /**
51
51
  * Expose Device class and device detector helpers.
52
52
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup-client",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "description": "mediasoup client side TypeScript library",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",