@opentok/client 2.30.2-alpha.10 → 2.30.2-alpha.12
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/dist/js/opentok.js +15 -16
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +4 -4
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.30.2
|
|
2
|
+
* @license OpenTok.js 2.30.2 883c3488e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2010-2025 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:
|
|
8
|
+
* Date: Mon, 16 Jun 2025 07:38:42 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8679,7 +8679,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8679
8679
|
*/
|
|
8680
8680
|
|
|
8681
8681
|
/** @type builtInConfig */
|
|
8682
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.2","buildHash":"
|
|
8682
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.2","buildHash":"883c3488e","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"});
|
|
8683
8683
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8684
8684
|
const liveConfigMap = {
|
|
8685
8685
|
apiUrl: 'apiURL',
|
|
@@ -18679,7 +18679,7 @@ function PublisherFactory(_ref) {
|
|
|
18679
18679
|
NearestResolution: (0, _getSpatialResolution.default)(this.videoWidth(), this.videoHeight())
|
|
18680
18680
|
};
|
|
18681
18681
|
if ((0, _isString.default)(_videoMaxBitrateSetting)) {
|
|
18682
|
-
log.Preset = _videoMaxBitrateSetting;
|
|
18682
|
+
log.Preset = _videoMaxBitrateSetting.toLowerCase();
|
|
18683
18683
|
} else {
|
|
18684
18684
|
log.BitrateBps = _videoMaxBitrateSetting;
|
|
18685
18685
|
}
|
|
@@ -18691,7 +18691,7 @@ function PublisherFactory(_ref) {
|
|
|
18691
18691
|
NearestResolution: (0, _getSpatialResolution.default)(this.videoWidth(), this.videoHeight())
|
|
18692
18692
|
};
|
|
18693
18693
|
if ((0, _isString.default)(_videoMaxBitrateSetting)) {
|
|
18694
|
-
log.Preset = _videoMaxBitrateSetting;
|
|
18694
|
+
log.Preset = _videoMaxBitrateSetting.toLowerCase();
|
|
18695
18695
|
} else {
|
|
18696
18696
|
log.BitrateBps = _videoMaxBitrateSetting;
|
|
18697
18697
|
}
|
|
@@ -20623,7 +20623,7 @@ function PublisherFactory(_ref) {
|
|
|
20623
20623
|
NearestResolution: (0, _getSpatialResolution.default)(_this.videoWidth(), _this.videoHeight())
|
|
20624
20624
|
};
|
|
20625
20625
|
if ((0, _isString.default)(_videoMaxBitrateSetting)) {
|
|
20626
|
-
log.Preset = _videoMaxBitrateSetting;
|
|
20626
|
+
log.Preset = _videoMaxBitrateSetting.toLowerCase();
|
|
20627
20627
|
} else {
|
|
20628
20628
|
log.BitrateBps = _videoMaxBitrateSetting;
|
|
20629
20629
|
}
|
|
@@ -20635,7 +20635,7 @@ function PublisherFactory(_ref) {
|
|
|
20635
20635
|
NearestResolution: (0, _getSpatialResolution.default)(_this.videoWidth(), _this.videoHeight())
|
|
20636
20636
|
};
|
|
20637
20637
|
if ((0, _isString.default)(_videoMaxBitrateSetting)) {
|
|
20638
|
-
log.Preset = _videoMaxBitrateSetting;
|
|
20638
|
+
log.Preset = _videoMaxBitrateSetting.toLowerCase();
|
|
20639
20639
|
} else {
|
|
20640
20640
|
log.BitrateBps = _videoMaxBitrateSetting;
|
|
20641
20641
|
}
|
|
@@ -23296,11 +23296,11 @@ function PublisherFactory(_ref) {
|
|
|
23296
23296
|
case 6:
|
|
23297
23297
|
isPreset = typeof _videoMaxBitrateSetting === 'string';
|
|
23298
23298
|
if (isPreset) {
|
|
23299
|
-
properties.videoBitratePreset = _videoMaxBitrateSetting;
|
|
23299
|
+
properties.videoBitratePreset = _videoMaxBitrateSetting.toLowerCase();
|
|
23300
23300
|
properties.videoMaxBitrate = 0;
|
|
23301
23301
|
} else {
|
|
23302
23302
|
properties.videoMaxBitrate = _videoMaxBitrateSetting;
|
|
23303
|
-
properties.videoBitratePreset = '
|
|
23303
|
+
properties.videoBitratePreset = 'custom';
|
|
23304
23304
|
}
|
|
23305
23305
|
case 8:
|
|
23306
23306
|
case "end":
|
|
@@ -23333,8 +23333,8 @@ function PublisherFactory(_ref) {
|
|
|
23333
23333
|
* Get the customer's bitrate preset value used to set the maxBitrate
|
|
23334
23334
|
* value for each of the encoding RTCP sender elements.
|
|
23335
23335
|
*
|
|
23336
|
-
* @return {String} One of the following values:
|
|
23337
|
-
* '
|
|
23336
|
+
* @return {String} One of the following values: 'custom', 'extra_bw_saver',
|
|
23337
|
+
* 'bw_saver' or 'default'
|
|
23338
23338
|
* @see <a href="#setVideoBitratePreset">Publisher.setVideoBitratePreset()</a>
|
|
23339
23339
|
* @method #getVideoBitratePreset
|
|
23340
23340
|
* @memberOf Publisher
|
|
@@ -23351,9 +23351,9 @@ function PublisherFactory(_ref) {
|
|
|
23351
23351
|
* <code>bitrateBps</code> value. If the values have been updated property, the
|
|
23352
23352
|
* publisher's properties.videoMaxBitrate and properties.videoBitratePreset
|
|
23353
23353
|
* will be updated accordingly, i.e., properties.videoMaxBitrate will be equal to
|
|
23354
|
-
* bitrateBps and properties.videoBitratePreset will be equal to '
|
|
23354
|
+
* bitrateBps and properties.videoBitratePreset will be equal to 'custom' only if
|
|
23355
23355
|
* bitrateBps is different to 0. Otherwise, properties.videoBitratePreset will be
|
|
23356
|
-
* equal to VideoBitratePreset.
|
|
23356
|
+
* equal to VideoBitratePreset.default.
|
|
23357
23357
|
* <a href="OT.html#initPublisher">OT.initPublisher()</a> method.
|
|
23358
23358
|
* <p>
|
|
23359
23359
|
* At least, Chrome 129+, Safari 18.3+, Firefox 136+ support video maxBitrate.
|
|
@@ -23386,7 +23386,7 @@ function PublisherFactory(_ref) {
|
|
|
23386
23386
|
case 5:
|
|
23387
23387
|
_videoMaxBitrateSetting = bitrate === 0 ? _VideoBitratePreset.default.DEFAULT : bitrate;
|
|
23388
23388
|
log = bitrate === 0 ? {
|
|
23389
|
-
Preset: '
|
|
23389
|
+
Preset: 'default'
|
|
23390
23390
|
} : {
|
|
23391
23391
|
BitrateBps: bitrate
|
|
23392
23392
|
};
|
|
@@ -23439,8 +23439,7 @@ function PublisherFactory(_ref) {
|
|
|
23439
23439
|
/**
|
|
23440
23440
|
* Sets the publisher's maxBitrate value/s that will be distributed to each of
|
|
23441
23441
|
* the encoding RTCP sender elements when the customer has set a valid bitrate
|
|
23442
|
-
* preset value, i.e., '
|
|
23443
|
-
* 'EXTRA_BW_SAVER', or 'extra_bw_saver'.
|
|
23442
|
+
* preset value, i.e., 'default', 'bw_saver', or 'extra_bw_saver'.
|
|
23444
23443
|
* <p>
|
|
23445
23444
|
* Use this method to change the video maximum bitrate dynamically.
|
|
23446
23445
|
* Set the initial video maxBitrate hit by setting a valid bitrate preset value
|