@100mslive/hms-video-store 0.2.56 → 0.2.59

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.
@@ -974,6 +974,7 @@ var createDefaultStoreState = function createDefaultStoreState() {
974
974
  HMSNotificationTypes["ROLE_CHANGE_REQUEST"] = "ROLE_CHANGE_REQUEST";
975
975
  HMSNotificationTypes["ROLE_UPDATED"] = "ROLE_UPDATED";
976
976
  HMSNotificationTypes["CHANGE_TRACK_STATE_REQUEST"] = "CHANGE_TRACK_STATE_REQUEST";
977
+ HMSNotificationTypes["CHANGE_MULTI_TRACK_STATE_REQUEST"] = "CHANGE_MULTI_TRACK_STATE_REQUEST";
977
978
  HMSNotificationTypes["ROOM_ENDED"] = "ROOM_ENDED";
978
979
  HMSNotificationTypes["REMOVED_FROM_ROOM"] = "REMOVED_FROM_ROOM";
979
980
  HMSNotificationTypes["DEVICE_CHANGE_UPDATE"] = "DEVICE_CHANGE_UPDATE";
@@ -1295,12 +1296,12 @@ var SDKToHMS = /*#__PURE__*/function () {
1295
1296
  };
1296
1297
 
1297
1298
  SDKToHMS.convertRecordingRTMPState = function convertRecordingRTMPState(recording, rtmp) {
1298
- var _recording$server;
1299
+ var _recording$browser, _recording$server;
1299
1300
 
1300
1301
  return {
1301
1302
  recording: {
1302
1303
  browser: {
1303
- running: !!(recording != null && recording.browser.running)
1304
+ running: !!(recording != null && (_recording$browser = recording.browser) != null && _recording$browser.running)
1304
1305
  },
1305
1306
  server: {
1306
1307
  running: !!(recording != null && (_recording$server = recording.server) != null && _recording$server.running)
@@ -3797,6 +3798,44 @@ var HMSSDKActions = /*#__PURE__*/function () {
3797
3798
  return setRemoteTrackEnabled;
3798
3799
  }();
3799
3800
 
3801
+ _proto.setRemoteTracksEnabled = /*#__PURE__*/function () {
3802
+ var _setRemoteTracksEnabled = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(params) {
3803
+ var sdkRequest, rolesMap;
3804
+ return runtime_1.wrap(function _callee29$(_context29) {
3805
+ while (1) {
3806
+ switch (_context29.prev = _context29.next) {
3807
+ case 0:
3808
+ sdkRequest = {
3809
+ enabled: params.enabled,
3810
+ type: params.type,
3811
+ source: params.source
3812
+ };
3813
+
3814
+ if (params.roles) {
3815
+ rolesMap = this.store.getState(selectRolesMap);
3816
+ sdkRequest.roles = params.roles.map(function (role) {
3817
+ return rolesMap[role];
3818
+ });
3819
+ }
3820
+
3821
+ _context29.next = 4;
3822
+ return this.sdk.changeMultiTrackState(sdkRequest);
3823
+
3824
+ case 4:
3825
+ case "end":
3826
+ return _context29.stop();
3827
+ }
3828
+ }
3829
+ }, _callee29, this);
3830
+ }));
3831
+
3832
+ function setRemoteTracksEnabled(_x42) {
3833
+ return _setRemoteTracksEnabled.apply(this, arguments);
3834
+ }
3835
+
3836
+ return setRemoteTracksEnabled;
3837
+ }();
3838
+
3800
3839
  _proto.setLogLevel = function setLogLevel(level) {
3801
3840
  HMSLogger.level = level;
3802
3841
  this.sdk.setLogLevel(level);
@@ -3828,6 +3867,7 @@ var HMSSDKActions = /*#__PURE__*/function () {
3828
3867
  onRoleUpdate: this.onRoleUpdate.bind(this),
3829
3868
  onDeviceChange: this.onDeviceChange.bind(this),
3830
3869
  onChangeTrackStateRequest: this.onChangeTrackStateRequest.bind(this),
3870
+ onChangeMultiTrackStateRequest: this.onChangeMultiTrackStateRequest.bind(this),
3831
3871
  onRemovedFromRoom: this.onRemovedFromRoom.bind(this)
3832
3872
  });
3833
3873
  this.sdk.addAudioListener({
@@ -3887,12 +3927,12 @@ var HMSSDKActions = /*#__PURE__*/function () {
3887
3927
  };
3888
3928
 
3889
3929
  _proto.sdkPreviewWithListeners = /*#__PURE__*/function () {
3890
- var _sdkPreviewWithListeners = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(config) {
3891
- return runtime_1.wrap(function _callee29$(_context29) {
3930
+ var _sdkPreviewWithListeners = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(config) {
3931
+ return runtime_1.wrap(function _callee30$(_context30) {
3892
3932
  while (1) {
3893
- switch (_context29.prev = _context29.next) {
3933
+ switch (_context30.prev = _context30.next) {
3894
3934
  case 0:
3895
- _context29.next = 2;
3935
+ _context30.next = 2;
3896
3936
  return this.sdk.preview(config, {
3897
3937
  onPreview: this.onPreview.bind(this),
3898
3938
  onError: this.onError.bind(this),
@@ -3906,13 +3946,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
3906
3946
 
3907
3947
  case 3:
3908
3948
  case "end":
3909
- return _context29.stop();
3949
+ return _context30.stop();
3910
3950
  }
3911
3951
  }
3912
- }, _callee29, this);
3952
+ }, _callee30, this);
3913
3953
  }));
3914
3954
 
3915
- function sdkPreviewWithListeners(_x42) {
3955
+ function sdkPreviewWithListeners(_x43) {
3916
3956
  return _sdkPreviewWithListeners.apply(this, arguments);
3917
3957
  }
3918
3958
 
@@ -3920,29 +3960,29 @@ var HMSSDKActions = /*#__PURE__*/function () {
3920
3960
  }();
3921
3961
 
3922
3962
  _proto.startScreenShare = /*#__PURE__*/function () {
3923
- var _startScreenShare = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(audioOnly) {
3963
+ var _startScreenShare = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31(audioOnly) {
3924
3964
  var _this8 = this;
3925
3965
 
3926
3966
  var isScreenShared;
3927
- return runtime_1.wrap(function _callee30$(_context30) {
3967
+ return runtime_1.wrap(function _callee31$(_context31) {
3928
3968
  while (1) {
3929
- switch (_context30.prev = _context30.next) {
3969
+ switch (_context31.prev = _context31.next) {
3930
3970
  case 0:
3931
3971
  isScreenShared = this.store.getState(selectIsLocalScreenShared);
3932
3972
 
3933
3973
  if (isScreenShared) {
3934
- _context30.next = 7;
3974
+ _context31.next = 7;
3935
3975
  break;
3936
3976
  }
3937
3977
 
3938
- _context30.next = 4;
3978
+ _context31.next = 4;
3939
3979
  return this.sdk.startScreenShare(function () {
3940
3980
  return _this8.syncRoomState('screenshareStopped');
3941
3981
  }, audioOnly);
3942
3982
 
3943
3983
  case 4:
3944
3984
  this.syncRoomState('startScreenShare');
3945
- _context30.next = 8;
3985
+ _context31.next = 8;
3946
3986
  break;
3947
3987
 
3948
3988
  case 7:
@@ -3950,13 +3990,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
3950
3990
 
3951
3991
  case 8:
3952
3992
  case "end":
3953
- return _context30.stop();
3993
+ return _context31.stop();
3954
3994
  }
3955
3995
  }
3956
- }, _callee30, this);
3996
+ }, _callee31, this);
3957
3997
  }));
3958
3998
 
3959
- function startScreenShare(_x43) {
3999
+ function startScreenShare(_x44) {
3960
4000
  return _startScreenShare.apply(this, arguments);
3961
4001
  }
3962
4002
 
@@ -3964,25 +4004,25 @@ var HMSSDKActions = /*#__PURE__*/function () {
3964
4004
  }();
3965
4005
 
3966
4006
  _proto.stopScreenShare = /*#__PURE__*/function () {
3967
- var _stopScreenShare = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31() {
4007
+ var _stopScreenShare = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee32() {
3968
4008
  var isScreenShared;
3969
- return runtime_1.wrap(function _callee31$(_context31) {
4009
+ return runtime_1.wrap(function _callee32$(_context32) {
3970
4010
  while (1) {
3971
- switch (_context31.prev = _context31.next) {
4011
+ switch (_context32.prev = _context32.next) {
3972
4012
  case 0:
3973
4013
  isScreenShared = this.store.getState(selectIsLocalScreenShared);
3974
4014
 
3975
4015
  if (!isScreenShared) {
3976
- _context31.next = 7;
4016
+ _context32.next = 7;
3977
4017
  break;
3978
4018
  }
3979
4019
 
3980
- _context31.next = 4;
4020
+ _context32.next = 4;
3981
4021
  return this.sdk.stopScreenShare();
3982
4022
 
3983
4023
  case 4:
3984
4024
  this.syncRoomState('stopScreenShare');
3985
- _context31.next = 8;
4025
+ _context32.next = 8;
3986
4026
  break;
3987
4027
 
3988
4028
  case 7:
@@ -3990,10 +4030,10 @@ var HMSSDKActions = /*#__PURE__*/function () {
3990
4030
 
3991
4031
  case 8:
3992
4032
  case "end":
3993
- return _context31.stop();
4033
+ return _context32.stop();
3994
4034
  }
3995
4035
  }
3996
- }, _callee31, this);
4036
+ }, _callee32, this);
3997
4037
  }));
3998
4038
 
3999
4039
  function stopScreenShare() {
@@ -4004,25 +4044,25 @@ var HMSSDKActions = /*#__PURE__*/function () {
4004
4044
  }();
4005
4045
 
4006
4046
  _proto.attachVideoInternal = /*#__PURE__*/function () {
4007
- var _attachVideoInternal = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee32(trackID, videoElement) {
4047
+ var _attachVideoInternal = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee33(trackID, videoElement) {
4008
4048
  var sdkTrack;
4009
- return runtime_1.wrap(function _callee32$(_context32) {
4049
+ return runtime_1.wrap(function _callee33$(_context33) {
4010
4050
  while (1) {
4011
- switch (_context32.prev = _context32.next) {
4051
+ switch (_context33.prev = _context33.next) {
4012
4052
  case 0:
4013
4053
  sdkTrack = this.hmsSDKTracks[trackID];
4014
4054
 
4015
4055
  if (!(sdkTrack && sdkTrack.type === 'video')) {
4016
- _context32.next = 7;
4056
+ _context33.next = 7;
4017
4057
  break;
4018
4058
  }
4019
4059
 
4020
- _context32.next = 4;
4060
+ _context33.next = 4;
4021
4061
  return sdkTrack.addSink(videoElement);
4022
4062
 
4023
4063
  case 4:
4024
4064
  this.updateVideoLayer(trackID, 'attachVideo');
4025
- _context32.next = 8;
4065
+ _context33.next = 8;
4026
4066
  break;
4027
4067
 
4028
4068
  case 7:
@@ -4030,13 +4070,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
4030
4070
 
4031
4071
  case 8:
4032
4072
  case "end":
4033
- return _context32.stop();
4073
+ return _context33.stop();
4034
4074
  }
4035
4075
  }
4036
- }, _callee32, this);
4076
+ }, _callee33, this);
4037
4077
  }));
4038
4078
 
4039
- function attachVideoInternal(_x44, _x45) {
4079
+ function attachVideoInternal(_x45, _x46) {
4040
4080
  return _attachVideoInternal.apply(this, arguments);
4041
4081
  }
4042
4082
 
@@ -4257,6 +4297,38 @@ var HMSSDKActions = /*#__PURE__*/function () {
4257
4297
  });
4258
4298
  };
4259
4299
 
4300
+ _proto.onChangeMultiTrackStateRequest = function onChangeMultiTrackStateRequest(request) {
4301
+ var requestedBy = this.store.getState(selectPeerByID(request.requestedBy.peerId));
4302
+
4303
+ if (!requestedBy) {
4304
+ return this.logPossibleInconsistency("Not found peer who requested track state change, " + request.requestedBy);
4305
+ }
4306
+
4307
+ if (!request.enabled) {
4308
+ this.syncRoomState('changeMultiTrackStateRequest');
4309
+ }
4310
+
4311
+ var tracks = [];
4312
+ var tracksMap = this.store.getState(selectTracksMap);
4313
+
4314
+ for (var _iterator4 = _createForOfIteratorHelperLoose(request.tracks), _step4; !(_step4 = _iterator4()).done;) {
4315
+ var track = _step4.value;
4316
+ var storeTrackID = this.getStoreLocalTrackIDfromSDKTrack(track);
4317
+
4318
+ if (storeTrackID && tracksMap[storeTrackID]) {
4319
+ tracks.push(tracksMap[storeTrackID]);
4320
+ }
4321
+ }
4322
+
4323
+ this.hmsNotifications.sendChangeMultiTrackStateRequest({
4324
+ requestedBy: requestedBy,
4325
+ tracks: tracks,
4326
+ enabled: request.enabled,
4327
+ type: request.type,
4328
+ source: request.source
4329
+ });
4330
+ };
4331
+
4260
4332
  _proto.onReconnected = function onReconnected() {
4261
4333
  this.syncRoomState('reconnectedSync');
4262
4334
  this.hmsNotifications.sendReconnected();
@@ -4342,24 +4414,24 @@ var HMSSDKActions = /*#__PURE__*/function () {
4342
4414
  };
4343
4415
 
4344
4416
  _proto.setEnabledSDKTrack = /*#__PURE__*/function () {
4345
- var _setEnabledSDKTrack = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee33(trackID, enabled) {
4417
+ var _setEnabledSDKTrack = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee34(trackID, enabled) {
4346
4418
  var track;
4347
- return runtime_1.wrap(function _callee33$(_context33) {
4419
+ return runtime_1.wrap(function _callee34$(_context34) {
4348
4420
  while (1) {
4349
- switch (_context33.prev = _context33.next) {
4421
+ switch (_context34.prev = _context34.next) {
4350
4422
  case 0:
4351
4423
  track = this.hmsSDKTracks[trackID];
4352
4424
 
4353
4425
  if (!track) {
4354
- _context33.next = 6;
4426
+ _context34.next = 6;
4355
4427
  break;
4356
4428
  }
4357
4429
 
4358
- _context33.next = 4;
4430
+ _context34.next = 4;
4359
4431
  return track.setEnabled(enabled);
4360
4432
 
4361
4433
  case 4:
4362
- _context33.next = 7;
4434
+ _context34.next = 7;
4363
4435
  break;
4364
4436
 
4365
4437
  case 6:
@@ -4367,13 +4439,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
4367
4439
 
4368
4440
  case 7:
4369
4441
  case "end":
4370
- return _context33.stop();
4442
+ return _context34.stop();
4371
4443
  }
4372
4444
  }
4373
- }, _callee33, this);
4445
+ }, _callee34, this);
4374
4446
  }));
4375
4447
 
4376
- function setEnabledSDKTrack(_x46, _x47) {
4448
+ function setEnabledSDKTrack(_x47, _x48) {
4377
4449
  return _setEnabledSDKTrack.apply(this, arguments);
4378
4450
  }
4379
4451
 
@@ -4381,24 +4453,24 @@ var HMSSDKActions = /*#__PURE__*/function () {
4381
4453
  }();
4382
4454
 
4383
4455
  _proto.setSDKLocalVideoTrackSettings = /*#__PURE__*/function () {
4384
- var _setSDKLocalVideoTrackSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee34(trackID, settings) {
4456
+ var _setSDKLocalVideoTrackSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee35(trackID, settings) {
4385
4457
  var track;
4386
- return runtime_1.wrap(function _callee34$(_context34) {
4458
+ return runtime_1.wrap(function _callee35$(_context35) {
4387
4459
  while (1) {
4388
- switch (_context34.prev = _context34.next) {
4460
+ switch (_context35.prev = _context35.next) {
4389
4461
  case 0:
4390
4462
  track = this.hmsSDKTracks[trackID];
4391
4463
 
4392
4464
  if (!track) {
4393
- _context34.next = 6;
4465
+ _context35.next = 6;
4394
4466
  break;
4395
4467
  }
4396
4468
 
4397
- _context34.next = 4;
4469
+ _context35.next = 4;
4398
4470
  return track.setSettings(settings);
4399
4471
 
4400
4472
  case 4:
4401
- _context34.next = 7;
4473
+ _context35.next = 7;
4402
4474
  break;
4403
4475
 
4404
4476
  case 6:
@@ -4406,13 +4478,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
4406
4478
 
4407
4479
  case 7:
4408
4480
  case "end":
4409
- return _context34.stop();
4481
+ return _context35.stop();
4410
4482
  }
4411
4483
  }
4412
- }, _callee34, this);
4484
+ }, _callee35, this);
4413
4485
  }));
4414
4486
 
4415
- function setSDKLocalVideoTrackSettings(_x48, _x49) {
4487
+ function setSDKLocalVideoTrackSettings(_x49, _x50) {
4416
4488
  return _setSDKLocalVideoTrackSettings.apply(this, arguments);
4417
4489
  }
4418
4490
 
@@ -4420,24 +4492,24 @@ var HMSSDKActions = /*#__PURE__*/function () {
4420
4492
  }();
4421
4493
 
4422
4494
  _proto.setSDKLocalAudioTrackSettings = /*#__PURE__*/function () {
4423
- var _setSDKLocalAudioTrackSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee35(trackID, settings) {
4495
+ var _setSDKLocalAudioTrackSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee36(trackID, settings) {
4424
4496
  var track;
4425
- return runtime_1.wrap(function _callee35$(_context35) {
4497
+ return runtime_1.wrap(function _callee36$(_context36) {
4426
4498
  while (1) {
4427
- switch (_context35.prev = _context35.next) {
4499
+ switch (_context36.prev = _context36.next) {
4428
4500
  case 0:
4429
4501
  track = this.hmsSDKTracks[trackID];
4430
4502
 
4431
4503
  if (!track) {
4432
- _context35.next = 6;
4504
+ _context36.next = 6;
4433
4505
  break;
4434
4506
  }
4435
4507
 
4436
- _context35.next = 4;
4508
+ _context36.next = 4;
4437
4509
  return track.setSettings(settings);
4438
4510
 
4439
4511
  case 4:
4440
- _context35.next = 7;
4512
+ _context36.next = 7;
4441
4513
  break;
4442
4514
 
4443
4515
  case 6:
@@ -4445,13 +4517,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
4445
4517
 
4446
4518
  case 7:
4447
4519
  case "end":
4448
- return _context35.stop();
4520
+ return _context36.stop();
4449
4521
  }
4450
4522
  }
4451
- }, _callee35, this);
4523
+ }, _callee36, this);
4452
4524
  }));
4453
4525
 
4454
- function setSDKLocalAudioTrackSettings(_x50, _x51) {
4526
+ function setSDKLocalAudioTrackSettings(_x51, _x52) {
4455
4527
  return _setSDKLocalAudioTrackSettings.apply(this, arguments);
4456
4528
  }
4457
4529
 
@@ -4514,59 +4586,59 @@ var HMSSDKActions = /*#__PURE__*/function () {
4514
4586
  };
4515
4587
 
4516
4588
  _proto.addRemoveVideoPlugin = /*#__PURE__*/function () {
4517
- var _addRemoveVideoPlugin = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee36(plugin, action, pluginFrameRate) {
4589
+ var _addRemoveVideoPlugin = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee37(plugin, action, pluginFrameRate) {
4518
4590
  var trackID, sdkTrack;
4519
- return runtime_1.wrap(function _callee36$(_context36) {
4591
+ return runtime_1.wrap(function _callee37$(_context37) {
4520
4592
  while (1) {
4521
- switch (_context36.prev = _context36.next) {
4593
+ switch (_context37.prev = _context37.next) {
4522
4594
  case 0:
4523
4595
  if (plugin) {
4524
- _context36.next = 3;
4596
+ _context37.next = 3;
4525
4597
  break;
4526
4598
  }
4527
4599
 
4528
4600
  HMSLogger.w('Invalid plugin received in store');
4529
- return _context36.abrupt("return");
4601
+ return _context37.abrupt("return");
4530
4602
 
4531
4603
  case 3:
4532
4604
  trackID = this.store.getState(selectLocalVideoTrackID);
4533
4605
 
4534
4606
  if (!trackID) {
4535
- _context36.next = 19;
4607
+ _context37.next = 19;
4536
4608
  break;
4537
4609
  }
4538
4610
 
4539
4611
  sdkTrack = this.hmsSDKTracks[trackID];
4540
4612
 
4541
4613
  if (!sdkTrack) {
4542
- _context36.next = 18;
4614
+ _context37.next = 18;
4543
4615
  break;
4544
4616
  }
4545
4617
 
4546
4618
  if (!(action === 'add')) {
4547
- _context36.next = 12;
4619
+ _context37.next = 12;
4548
4620
  break;
4549
4621
  }
4550
4622
 
4551
- _context36.next = 10;
4623
+ _context37.next = 10;
4552
4624
  return sdkTrack.addPlugin(plugin, pluginFrameRate);
4553
4625
 
4554
4626
  case 10:
4555
- _context36.next = 15;
4627
+ _context37.next = 15;
4556
4628
  break;
4557
4629
 
4558
4630
  case 12:
4559
4631
  if (!(action === 'remove')) {
4560
- _context36.next = 15;
4632
+ _context37.next = 15;
4561
4633
  break;
4562
4634
  }
4563
4635
 
4564
- _context36.next = 15;
4636
+ _context37.next = 15;
4565
4637
  return sdkTrack.removePlugin(plugin);
4566
4638
 
4567
4639
  case 15:
4568
4640
  this.syncRoomState(action + "VideoPlugin");
4569
- _context36.next = 19;
4641
+ _context37.next = 19;
4570
4642
  break;
4571
4643
 
4572
4644
  case 18:
@@ -4574,13 +4646,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
4574
4646
 
4575
4647
  case 19:
4576
4648
  case "end":
4577
- return _context36.stop();
4649
+ return _context37.stop();
4578
4650
  }
4579
4651
  }
4580
- }, _callee36, this);
4652
+ }, _callee37, this);
4581
4653
  }));
4582
4654
 
4583
- function addRemoveVideoPlugin(_x52, _x53, _x54) {
4655
+ function addRemoveVideoPlugin(_x53, _x54, _x55) {
4584
4656
  return _addRemoveVideoPlugin.apply(this, arguments);
4585
4657
  }
4586
4658
 
@@ -4588,59 +4660,59 @@ var HMSSDKActions = /*#__PURE__*/function () {
4588
4660
  }();
4589
4661
 
4590
4662
  _proto.addRemoveAudioPlugin = /*#__PURE__*/function () {
4591
- var _addRemoveAudioPlugin = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee37(plugin, action) {
4663
+ var _addRemoveAudioPlugin = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee38(plugin, action) {
4592
4664
  var trackID, sdkTrack;
4593
- return runtime_1.wrap(function _callee37$(_context37) {
4665
+ return runtime_1.wrap(function _callee38$(_context38) {
4594
4666
  while (1) {
4595
- switch (_context37.prev = _context37.next) {
4667
+ switch (_context38.prev = _context38.next) {
4596
4668
  case 0:
4597
4669
  if (plugin) {
4598
- _context37.next = 3;
4670
+ _context38.next = 3;
4599
4671
  break;
4600
4672
  }
4601
4673
 
4602
4674
  HMSLogger.w('Invalid plugin received in store');
4603
- return _context37.abrupt("return");
4675
+ return _context38.abrupt("return");
4604
4676
 
4605
4677
  case 3:
4606
4678
  trackID = this.store.getState(selectLocalAudioTrackID);
4607
4679
 
4608
4680
  if (!trackID) {
4609
- _context37.next = 19;
4681
+ _context38.next = 19;
4610
4682
  break;
4611
4683
  }
4612
4684
 
4613
4685
  sdkTrack = this.hmsSDKTracks[trackID];
4614
4686
 
4615
4687
  if (!sdkTrack) {
4616
- _context37.next = 18;
4688
+ _context38.next = 18;
4617
4689
  break;
4618
4690
  }
4619
4691
 
4620
4692
  if (!(action === 'add')) {
4621
- _context37.next = 12;
4693
+ _context38.next = 12;
4622
4694
  break;
4623
4695
  }
4624
4696
 
4625
- _context37.next = 10;
4697
+ _context38.next = 10;
4626
4698
  return sdkTrack.addPlugin(plugin);
4627
4699
 
4628
4700
  case 10:
4629
- _context37.next = 15;
4701
+ _context38.next = 15;
4630
4702
  break;
4631
4703
 
4632
4704
  case 12:
4633
4705
  if (!(action === 'remove')) {
4634
- _context37.next = 15;
4706
+ _context38.next = 15;
4635
4707
  break;
4636
4708
  }
4637
4709
 
4638
- _context37.next = 15;
4710
+ _context38.next = 15;
4639
4711
  return sdkTrack.removePlugin(plugin);
4640
4712
 
4641
4713
  case 15:
4642
4714
  this.syncRoomState(action + "AudioPlugin");
4643
- _context37.next = 19;
4715
+ _context38.next = 19;
4644
4716
  break;
4645
4717
 
4646
4718
  case 18:
@@ -4648,13 +4720,13 @@ var HMSSDKActions = /*#__PURE__*/function () {
4648
4720
 
4649
4721
  case 19:
4650
4722
  case "end":
4651
- return _context37.stop();
4723
+ return _context38.stop();
4652
4724
  }
4653
4725
  }
4654
- }, _callee37, this);
4726
+ }, _callee38, this);
4655
4727
  }));
4656
4728
 
4657
- function addRemoveAudioPlugin(_x55, _x56) {
4729
+ function addRemoveAudioPlugin(_x56, _x57) {
4658
4730
  return _addRemoveAudioPlugin.apply(this, arguments);
4659
4731
  }
4660
4732
 
@@ -4843,6 +4915,11 @@ var HMSNotifications = /*#__PURE__*/function () {
4843
4915
  this.emitEvent(notification);
4844
4916
  };
4845
4917
 
4918
+ _proto.sendChangeMultiTrackStateRequest = function sendChangeMultiTrackStateRequest(request) {
4919
+ var notification = this.createNotification(exports.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST, request, exports.HMSNotificationSeverity.INFO);
4920
+ this.emitEvent(notification);
4921
+ };
4922
+
4846
4923
  _proto.emitEvent = function emitEvent(notification) {
4847
4924
  this.eventEmitter.emit(HMS_NOTIFICATION_EVENT, notification);
4848
4925
  };