twilio-video 2.18.2 → 2.18.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@ The Twilio Programmable Video SDKs use [Semantic Versioning](http://www.semver.o
2
2
 
3
3
  **Version 1.x reached End of Life on September 8th, 2021.** See the changelog entry [here](https://www.twilio.com/changelog/end-of-life-complete-for-unsupported-versions-of-the-programmable-video-sdk). Support for the 1.x version ended on December 4th, 2020.
4
4
 
5
+ 2.18.3 (January 4, 2022)
6
+ ========================
7
+
8
+ Bug Fixes
9
+ ---------
10
+
11
+ - Fixed a bug where connect was returning a Promise type instead of a CancelablePromise. (VIDEO-7831)
12
+ - Fixed a bug where `audioLevel`, `frameRate`, and `captureDimensions` WebRTC stats are returning null on certain browsers. With this release, these stats are now populated whenever they are available. (VIDEO-3600)
13
+
5
14
  2.18.2 (December 15, 2021)
6
15
  ==========================
7
16
 
package/README.md CHANGED
@@ -74,7 +74,7 @@ Releases of twilio-video.js are hosted on a CDN, and you can include these
74
74
  directly in your web app using a <script> tag.
75
75
 
76
76
  ```html
77
- <script src="//sdk.twilio.com/js/video/releases/2.18.2/twilio-video.min.js"></script>
77
+ <script src="//sdk.twilio.com/js/video/releases/2.18.3/twilio-video.min.js"></script>
78
78
 
79
79
  ```
80
80
 
@@ -1,4 +1,4 @@
1
- /*! twilio-video.js 2.18.2
1
+ /*! twilio-video.js 2.18.3
2
2
 
3
3
  The following license applies to all parts of this software except as
4
4
  documented below.
@@ -19561,6 +19561,17 @@ var CancelablePromise = /** @class */ (function () {
19561
19561
  promise.then.apply(promise, __spreadArray([], __read(args))).then(resolve, reject);
19562
19562
  }, this._onCancel);
19563
19563
  };
19564
+ /**
19565
+ * @param {?function} onFinally
19566
+ * @returns {CancelablePromise}
19567
+ */
19568
+ CancelablePromise.prototype.finally = function () {
19569
+ var args = [].slice.call(arguments);
19570
+ var promise = this._promise;
19571
+ return new CancelablePromise(function onCreate(resolve, reject) {
19572
+ promise.finally.apply(promise, __spreadArray([], __read(args))).then(resolve, reject);
19573
+ }, this._onCancel);
19574
+ };
19564
19575
  return CancelablePromise;
19565
19576
  }());
19566
19577
  module.exports = CancelablePromise;
