twilio-video 2.24.1 → 2.24.2

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,4 +1,4 @@
1
- /*! twilio-video.js 2.24.1
1
+ /*! twilio-video.js 2.24.2
2
2
 
3
3
  The following license applies to all parts of this software except as
4
4
  documented below.
@@ -999,7 +999,7 @@ function normalizeCodecSettings(nameOrSettings) {
999
999
  }
1000
1000
  module.exports = connect;
1001
1001
 
1002
- },{"./cancelableroompromise":1,"./encodingparameters":9,"./localparticipant":12,"./media/track/es5":14,"./networkqualityconfiguration":43,"./room":56,"./signaling/v2":70,"./util":130,"./util/cancelablepromise":123,"./util/constants":124,"./util/eventobserver":128,"./util/insightspublisher":131,"./util/insightspublisher/null":132,"./util/log":134,"./util/validate":148,"./webrtc":157,"./webrtc/util":170}],3:[function(require,module,exports){
1002
+ },{"./cancelableroompromise":1,"./encodingparameters":9,"./localparticipant":12,"./media/track/es5":14,"./networkqualityconfiguration":43,"./room":56,"./signaling/v2":70,"./util":131,"./util/cancelablepromise":123,"./util/constants":124,"./util/eventobserver":129,"./util/insightspublisher":132,"./util/insightspublisher/null":133,"./util/log":135,"./util/validate":149,"./webrtc":157,"./webrtc/util":170}],3:[function(require,module,exports){
1003
1003
  'use strict';
1004
1004
  var _a = require('./util/constants'), DEFAULT_LOG_LEVEL = _a.DEFAULT_LOG_LEVEL, DEFAULT_LOGGER_NAME = _a.DEFAULT_LOGGER_NAME;
1005
1005
  /**
@@ -1386,7 +1386,7 @@ function createLocalTracks(options) {
1386
1386
  }
1387
1387
  exports.createLocalTracks = createLocalTracks;
1388
1388
 
1389
- },{"./media/track/es5":14,"./media/track/noisecancellationimpl":28,"./util":130,"./util/constants":124,"./util/log":134,"./webaudio/workaround180748":154,"./webrtc":157}],5:[function(require,module,exports){
1389
+ },{"./media/track/es5":14,"./media/track/noisecancellationimpl":28,"./util":131,"./util/constants":124,"./util/log":135,"./webaudio/workaround180748":154,"./webrtc":157}],5:[function(require,module,exports){
1390
1390
  'use strict';
1391
1391
  var __extends = (this && this.__extends) || (function () {
1392
1392
  var extendStatics = function (d, b) {
@@ -1585,7 +1585,7 @@ var DataTrackSender = /** @class */ (function (_super) {
1585
1585
  }(DataTrackTransceiver));
1586
1586
  module.exports = DataTrackSender;
1587
1587
 
