@opentok/client 2.31.0-alpha.7 → 2.31.0-alpha.8
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 +21 -18
- 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.31.0
|
|
2
|
+
* @license OpenTok.js 2.31.0 66dcaa538
|
|
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: Fri, 18 Jul 2025 14:09:01 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -5078,13 +5078,16 @@ const modifyStereo = (type, sdp, enable) => {
|
|
|
5078
5078
|
}
|
|
5079
5079
|
break;
|
|
5080
5080
|
case 'receive':
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5081
|
+
{
|
|
5082
|
+
pattern = /([^-])stereo=\d+([\s;]*)/;
|
|
5083
|
+
const stereo = `stereo=${enable ? '1' : '0'}`;
|
|
5084
|
+
if (pattern.test(fmtpAttr.value)) {
|
|
5085
|
+
line = line.replace(pattern, `$1${stereo}$2`);
|
|
5086
|
+
} else {
|
|
5087
|
+
line += `; ${stereo}`;
|
|
5088
|
+
}
|
|
5089
|
+
break;
|
|
5086
5090
|
}
|
|
5087
|
-
break;
|
|
5088
5091
|
default:
|
|
5089
5092
|
throw new Error(`Invalid type ${type} passed into enableStereo`);
|
|
5090
5093
|
}
|
|
@@ -8679,7 +8682,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8679
8682
|
*/
|
|
8680
8683
|
|
|
8681
8684
|
/** @type builtInConfig */
|
|
8682
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.31.0","buildHash":"
|
|
8685
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.31.0","buildHash":"66dcaa538","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
8686
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8684
8687
|
const liveConfigMap = {
|
|
8685
8688
|
apiUrl: 'apiURL',
|
|
@@ -23300,7 +23303,7 @@ function PublisherFactory(_ref) {
|
|
|
23300
23303
|
this.getVideoBitratePreset = () => properties.videoBitratePreset;
|
|
23301
23304
|
const setMaxVideoBitrateToPublisher = /*#__PURE__*/function () {
|
|
23302
23305
|
var _ref59 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53(peerConnection) {
|
|
23303
|
-
var
|
|
23306
|
+
var logOptions, applyMaxBitrate, peerConnections;
|
|
23304
23307
|
return _regenerator.default.wrap(function _callee53$(_context53) {
|
|
23305
23308
|
while (1) switch (_context53.prev = _context53.next) {
|
|
23306
23309
|
case 0:
|
|
@@ -23311,18 +23314,18 @@ function PublisherFactory(_ref) {
|
|
|
23311
23314
|
return _context53.abrupt("return");
|
|
23312
23315
|
case 2:
|
|
23313
23316
|
if (isNaN(_videoMaxBitrateSetting)) {
|
|
23314
|
-
|
|
23315
|
-
Preset: _videoMaxBitrateSetting
|
|
23317
|
+
logOptions = {
|
|
23318
|
+
Preset: _videoMaxBitrateSetting.toLowerCase()
|
|
23316
23319
|
};
|
|
23317
23320
|
} else {
|
|
23318
|
-
|
|
23321
|
+
logOptions = _videoMaxBitrateSetting === 0 ? {
|
|
23319
23322
|
Preset: 'default'
|
|
23320
23323
|
} : {
|
|
23321
23324
|
BitrateBps: _videoMaxBitrateSetting
|
|
23322
23325
|
};
|
|
23323
23326
|
}
|
|
23324
|
-
|
|
23325
|
-
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Attempt',
|
|
23327
|
+
logOptions.NearestResolution = (0, _getSpatialResolution.default)(_this.videoWidth(), _this.videoHeight());
|
|
23328
|
+
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Attempt', {}, logOptions);
|
|
23326
23329
|
applyMaxBitrate = /*#__PURE__*/function () {
|
|
23327
23330
|
var _ref60 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52(pc) {
|
|
23328
23331
|
return _regenerator.default.wrap(function _callee52$(_context52) {
|
|
@@ -23332,14 +23335,14 @@ function PublisherFactory(_ref) {
|
|
|
23332
23335
|
_context52.next = 3;
|
|
23333
23336
|
return applySetMaxBitrateToPeerConnection(pc);
|
|
23334
23337
|
case 3:
|
|
23335
|
-
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Success',
|
|
23338
|
+
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Success', {}, logOptions);
|
|
23336
23339
|
_context52.next = 11;
|
|
23337
23340
|
break;
|
|
23338
23341
|
case 6:
|
|
23339
23342
|
_context52.prev = 6;
|
|
23340
23343
|
_context52.t0 = _context52["catch"](0);
|
|
23341
|
-
|
|
23342
|
-
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Failure',
|
|
23344
|
+
logOptions.failureReason = _context52.t0.message;
|
|
23345
|
+
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Failure', {}, logOptions);
|
|
23343
23346
|
throw otError(Errors.UNEXPECTED_ERROR_CODE, new Error('An unexpected error was encountered'));
|
|
23344
23347
|
case 11:
|
|
23345
23348
|
case "end":
|