@opentok/client 2.35.0-alpha.62 → 2.35.0-alpha.63

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.
@@ -476,11 +476,11 @@ declare namespace OT {
476
476
  clearAudioFilter(): Promise<void>;
477
477
  getAudioFilter(): AudioFilter | null;
478
478
  publishAudio: {
479
- (value: boolean): void;
479
+ (value: boolean): Publisher;
480
480
  promise: (value: boolean) => Promise<void>;
481
481
  }
482
482
  publishVideo: {
483
- (value: boolean, callback?: (error?: OTError) => void): void;
483
+ (value: boolean, callback?: (error?: OTError) => void): Publisher;
484
484
  promise: (value: boolean) => Promise<void>;
485
485
  }
486
486
  publishCaptions(value: boolean): Promise<void>;
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license OpenTok.js 2.35.0 8575265e3
2
+ * @license OpenTok.js 2.35.0 bc2a346b4
3
3
  *
4
4
  * Copyright (c) 2010-2026 TokBox, Inc.
5
5
  * Subject to the applicable Software Development Kit (SDK) License Agreement:
6
6
  * https://www.vonage.com/legal/communications-apis/terms-of-use/
7
7
  *
8
- * Date: Mon, 29 Jun 2026 06:01:57 GMT
8
+ * Date: Mon, 29 Jun 2026 13:06:23 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -23617,6 +23617,10 @@ function SubscriberFactory(_ref2) {
23617
23617
  _videoQualityWatcher.destroy();
23618
23618
  amrState.destroy();
23619
23619
  logSetAudioVolumeLimitedRunner.destroy();
23620
+ if (_audioLevelBehaviour) {
23621
+ _audioLevelBehaviour.destroy();
23622
+ _audioLevelBehaviour = undefined;
23623
+ }
23620
23624
  _preDisconnectStats = {
23621
23625
  sessionId: _session.sessionId,
23622
23626
  connectionId: (_session10 = _session) != null && _session10.isConnected() ? (_session11 = _session) == null ? void 0 : (_session11$connection = _session11.connection) == null ? void 0 : _session11$connection.connectionId : null,
@@ -37993,7 +37997,12 @@ let WebAudioAudioLevelSampler = /*#__PURE__*/function () {
37993
37997
  };
37994
37998
  _proto.destroy = function destroy() {
37995
37999
  if (this._sourceNode) {
37996
- this._sourceNode.disconnect(this._analyser);
38000
+ this._sourceNode.disconnect();
38001
+ this._sourceNode = null;
38002
+ }
38003
+ if (this._analyser) {
38004
+ this._analyser.disconnect();
38005
+ this._analyser = null;
37997
38006
  }
37998
38007
  this._timeDomainData = null;
37999
38008
  };
@@ -39542,7 +39551,7 @@ function staticConfigFactory(_temp) {
39542
39551
  _ref$axios = _ref.axios,
39543
39552
  axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
39544
39553
  _ref$properties = _ref.properties,
39545
- properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"8575265e3","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com","vonageApiURL":""} : _ref$properties;
39554
+ properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"bc2a346b4","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com","vonageApiURL":""} : _ref$properties;
39546
39555
  /** @type builtInConfig */
39547
39556
  const builtInConfig = (0, _cloneDeep.default)(properties);
39548
39557
  /**
@@ -43716,6 +43725,7 @@ function PublisherFactory(_ref) {
43716
43725
  * @see <a href="Stream.html#hasAudio">Stream.hasAudio</a>
43717
43726
  * @see StreamPropertyChangedEvent
43718
43727
  * @method #publishAudio
43728
+ * @return {Publisher}
43719
43729
  * @memberOf Publisher
43720
43730
  */
43721
43731
  this.publishAudio = value => {
@@ -44270,6 +44280,7 @@ function PublisherFactory(_ref) {
44270
44280
  * @see <a href="Stream.html#hasVideo">Stream.hasVideo</a>
44271
44281
  * @see StreamPropertyChangedEvent
44272
44282
  * @method #publishVideo
44283
+ * @return {Publisher}
44273
44284
  * @memberOf Publisher
44274
44285
  */
44275
44286
  this.publishVideo = (value, completionHandler) => {
@@ -60577,6 +60588,9 @@ function NativeVideoElementWrapperFactory(deps) {
60577
60588
  };
60578
60589
  _proto._removeAudioLevelSampler = function _removeAudioLevelSampler() {
60579
60590
  if (this._audioContext) {
60591
+ if (this._audioLevelSampler) {
60592
+ this._audioLevelSampler.destroy();
60593
+ }
60580
60594
  delete this._audioContext;
60581
60595
  delete this._audioLevelSampler;
60582
60596
  }