1588
- },{"../util":130,"./transceiver":7}],7:[function(require,module,exports){
1588
+ },{"../util":131,"./transceiver":7}],7:[function(require,module,exports){
1589
1589
  'use strict';
1590
1590
  var __extends = (this && this.__extends) || (function () {
1591
1591
  var extendStatics = function (d, b) {
@@ -1846,7 +1846,7 @@ var EventEmitter = require('events').EventEmitter;
1846
1846
  var hidePrivateAndCertainPublicPropertiesInClass = require('./util').hidePrivateAndCertainPublicPropertiesInClass;
1847
1847
  module.exports = hidePrivateAndCertainPublicPropertiesInClass(EventEmitter, ['domain']);
1848
1848
 
1849
- },{"./util":130,"events":173}],11:[function(require,module,exports){
1849
+ },{"./util":131,"events":173}],11:[function(require,module,exports){
1850
1850
  'use strict';
1851
1851
  var __assign = (this && this.__assign) || function () {
1852
1852
  __assign = Object.assign || function(t) {
@@ -1920,7 +1920,7 @@ module.exports = {
1920
1920
  LocalDataTrack: LocalDataTrack,
1921
1921
  };
1922
1922
 
1923
- },{"../package.json":174,"./connect":2,"./createlocaltrack":3,"./createlocaltracks":4,"./media/track/es5":14,"./preflight/preflighttest":50,"./util/support":143,"./vendor/loglevel":151}],12:[function(require,module,exports){
1923
+ },{"../package.json":174,"./connect":2,"./createlocaltrack":3,"./createlocaltracks":4,"./media/track/es5":14,"./preflight/preflighttest":50,"./util/support":144,"./vendor/loglevel":151}],12:[function(require,module,exports){
1924
1924
  'use strict';
1925
1925
  var __extends = (this && this.__extends) || (function () {
1926
1926
  var extendStatics = function (d, b) {
@@ -2632,7 +2632,7 @@ function getTrackPublication(trackPublications, track) {
2632
2632
  }
2633
2633
  module.exports = LocalParticipant;
2634
2634
 
2635
- },{"./media/track/es5":14,"./media/track/localaudiotrackpublication":20,"./media/track/localdatatrackpublication":22,"./media/track/localvideotrackpublication":26,"./participant":45,"./util":130,"./util/constants":124,"./util/validate":148,"./webrtc":157}],13:[function(require,module,exports){
2635
+ },{"./media/track/es5":14,"./media/track/localaudiotrackpublication":20,"./media/track/localdatatrackpublication":22,"./media/track/localvideotrackpublication":26,"./participant":45,"./util":131,"./util/constants":124,"./util/validate":149,"./webrtc":157}],13:[function(require,module,exports){
2636
2636
  'use strict';
2637
2637
  var __extends = (this && this.__extends) || (function () {
2638
2638
  var extendStatics = function (d, b) {
@@ -2963,7 +2963,7 @@ var Track = /** @class */ (function (_super) {
2963
2963
  */
2964
2964
  module.exports = Track;
2965
2965
 
2966
- },{"../../eventemitter":10,"../../util":130,"../../util/constants":124,"../../util/log":134}],19:[function(require,module,exports){
2966
+ },{"../../eventemitter":10,"../../util":131,"../../util/constants":124,"../../util/log":135}],19:[function(require,module,exports){
2967
2967
  'use strict';
2968
2968
  var __extends = (this && this.__extends) || (function () {
2969
2969
  var extendStatics = function (d, b) {
@@ -3737,7 +3737,7 @@ function restartWhenInadvertentlyStopped(localMediaTrack) {
3737
3737
  }
3738
3738
  module.exports = mixinLocalMediaTrack;
3739
3739
 
3740
- },{"../../util":130,"../../util/constants":124,"../../util/detectsilentaudio":125,"../../util/detectsilentvideo":126,"../../util/documentvisibilitymonitor.js":127,"../../util/localmediarestartdeferreds":133,"../../webaudio/workaround180748":154,"../../webrtc":157,"../../webrtc/util":170,"./sender":38}],24:[function(require,module,exports){
3740
+ },{"../../util":131,"../../util/constants":124,"../../util/detectsilentaudio":125,"../../util/detectsilentvideo":126,"../../util/documentvisibilitymonitor.js":127,"../../util/localmediarestartdeferreds":134,"../../webaudio/workaround180748":154,"../../webrtc":157,"../../webrtc/util":170,"./sender":38}],24:[function(require,module,exports){
3741
3741
  /* eslint new-cap:0 */
3742
3742
  'use strict';
3743
3743
  var __extends = (this && this.__extends) || (function () {
@@ -4250,7 +4250,7 @@ function workaroundSilentLocalVideo(localVideoTrack, doc) {
4250
4250
  */
4251
4251
  module.exports = LocalVideoTrack;
4252
4252
 
4253
- },{"../../util":130,"../../util/detectsilentvideo":126,"../../webrtc/util":170,"./localmediatrack":23,"./videotrack":42}],26:[function(require,module,exports){
4253
+ },{"../../util":131,"../../util/detectsilentvideo":126,"../../webrtc/util":170,"./localmediatrack":23,"./videotrack":42}],26:[function(require,module,exports){
4254
4254
  'use strict';
4255
4255
  var __extends = (this && this.__extends) || (function () {
4256
4256
  var extendStatics = function (d, b) {
@@ -4660,7 +4660,7 @@ function shimMediaElement(el, onUnintentionallyPaused) {
4660
4660
  }
4661
4661
  module.exports = MediaTrack;
4662
4662
 
4663
- },{"../../util":130,"../../util/localmediarestartdeferreds":133,"../../webrtc":157,"../../webrtc/util":170,"./":18}],28:[function(require,module,exports){
4663
+ },{"../../util":131,"../../util/localmediarestartdeferreds":134,"../../webrtc":157,"../../webrtc/util":170,"./":18}],28:[function(require,module,exports){
4664
4664
  'use strict';
4665
4665
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4666
4666
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -4889,7 +4889,7 @@ function applyNoiseCancellation(mediaStreamTrack, noiseCancellationOptions, log)
4889
4889
  }
4890
4890
  exports.applyNoiseCancellation = applyNoiseCancellation;
4891
4891
 
4892
- },{"../../noisecancellationadapter":44,"../../util/log":134}],29:[function(require,module,exports){
4892
+ },{"../../noisecancellationadapter":44,"../../util/log":135}],29:[function(require,module,exports){
4893
4893
  'use strict';
4894
4894
  var __extends = (this && this.__extends) || (function () {
4895
4895
  var extendStatics = function (d, b) {
@@ -6258,7 +6258,7 @@ function maybeUpdateDimensionHint(remoteVideoTrack) {
6258
6258
  */
6259
6259
  module.exports = RemoteVideoTrack;
6260
6260
 
6261
- },{"../../util/documentvisibilitymonitor.js":127,"../../util/nullobserver.js":137,"../../util/timeout":144,"./remotemediatrack":34,"./videotrack":42}],37:[function(require,module,exports){
6261
+ },{"../../util/documentvisibilitymonitor.js":127,"../../util/nullobserver.js":138,"../../util/timeout":145,"./remotemediatrack":34,"./videotrack":42}],37:[function(require,module,exports){
6262
6262
  'use strict';
6263
6263
  var __extends = (this && this.__extends) || (function () {
6264
6264
  var extendStatics = function (d, b) {
@@ -6576,7 +6576,7 @@ var TrackPublication = /** @class */ (function (_super) {
6576
6576
  */
6577
6577
  module.exports = TrackPublication;
6578
6578
 
6579
- },{"../../eventemitter":10,"../../util":130,"../../util/constants":124,"../../util/log":134}],40:[function(require,module,exports){
6579
+ },{"../../eventemitter":10,"../../util":131,"../../util/constants":124,"../../util/log":135}],40:[function(require,module,exports){
6580
6580
  'use strict';
6581
6581
  var __extends = (this && this.__extends) || (function () {
6582
6582
  var extendStatics = function (d, b) {
@@ -7412,8 +7412,7 @@ var NetworkQualityConfigurationImpl = /** @class */ (function (_super) {
7412
7412
  }(EventEmitter));
7413
7413
  module.exports = NetworkQualityConfigurationImpl;
7414
7414
 
7415
- },{"./util":130,"./util/constants":124,"events":173}],44:[function(require,module,exports){
7416
- /* eslint-disable no-console */
7415
+ },{"./util":131,"./util/constants":124,"events":173}],44:[function(require,module,exports){
7417
7416
  'use strict';
7418
7417
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
7419
7418
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -7453,8 +7452,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
7453
7452
  };
7454
7453
  Object.defineProperty(exports, "__esModule", { value: true });
7455
7454
  exports.createNoiseCancellationAudioProcessor = void 0;
7455
+ var dynamicImport = require('./util/dynamicimport');
7456
7456
  var Log = require('./util/log');
7457
- var dynamicImport = require('./vendor/dynamicimport');
7458
7457
  var PLUGIN_CONFIG = {
7459
7458
  krisp: {
7460
7459
  supportedVersion: '1.0.0',
@@ -7568,7 +7567,7 @@ function createNoiseCancellationAudioProcessor(noiseCancellationOptions, log) {
7568
7567
  }
7569
7568
  exports.createNoiseCancellationAudioProcessor = createNoiseCancellationAudioProcessor;
7570
7569
 
7571
- },{"./util/log":134,"./vendor/dynamicimport":149}],45:[function(require,module,exports){
7570
+ },{"./util/dynamicimport":128,"./util/log":135}],45:[function(require,module,exports){
7572
7571
  'use strict';
7573
7572
  var __extends = (this && this.__extends) || (function () {
7574
7573
  var extendStatics = function (d, b) {
@@ -8185,7 +8184,7 @@ function reemitTrackPublicationEvents(participant, publication) {
8185
8184
  }
8186
8185
  module.exports = Participant;
8187
8186
 
8188
- },{"./eventemitter":10,"./media/track/remoteaudiotrack":30,"./media/track/remoteaudiotrackpublication":31,"./media/track/remotedatatrack":32,"./media/track/remotedatatrackpublication":33,"./media/track/remotevideotrack":36,"./media/track/remotevideotrackpublication":37,"./util":130}],46:[function(require,module,exports){
8187
+ },{"./eventemitter":10,"./media/track/remoteaudiotrack":30,"./media/track/remoteaudiotrackpublication":31,"./media/track/remotedatatrack":32,"./media/track/remotedatatrackpublication":33,"./media/track/remotevideotrack":36,"./media/track/remotevideotrackpublication":37,"./util":131}],46:[function(require,module,exports){
8189
8188
  "use strict";
8190
8189
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8191
8190
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -8387,7 +8386,7 @@ function getTurnCredentials(token, wsServer) {
8387
8386
  }
8388
8387
  exports.getTurnCredentials = getTurnCredentials;
8389
8388
 
8390
- },{"../twilioconnection.js":119,"../util/constants":124,"../util/twilio-video-errors":145,"events":173}],48:[function(require,module,exports){
8389
+ },{"../twilioconnection.js":119,"../util/constants":124,"../util/twilio-video-errors":146,"events":173}],48:[function(require,module,exports){
8391
8390
  "use strict";
8392
8391
  var __read = (this && this.__read) || function (o, n) {
8393
8392
  var m = typeof Symbol === "function" && o[Symbol.iterator];
@@ -9133,7 +9132,7 @@ function runPreflight(token, options) {
9133
9132
  }
9134
9133
  exports.runPreflight = runPreflight;
9135
9134
 
9136
- },{"../eventemitter":10,"../util/constants":124,"../util/eventobserver":128,"../util/index":130,"../util/insightspublisher":131,"../util/log":134,"../util/movingaveragedelta":135,"../util/sid":142,"../util/twilio-video-errors":145,"./getCombinedConnectionStats":46,"./getturncredentials":47,"./makestat":48,"./mos":49,"./syntheticaudio":51,"./syntheticvideo":52,"./timer":53}],51:[function(require,module,exports){
9135
+ },{"../eventemitter":10,"../util/constants":124,"../util/eventobserver":129,"../util/index":131,"../util/insightspublisher":132,"../util/log":135,"../util/movingaveragedelta":136,"../util/sid":143,"../util/twilio-video-errors":146,"./getCombinedConnectionStats":46,"./getturncredentials":47,"./makestat":48,"./mos":49,"./syntheticaudio":51,"./syntheticvideo":52,"./timer":53}],51:[function(require,module,exports){
9137
9136
  "use strict";
9138
9137
  Object.defineProperty(exports, "__esModule", { value: true });
9139
9138
  exports.syntheticAudio = void 0;
@@ -10229,7 +10228,7 @@ function handleSignalingEvents(room, signaling) {
10229
10228
  }
10230
10229
  module.exports = Room;
10231
10230
 
10232
- },{"./eventemitter":10,"./remoteparticipant":55,"./stats/statsreport":115,"./util":130}],57:[function(require,module,exports){
10231
+ },{"./eventemitter":10,"./remoteparticipant":55,"./stats/statsreport":115,"./util":131}],57:[function(require,module,exports){
10233
10232
  /* eslint consistent-return:0 */
10234
10233
  'use strict';
10235
10234
  var __extends = (this && this.__extends) || (function () {
@@ -11336,7 +11335,7 @@ function maybeUpdateState(roomSignaling) {
11336
11335
  }
11337
11336
  module.exports = RoomSignaling;
11338
11337
 
11339
- },{"../statemachine":87,"../util":130,"../util/constants":124,"../util/log":134,"../util/timeout":144,"../util/twilio-video-errors":145,"./recording":61}],65:[function(require,module,exports){
11338
+ },{"../statemachine":87,"../util":131,"../util/constants":124,"../util/log":135,"../util/timeout":145,"../util/twilio-video-errors":146,"./recording":61}],65:[function(require,module,exports){
11340
11339
  'use strict';
11341
11340
  var __extends = (this && this.__extends) || (function () {
11342
11341
  var extendStatics = function (d, b) {
@@ -11636,7 +11635,7 @@ function createCancelableRoomSignalingPromise(token, wsServer, localParticipant,
11636
11635
  }
11637
11636
  module.exports = createCancelableRoomSignalingPromise;
11638
11637
 
11639
- },{"../../util":130,"../../util/cancelablepromise":123,"../../util/twilio-video-errors":145,"./peerconnectionmanager":77,"./room":83,"./twilioconnectiontransport":86}],67:[function(require,module,exports){
11638
+ },{"../../util":131,"../../util/cancelablepromise":123,"../../util/twilio-video-errors":146,"./peerconnectionmanager":77,"./room":83,"./twilioconnectiontransport":86}],67:[function(require,module,exports){
11640
11639
  'use strict';
11641
11640
  var __extends = (this && this.__extends) || (function () {
11642
11641
  var extendStatics = function (d, b) {
@@ -11782,7 +11781,7 @@ var IceBox = /** @class */ (function () {
11782
11781
  }());
11783
11782
  module.exports = IceBox;
11784
11783
 
11785
- },{"../../util/filter":129}],69:[function(require,module,exports){
11784
+ },{"../../util/filter":130}],69:[function(require,module,exports){
11786
11785
  'use strict';
11787
11786
  var _a = require('../../util/constants'), ICE_ACTIVITY_CHECK_PERIOD_MS = _a.ICE_ACTIVITY_CHECK_PERIOD_MS, ICE_INACTIVITY_THRESHOLD_MS = _a.ICE_INACTIVITY_THRESHOLD_MS;
11788
11787
  /**
@@ -12320,7 +12319,7 @@ var LocalParticipantV2 = /** @class */ (function (_super) {
12320
12319
  */
12321
12320
  module.exports = LocalParticipantV2;
12322
12321
 
12323
- },{"../../util":130,"../../util/constants":124,"../../util/log":134,"../localparticipant":58,"./localtrackpublication":72}],72:[function(require,module,exports){
12322
+ },{"../../util":131,"../../util/constants":124,"../../util/log":135,"../localparticipant":58,"./localtrackpublication":72}],72:[function(require,module,exports){
12324
12323
  'use strict';
12325
12324
  var __extends = (this && this.__extends) || (function () {
12326
12325
  var extendStatics = function (d, b) {
@@ -12447,7 +12446,7 @@ var LocalTrackPublicationV2 = /** @class */ (function (_super) {
12447
12446
  */
12448
12447
  module.exports = LocalTrackPublicationV2;
12449
12448
 
12450
- },{"../../util/twilio-video-errors":145,"../../util/twiliowarning":147,"../localtrackpublication":59}],73:[function(require,module,exports){
12449
+ },{"../../util/twilio-video-errors":146,"../../util/twiliowarning":148,"../localtrackpublication":59}],73:[function(require,module,exports){
12451
12450
  /* eslint callback-return:0 */
12452
12451
  'use strict';
12453
12452
  var __extends = (this && this.__extends) || (function () {
@@ -12968,7 +12967,7 @@ function createNetworkQualityInputsMessage(networkQualityInputs, networkQualityR
12968
12967
  }
12969
12968
  module.exports = NetworkQualitySignaling;
12970
12969
 
12971
- },{"../../util/asyncvar":120,"../../util/timeout":144,"./mediasignaling":73}],76:[function(require,module,exports){
12970
+ },{"../../util/asyncvar":120,"../../util/timeout":145,"./mediasignaling":73}],76:[function(require,module,exports){
12972
12971
  'use strict';
12973
12972
  var __extends = (this && this.__extends) || (function () {
12974
12973
  var extendStatics = function (d, b) {
@@ -13442,9 +13441,16 @@ var PeerConnectionV2 = /** @class */ (function (_super) {
13442
13441
  if (track.kind !== 'video' || track.readyState === 'ended') {
13443
13442
  return false;
13444
13443
  }
13445
- var browser = util.guessBrowser();
13444
+ // NOTE(mmalavalli): There is no guarantee that CanvasCaptureMediaStreamTracks will always have "width" and "height"
13445
+ // in their settings. So, we don't update the encodings if they are not present.
13446
+ // Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1367082
13447
+ var _a = track.getSettings(), height = _a.height, width = _a.width;
13448
+ if (typeof height !== 'number' || typeof width !== 'number') {
13449
+ return false;
13450
+ }
13446
13451
  // Note(mpatwardhan): always configure encodings for safari.
13447
13452
  // for chrome only when adaptive simulcast enabled.
13453
+ var browser = util.guessBrowser();
13448
13454
  if (browser === 'safari' || (browser === 'chrome' && this._isAdaptiveSimulcastEnabled)) {
13449
13455
  this._updateEncodings(track, encodings, trackReplaced);
13450
13456
  return true;
@@ -14821,7 +14827,7 @@ function setMaxBitrate(params, maxBitrate) {
14821
14827
  }
14822
14828
  module.exports = PeerConnectionV2;
14823
14829
 
14824
- },{"../../data/receiver":5,"../../media/track/receiver":29,"../../statemachine":87,"../../util":130,"../../util/backoff":121,"../../util/constants":124,"../../util/log":134,"../../util/sdp":138,"../../util/sdp/issue8329":139,"../../util/sdp/trackmatcher":141,"../../util/timeout":144,"../../util/twilio-video-errors":145,"../../webrtc":157,"../../webrtc/util":170,"./icebox":68,"./iceconnectionmonitor.js":69}],77:[function(require,module,exports){
14830
+ },{"../../data/receiver":5,"../../media/track/receiver":29,"../../statemachine":87,"../../util":131,"../../util/backoff":121,"../../util/constants":124,"../../util/log":135,"../../util/sdp":139,"../../util/sdp/issue8329":140,"../../util/sdp/trackmatcher":142,"../../util/timeout":145,"../../util/twilio-video-errors":146,"../../webrtc":157,"../../webrtc/util":170,"./icebox":68,"./iceconnectionmonitor.js":69}],77:[function(require,module,exports){
14825
14831
  'use strict';
14826
14832
  var __extends = (this && this.__extends) || (function () {
14827
14833
  var extendStatics = function (d, b) {
@@ -15389,7 +15395,7 @@ function updateConnectionState(pcm) {
15389
15395
  }
15390
15396
  module.exports = PeerConnectionManager;
15391
15397
 
15392
- },{"../../media/track/sender":38,"../../queueingeventemitter":54,"../../util":130,"../../util/twilio-video-errors":145,"../../webaudio/audiocontext":152,"../../webrtc/util":170,"./peerconnection":76}],78:[function(require,module,exports){
15398
+ },{"../../media/track/sender":38,"../../queueingeventemitter":54,"../../util":131,"../../util/twilio-video-errors":146,"../../webaudio/audiocontext":152,"../../webrtc/util":170,"./peerconnection":76}],78:[function(require,module,exports){
15393
15399
  /* eslint callback-return:0 */
15394
15400
  'use strict';
15395
15401
  var __extends = (this && this.__extends) || (function () {
@@ -15860,7 +15866,7 @@ var RenderHintsSignaling = /** @class */ (function (_super) {
15860
15866
  }(MediaSignaling));
15861
15867
  module.exports = RenderHintsSignaling;
15862
15868
 
15863
- },{"../../util":130,"../../util/timeout":144,"./mediasignaling":73}],83:[function(require,module,exports){
15869
+ },{"../../util":131,"../../util/timeout":145,"./mediasignaling":73}],83:[function(require,module,exports){
15864
15870
  /* eslint-disable no-console */
15865
15871
  'use strict';
15866
15872
  var __extends = (this && this.__extends) || (function () {
@@ -16718,7 +16724,7 @@ function replaceNullsWithDefaults(activeIceCandidatePair, peerConnectionId) {
16718
16724
  }
16719
16725
  module.exports = RoomV2;
16720
16726
 
16721
- },{"../../stats/statsreport":115,"../../util":130,"../../util/movingaveragedelta":135,"../../util/twilio-video-errors":145,"../room":64,"./dominantspeakersignaling":67,"./networkqualitymonitor":74,"./networkqualitysignaling":75,"./publisherhintsignaling.js":78,"./recording":79,"./remoteparticipant":80,"./renderhintssignaling":82,"./trackprioritysignaling":84,"./trackswitchoffsignaling":85}],84:[function(require,module,exports){
16727
+ },{"../../stats/statsreport":115,"../../util":131,"../../util/movingaveragedelta":136,"../../util/twilio-video-errors":146,"../room":64,"./dominantspeakersignaling":67,"./networkqualitymonitor":74,"./networkqualitysignaling":75,"./publisherhintsignaling.js":78,"./recording":79,"./remoteparticipant":80,"./renderhintssignaling":82,"./trackprioritysignaling":84,"./trackswitchoffsignaling":85}],84:[function(require,module,exports){
16722
16728
  'use strict';
16723
16729
  var __extends = (this && this.__extends) || (function () {
16724
16730
  var extendStatics = function (d, b) {
@@ -17429,7 +17435,7 @@ function setupTransport(transport) {
17429
17435
  }
17430
17436
  module.exports = TwilioConnectionTransport;
17431
17437
 
17432
- },{"../../statemachine":87,"../../twilioconnection":119,"../../util":130,"../../util/backoff":121,"../../util/constants":124,"../../util/timeout":144,"../../util/twilio-video-errors":145}],87:[function(require,module,exports){
17438
+ },{"../../statemachine":87,"../../twilioconnection":119,"../../util":131,"../../util/backoff":121,"../../util/constants":124,"../../util/timeout":145,"../../util/twilio-video-errors":146}],87:[function(require,module,exports){
17433
17439
  'use strict';
17434
17440
  var __extends = (this && this.__extends) || (function () {
17435
17441
  var extendStatics = function (d, b) {
@@ -17875,7 +17881,7 @@ function createUnreachableError(here, there) {
17875
17881
  }
17876
17882
  module.exports = StateMachine;
17877
17883
 
17878
- },{"./util":130,"events":173}],88:[function(require,module,exports){
17884
+ },{"./util":131,"events":173}],88:[function(require,module,exports){
17879
17885
  /* eslint no-undefined:0 */
17880
17886
  'use strict';
17881
17887
  /**
@@ -20479,7 +20485,7 @@ TwilioConnection.CloseReason = CloseReason;
20479
20485
  */
20480
20486
  module.exports = TwilioConnection;
20481
20487
 
20482
- },{"./statemachine":87,"./util":130,"./util/log":134,"./util/networkmonitor":136,"./util/timeout":144,"ws":175}],120:[function(require,module,exports){
20488
+ },{"./statemachine":87,"./util":131,"./util/log":135,"./util/networkmonitor":137,"./util/timeout":145,"ws":175}],120:[function(require,module,exports){
20483
20489
  'use strict';
20484
20490
  var defer = require('./').defer;
20485
20491
  /**
@@ -20544,7 +20550,7 @@ var AsyncVar = /** @class */ (function () {
20544
20550
  }());
20545
20551
  module.exports = AsyncVar;
20546
20552
 
20547
- },{"./":130}],121:[function(require,module,exports){
20553
+ },{"./":131}],121:[function(require,module,exports){
20548
20554
  /**
20549
20555
  * Expose `Backoff`.
20550
20556
  */
@@ -21253,6 +21259,29 @@ var DocumentVisibilityMonitor = /** @class */ (function () {
21253
21259
  module.exports = new DocumentVisibilityMonitor(2);
21254
21260
 
21255
21261
  },{}],128:[function(require,module,exports){
21262
+ 'use strict';
21263
+ module.exports = (function (scope) {
21264
+ var location = scope.location, URL = scope.URL;
21265
+ if ([location, URL].some(function (api) { return !api; })) {
21266
+ return function dynamicImportNotSupported(module) {
21267
+ return Promise.reject(new Error("Failed to import: " + module + ": dynamicImport is not supported"));
21268
+ };
21269
+ }
21270
+ scope.__twilioVideoImportedModules = {
21271
+ // Imported module map.
21272
+ };
21273
+ return function dynamicImport(module) {
21274
+ if (module in scope.__twilioVideoImportedModules) {
21275
+ return Promise.resolve(scope.__twilioVideoImportedModules[module]);
21276
+ }
21277
+ // NOTE(mmalavalli): Calling import() directly can cause build issues in TypeScript and Webpack
21278
+ // (and probably other frameworks). So, we create a Function that calls import() in its body.
21279
+ // eslint-disable-next-line no-new-func
21280
+ return new Function('scope', "return import('" + new URL(module, location) + "').then(m => scope.__twilioVideoImportedModules['" + module + "'] = m);")(scope);
21281
+ };
21282
+ }(globalThis));
21283
+
21284
+ },{}],129:[function(require,module,exports){
21256
21285
  /* eslint-disable no-console */
21257
21286
  'use strict';
21258
21287
  var __extends = (this && this.__extends) || (function () {
@@ -21350,7 +21379,7 @@ var EventObserver = /** @class */ (function (_super) {
21350
21379
  */
21351
21380
  module.exports = EventObserver;
21352
21381
 
21353
- },{"events":173}],129:[function(require,module,exports){
21382
+ },{"events":173}],130:[function(require,module,exports){
21354
21383
  'use strict';
21355
21384
  var Filter = /** @class */ (function () {
21356
21385
  function Filter(options) {
@@ -21394,7 +21423,7 @@ var Filter = /** @class */ (function () {
21394
21423
  }());
21395
21424
  module.exports = Filter;
21396
21425
 
21397
- },{}],130:[function(require,module,exports){
21426
+ },{}],131:[function(require,module,exports){
21398
21427
  'use strict';
21399
21428
  var __extends = (this && this.__extends) || (function () {
21400
21429
  var extendStatics = function (d, b) {
@@ -22291,7 +22320,7 @@ exports.isUserMediaTrack = isUserMediaTrack;
22291
22320
  exports.waitForSometime = waitForSometime;
22292
22321
  exports.waitForEvent = waitForEvent;
22293
22322
 
22294
- },{"../webrtc/util":170,"./constants":124,"./sid":142,"./twiliowarning":147}],131:[function(require,module,exports){
22323
+ },{"../webrtc/util":170,"./constants":124,"./sid":143,"./twiliowarning":148}],132:[function(require,module,exports){
22295
22324
  /* eslint-disable camelcase */
22296
22325
  'use strict';
22297
22326
  var __extends = (this && this.__extends) || (function () {
@@ -22586,7 +22615,7 @@ function reconnect(publisher, token, sdkName, sdkVersion, roomSid, participantSi
22586
22615
  */
22587
22616
  module.exports = InsightsPublisher;
22588
22617
 
22589
- },{"..":130,"../../util":130,"../browserdetection":122,"../constants":124,"events":173,"ws":175}],132:[function(require,module,exports){
22618
+ },{"..":131,"../../util":131,"../browserdetection":122,"../constants":124,"events":173,"ws":175}],133:[function(require,module,exports){
22590
22619
  // eslint-disable-next-line no-warning-comments
22591
22620
  // TODO(mroberts): This should be described as implementing some
22592
22621
  // InsightsPublisher interface.
@@ -22631,7 +22660,7 @@ var InsightsPublisher = /** @class */ (function () {
22631
22660
  }());
22632
22661
  module.exports = InsightsPublisher;
22633
22662
 
22634
- },{}],133:[function(require,module,exports){
22663
+ },{}],134:[function(require,module,exports){
22635
22664
  'use strict';
22636
22665
  var defer = require('./').defer;
22637
22666
  /**
@@ -22693,7 +22722,7 @@ var LocalMediaRestartDeferreds = /** @class */ (function () {
22693
22722
  }());
22694
22723
  module.exports = new LocalMediaRestartDeferreds();
22695
22724
 
22696
- },{"./":130}],134:[function(require,module,exports){
22725
+ },{"./":131}],135:[function(require,module,exports){
22697
22726
  /* eslint new-cap:0 */
22698
22727
  'use strict';
22699
22728
  var __read = (this && this.__read) || function (o, n) {
@@ -22980,7 +23009,7 @@ function validateLogLevels(levels) {
22980
23009
  }
22981
23010
  module.exports = Log;
22982
23011
 
22983
- },{"../vendor/loglevel":151,"./constants":124}],135:[function(require,module,exports){
23012
+ },{"../vendor/loglevel":151,"./constants":124}],136:[function(require,module,exports){
22984
23013
  'use strict';
22985
23014
  /**
22986
23015
  * Calculates the moving average delta for the given pair ofsamples. A sample (S)
@@ -23027,7 +23056,7 @@ var MovingAverageDelta = /** @class */ (function () {
23027
23056
  }());
23028
23057
  module.exports = MovingAverageDelta;
23029
23058
 
23030
- },{}],136:[function(require,module,exports){
23059
+ },{}],137:[function(require,module,exports){
23031
23060
  'use strict';
23032
23061
  /**
23033
23062
  * Monitor the network connection status to detect interruptions and handoffs.
@@ -23116,7 +23145,7 @@ var NetworkMonitor = /** @class */ (function () {
23116
23145
  }());
23117
23146
  module.exports = NetworkMonitor;
23118
23147
 
23119
- },{}],137:[function(require,module,exports){
23148
+ },{}],138:[function(require,module,exports){
23120
23149
  /* eslint-disable no-console */
23121
23150
  'use strict';
23122
23151
  var __extends = (this && this.__extends) || (function () {
@@ -23179,7 +23208,7 @@ var NullResizeObserver = /** @class */ (function (_super) {
23179
23208
  }(NullObserver));
23180
23209
  module.exports = { NullIntersectionObserver: NullIntersectionObserver, NullResizeObserver: NullResizeObserver, NullObserver: NullObserver };
23181
23210
 
23182
- },{}],138:[function(require,module,exports){
23211
+ },{}],139:[function(require,module,exports){
23183
23212
  'use strict';
23184
23213
  var __read = (this && this.__read) || function (o, n) {
23185
23214
  var m = typeof Symbol === "function" && o[Symbol.iterator];
@@ -23717,7 +23746,7 @@ exports.revertSimulcast = revertSimulcast;
23717
23746
  exports.setCodecPreferences = setCodecPreferences;
23718
23747
  exports.setSimulcast = setSimulcast;
23719
23748
 
23720
- },{"../":130,"./simulcast":140}],139:[function(require,module,exports){
23749
+ },{"../":131,"./simulcast":141}],140:[function(require,module,exports){
23721
23750
  'use strict';
23722
23751
  var RTCSessionDescription = require('../../webrtc').RTCSessionDescription;
23723
23752
  var _a = require('./'), createPtToCodecName = _a.createPtToCodecName, getMediaSections = _a.getMediaSections;
@@ -23910,7 +23939,7 @@ function addFmtpAttributeForRtxPt(mediaSection, rtxPt, pt) {
23910
23939
  }
23911
23940
  module.exports = workaround;
23912
23941
 
23913
- },{"../../webrtc":157,"./":138}],140:[function(require,module,exports){
23942
+ },{"../../webrtc":157,"./":139}],141:[function(require,module,exports){
23914
23943
  'use strict';
23915
23944
  var __read = (this && this.__read) || function (o, n) {
23916
23945
  var m = typeof Symbol === "function" && o[Symbol.iterator];
@@ -24173,7 +24202,7 @@ function setSimulcastInMediaSection(section, trackIdsToAttributes) {
24173
24202
  */
24174
24203
  module.exports = setSimulcastInMediaSection;
24175
24204
 
24176
- },{"../":130}],141:[function(require,module,exports){
24205
+ },{"../":131}],142:[function(require,module,exports){
24177
24206
  'use strict';
24178
24207
  var getMediaSections = require('./').getMediaSections;
24179
24208
  /**
@@ -24218,7 +24247,7 @@ var TrackMatcher = /** @class */ (function () {
24218
24247
  }());
24219
24248
  module.exports = TrackMatcher;
24220
24249
 
24221
- },{"./":138}],142:[function(require,module,exports){
24250
+ },{"./":139}],143:[function(require,module,exports){
24222
24251
  var SID_CHARS = '1234567890abcdef';
24223
24252
  var SID_CHAR_LENGTH = 32;
24224
24253
  // copied from: https://code.hq.twilio.com/flex/monkey/blob/0fdce2b6c52d6be0b17a5cdb92f0c54f119b8ea8/src/client/lib/sid.ts#L39
@@ -24237,7 +24266,7 @@ function createSID(prefix) {
24237
24266
  exports.sessionSID = createSID('SS');
24238
24267
  exports.createSID = createSID;
24239
24268
 
24240
- },{}],143:[function(require,module,exports){
24269
+ },{}],144:[function(require,module,exports){
24241
24270
  'use strict';
24242
24271
  var _a = require('../webrtc/util'), guessBrowser = _a.guessBrowser, isWebRTCSupported = _a.support;
24243
24272
  var getSdpFormat = require('../webrtc/util/sdp').getSdpFormat;
@@ -24284,7 +24313,7 @@ function isSupported() {
24284
24313
  }
24285
24314
  module.exports = isSupported;
24286
24315
 
24287
- },{"../webrtc/util":170,"../webrtc/util/sdp":172,"./browserdetection":122}],144:[function(require,module,exports){
24316
+ },{"../webrtc/util":170,"../webrtc/util/sdp":172,"./browserdetection":122}],145:[function(require,module,exports){
24288
24317
  'use strict';
24289
24318
  /**
24290
24319
  * A {@link Timeout} represents a resettable and clearable timeout.
@@ -24379,7 +24408,7 @@ var Timeout = /** @class */ (function () {
24379
24408
  }());
24380
24409
  module.exports = Timeout;
24381
24410
 
24382
- },{}],145:[function(require,module,exports){
24411
+ },{}],146:[function(require,module,exports){
24383
24412
  // NOTE: Do not edit this file. This code is auto-generated. Contact the
24384
24413
  // Twilio SDK Team for more information.
24385
24414
  'use strict';
@@ -25403,7 +25432,7 @@ var ConfigurationAcquireTurnFailedError = /** @class */ (function (_super) {
25403
25432
  exports.ConfigurationAcquireTurnFailedError = ConfigurationAcquireTurnFailedError;
25404
25433
  Object.defineProperty(TwilioErrorByCode, 53501, { value: ConfigurationAcquireTurnFailedError });
25405
25434
 
25406
- },{"./twilioerror":146}],146:[function(require,module,exports){
25435
+ },{"./twilioerror":147}],147:[function(require,module,exports){
25407
25436
  'use strict';
25408
25437
  var __extends = (this && this.__extends) || (function () {
25409
25438
  var extendStatics = function (d, b) {
@@ -25485,7 +25514,7 @@ var TwilioError = /** @class */ (function (_super) {
25485
25514
  }(Error));
25486
25515
  module.exports = TwilioError;
25487
25516
 
25488
- },{}],147:[function(require,module,exports){
25517
+ },{}],148:[function(require,module,exports){
25489
25518
  'use strict';
25490
25519
  /**
25491
25520
  * @private
@@ -25498,7 +25527,7 @@ var TwilioWarning = {
25498
25527
  };
25499
25528
  module.exports = TwilioWarning;
25500
25529
 
25501
- },{}],148:[function(require,module,exports){
25530
+ },{}],149:[function(require,module,exports){
25502
25531
  'use strict';
25503
25532
  var isNonArrayObject = require('./').isNonArrayObject;
25504
25533
  var _a = require('./constants'), E = _a.typeErrors, clientTrackSwitchOffControl = _a.clientTrackSwitchOffControl, videoContentPreferencesMode = _a.videoContentPreferencesMode, subscriptionMode = _a.subscriptionMode, trackPriority = _a.trackPriority, trackSwitchOffMode = _a.trackSwitchOffMode;
@@ -25615,52 +25644,7 @@ exports.validateBandwidthProfile = validateBandwidthProfile;
25615
25644
  exports.validateLocalTrack = validateLocalTrack;
25616
25645
  exports.validateObject = validateObject;
25617
25646
 
25618
- },{"./":130,"./constants":124}],149:[function(require,module,exports){
25619
- /**
25620
- * Copyright (c) 2018 uupaa and 2019 Google LLC
25621
- * Licensed under the MIT license.
25622
- *
25623
- * Copied from https://github.com/GoogleChromeLabs/dynamic-import-polyfill
25624
- */
25625
- module.exports = (function (scope) {
25626
- var document = scope.document, location = scope.location, Blob = scope.Blob, URL = scope.URL;
25627
- if ([document, location, Blob, URL].some(function (api) { return !api; })) {
25628
- return function dynamicImportNotSupported(module) {
25629
- return Promise.reject(new Error("Failed to import: " + module + ": dynamicImport is not supported"));
25630
- };
25631
- }
25632
- var cleanupScript = function (script) {
25633
- URL.revokeObjectURL(script.src);
25634
- script.remove();
25635
- };
25636
- scope.__twilioImportedModules = {
25637
- // Imported module map.
25638
- };
25639
- return function dynamicImport(module) {
25640
- return new Promise(function (resolve, reject) {
25641
- var absURL = new URL(module, location);
25642
- var moduleBlob = new Blob([
25643
- "import * as m from '" + absURL + "';",
25644
- "window.__twilioImportedModules['" + absURL + "']=m;"
25645
- ], { type: 'text/javascript' });
25646
- var script = Object.assign(document.createElement('script'), {
25647
- type: 'module',
25648
- src: URL.createObjectURL(moduleBlob),
25649
- onerror: function () {
25650
- cleanupScript(script);
25651
- reject(new Error("Failed to import: " + absURL));
25652
- },
25653
- onload: function () {
25654
- cleanupScript(script);
25655
- resolve(scope.__twilioImportedModules[absURL]);
25656
- },
25657
- });
25658
- document.head.appendChild(script);
25659
- });
25660
- };
25661
- }(globalThis));
25662
-
25663
- },{}],150:[function(require,module,exports){
25647
+ },{"./":131,"./constants":124}],150:[function(require,module,exports){
25664
25648
  /**
25665
25649
  * Copyright (c) 2011-2022 Isaac Z. Schlueter
25666
25650
  * Licensed under the ISC License.
@@ -29561,7 +29545,7 @@ module.exports={
29561
29545
  "name": "twilio-video",
29562
29546
  "title": "Twilio Video",
29563
29547
  "description": "Twilio Video JavaScript Library",
29564
- "version": "2.24.1",
29548
+ "version": "2.24.2",
29565
29549
  "homepage": "https://twilio.com",
29566
29550
  "author": "Mark Andrus Roberts <mroberts@twilio.com>",
29567
29551
  "contributors": [