@@ -25311,6 +25322,7 @@ function standardizeChromeOrSafariStats(response) {
25311
25322
  var remoteOutbound = null;
25312
25323
  var track = null;
25313
25324
  var codec = null;
25325
+ var localMedia = null;
25314
25326
 
25315
25327
  response.forEach(function(stat) {
25316
25328
  switch (stat.type) {
@@ -25320,6 +25332,9 @@ function standardizeChromeOrSafariStats(response) {
25320
25332
  case 'outbound-rtp':
25321
25333
  outbound.push(stat);
25322
25334
  break;
25335
+ case 'media-source':
25336
+ localMedia = stat;
25337
+ break;
25323
25338
  case 'track':
25324
25339
  track = stat;
25325
25340
  break;
@@ -25344,6 +25359,7 @@ function standardizeChromeOrSafariStats(response) {
25344
25359
  var standardizedStats = {};
25345
25360
  var statSources = [
25346
25361
  source, // local rtp stats
25362
+ localMedia,
25347
25363
  track,
25348
25364
  codec,
25349
25365
  remoteSource && remoteSource.ssrc === source.ssrc ? remoteSource : null, // remote rtp stats
@@ -25387,6 +25403,7 @@ function standardizeChromeOrSafariStats(response) {
25387
25403
  standardizedStats.frameWidthReceived = frameWidth;
25388
25404
  } else {
25389
25405
  standardizedStats.frameWidthSent = frameWidth;
25406
+ standardizedStats.frameWidthInput = track.frameWidth;
25390
25407
  }
25391
25408
  }
25392
25409
 
@@ -25396,12 +25413,13 @@ function standardizeChromeOrSafariStats(response) {
25396
25413
  standardizedStats.frameHeightReceived = frameHeight;
25397
25414
  } else {
25398
25415
  standardizedStats.frameHeightSent = frameHeight;
25416
+ standardizedStats.frameHeightInput = track.frameHeight;
25399
25417
  }
25400
25418
  }
25401
25419
 
25402
25420
  var framesPerSecond = getStatValue('framesPerSecond');
25403
25421
  if (typeof framesPerSecond === 'number') {
25404
- standardizedStats.frameRateSent = framesPerSecond;
25422
+ standardizedStats[isRemote ? 'frameRateReceived' : 'frameRateSent'] = framesPerSecond;
25405
25423
  }
25406
25424
 
25407
25425
  var bytesReceived = getStatValue('bytesReceived');
@@ -28069,54 +28087,41 @@ exports.updateUnifiedPlanTrackIdsToSSRCs = updateUnifiedPlanTrackIdsToSSRCs;
28069
28087
 
28070
28088
  },{"./":165}],168:[function(require,module,exports){
28071
28089
  module.exports={
28072
- "_from": "@twilio/webrtc@4.5.1",
28073
- "_id": "@twilio/webrtc@4.5.1",
28074
- "_inBundle": false,
28075
- "_integrity": "sha512-0GwnffxJ71jm/7sYD8MYHzZRCR59p7KYqiMO8/Fmny7S4L0s8Ms36ghUUfCE7x/XuWjAC4FU6L/DkFN1Ewuu8Q==",
28076
- "_location": "/@twilio/webrtc",
28077
- "_phantomChildren": {},
28078
- "_requested": {
28079
- "type": "version",
28080
- "registry": true,
28081
- "raw": "@twilio/webrtc@4.5.1",
28082
- "name": "@twilio/webrtc",
28083
- "escapedName": "@twilio%2fwebrtc",
28084
- "scope": "@twilio",
28085
- "rawSpec": "4.5.1",
28086
- "saveSpec": null,
28087
- "fetchSpec": "4.5.1"
28090
+ "name": "@twilio/webrtc",
28091
+ "version": "4.5.2",
28092
+ "description": "WebRTC-related APIs and shims used by twilio-video.js",
28093
+ "scripts": {
28094
+ "build": "npm-run-all clean lint test",
28095
+ "clean": "rimraf coverage",
28096
+ "lint": "eslint ./lib",
28097
+ "test:unit": "istanbul cover node_modules/mocha/bin/_mocha -- ./test/unit/index.js",
28098
+ "test:integration:native": "karma start karma/integration.conf.js",
28099
+ "test:integration:adapter": "karma start karma/integration.adapter.conf.js",
28100
+ "test:integration": "npm-run-all test:integration:*",
28101
+ "test": "npm-run-all test:*"
28088
28102
  },
28089
- "_requiredBy": [
28090
- "/"
28091
- ],
28092
- "_resolved": "https://registry.npmjs.org/@twilio/webrtc/-/webrtc-4.5.1.tgz",
28093
- "_shasum": "9a69b8f3709624b215e9481097626b1d3ae879ba",
28094
- "_spec": "@twilio/webrtc@4.5.1",
28095
- "_where": "/home/circleci/project",
28096
- "author": {
28097
- "name": "Manjesh Malavalli",
28098
- "email": "mmalavalli@twilio.com"
28103
+ "repository": {
28104
+ "type": "git",
28105
+ "url": "git+https://github.com/twilio/twilio-webrtc.js.git"
28099
28106
  },
28107
+ "keywords": [
28108
+ "shim",
28109
+ "twilio",
28110
+ "video",
28111
+ "webrtc"
28112
+ ],
28113
+ "author": "Manjesh Malavalli <mmalavalli@twilio.com>",
28114
+ "contributors": [
28115
+ "Mark Roberts <mroberts@twilio.com>",
28116
+ "Ryan Rowland <rrowland@twilio.com>",
28117
+ "Makarand Patwardhan <mpatwardhan@twilio.com>"
28118
+ ],
28119
+ "license": "BSD-3-Clause",
28120
+ "main": "./lib/index.js",
28100
28121
  "bugs": {
28101
28122
  "url": "https://github.com/twilio/twilio-webrtc.js/issues"
28102
28123
  },
28103
- "bundleDependencies": false,
28104
- "contributors": [
28105
- {
28106
- "name": "Mark Roberts",
28107
- "email": "mroberts@twilio.com"
28108
- },
28109
- {
28110
- "name": "Ryan Rowland",
28111
- "email": "rrowland@twilio.com"
28112
- },
28113
- {
28114
- "name": "Makarand Patwardhan",
28115
- "email": "mpatwardhan@twilio.com"
28116
- }
28117
- ],
28118
- "deprecated": false,
28119
- "description": "WebRTC-related APIs and shims used by twilio-video.js",
28124
+ "homepage": "https://github.com/twilio/twilio-webrtc.js#readme",
28120
28125
  "devDependencies": {
28121
28126
  "browserify": "^14.4.0",
28122
28127
  "electron": "9.4.0",
@@ -28142,32 +28147,7 @@ module.exports={
28142
28147
  "twilio-release-tool": "^1.0.0",
28143
28148
  "watchify": "^4.0.0",
28144
28149
  "webrtc-adapter": "^6.4.8"
28145
- },
28146
- "homepage": "https://github.com/twilio/twilio-webrtc.js#readme",
28147
- "keywords": [
28148
- "shim",
28149
- "twilio",
28150
- "video",
28151
- "webrtc"
28152
- ],
28153
- "license": "BSD-3-Clause",
28154
- "main": "./lib/index.js",
28155
- "name": "@twilio/webrtc",
28156
- "repository": {
28157
- "type": "git",
28158
- "url": "git+https://github.com/twilio/twilio-webrtc.js.git"
28159
- },
28160
- "scripts": {
28161
- "build": "npm-run-all clean lint test",
28162
- "clean": "rimraf coverage",
28163
- "lint": "eslint ./lib",
28164
- "test": "npm-run-all test:*",
28165
- "test:integration": "npm-run-all test:integration:*",
28166
- "test:integration:adapter": "karma start karma/integration.adapter.conf.js",
28167
- "test:integration:native": "karma start karma/integration.conf.js",
28168
- "test:unit": "istanbul cover node_modules/mocha/bin/_mocha -- ./test/unit/index.js"
28169
- },
28170
- "version": "4.5.1"
28150
+ }
28171
28151
  }
28172
28152
 
28173
28153
  },{}],169:[function(require,module,exports){
@@ -31331,7 +31311,7 @@ module.exports={
31331
31311
  "name": "twilio-video",
31332
31312
  "title": "Twilio Video",
31333
31313
  "description": "Twilio Video JavaScript Library",
31334
- "version": "2.18.2",
31314
+ "version": "2.18.3",
31335
31315
  "homepage": "https://twilio.com",
31336
31316
  "author": "Mark Andrus Roberts <mroberts@twilio.com>",
31337
31317
  "contributors": [
@@ -31465,7 +31445,7 @@ module.exports={
31465
31445
  "test:framework:install": "npm install chromedriver && npm install selenium-webdriver && npm install geckodriver && npm install puppeteer",
31466
31446
  "test:framework": "npm-run-all test:framework:install test:framework:no-framework test:framework:react",
31467
31447
  "test": "npm-run-all test:unit test:integration",
31468
- "build:es5": "rimraf ./es5 && tsc tsdef/twilio-video-tests.ts --noEmit && tsc",
31448
+ "build:es5": "rimraf ./es5 && tsc tsdef/twilio-video-tests.ts --noEmit --lib es2018,dom && tsc ",
31469
31449
  "build:js": "node ./scripts/build.js ./src/twilio-video.js ./LICENSE.md ./dist/twilio-video.js",
31470
31450
  "build:min.js": "uglifyjs ./dist/twilio-video.js -o ./dist/twilio-video.min.js --comments \"/^! twilio-video.js/\" -b beautify=false,ascii_only=true",
31471
31451
  "build": "npm-run-all clean lint docs test:unit test:integration build:es5 build:js build:min.js test:umd",
@@ -31475,7 +31455,7 @@ module.exports={
31475
31455
  "clean": "rimraf ./coverage ./es5 ./dist"
31476
31456
  },
31477
31457
  "dependencies": {
31478
- "@twilio/webrtc": "4.5.1",
31458
+ "@twilio/webrtc": "4.5.2",
31479
31459
  "backoff": "^2.5.0",
31480
31460
  "ws": "^7.4.6",
31481
31461
  "xmlhttprequest": "^1.8.0"