@opentok/client 2.31.0-alpha.6 → 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 +12 -12
- 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) {
|
|
@@ -8682,7 +8682,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8682
8682
|
*/
|
|
8683
8683
|
|
|
8684
8684
|
/** @type builtInConfig */
|
|
8685
|
-
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"});
|
|
8686
8686
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8687
8687
|
const liveConfigMap = {
|
|
8688
8688
|
apiUrl: 'apiURL',
|
|
@@ -23303,7 +23303,7 @@ function PublisherFactory(_ref) {
|
|
|
23303
23303
|
this.getVideoBitratePreset = () => properties.videoBitratePreset;
|
|
23304
23304
|
const setMaxVideoBitrateToPublisher = /*#__PURE__*/function () {
|
|
23305
23305
|
var _ref59 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53(peerConnection) {
|
|
23306
|
-
var
|
|
23306
|
+
var logOptions, applyMaxBitrate, peerConnections;
|
|
23307
23307
|
return _regenerator.default.wrap(function _callee53$(_context53) {
|
|
23308
23308
|
while (1) switch (_context53.prev = _context53.next) {
|
|
23309
23309
|
case 0:
|
|
@@ -23314,18 +23314,18 @@ function PublisherFactory(_ref) {
|
|
|
23314
23314
|
return _context53.abrupt("return");
|
|
23315
23315
|
case 2:
|
|
23316
23316
|
if (isNaN(_videoMaxBitrateSetting)) {
|
|
23317
|
-
|
|
23318
|
-
Preset: _videoMaxBitrateSetting
|
|
23317
|
+
logOptions = {
|
|
23318
|
+
Preset: _videoMaxBitrateSetting.toLowerCase()
|
|
23319
23319
|
};
|
|
23320
23320
|
} else {
|
|
23321
|
-
|
|
23321
|
+
logOptions = _videoMaxBitrateSetting === 0 ? {
|
|
23322
23322
|
Preset: 'default'
|
|
23323
23323
|
} : {
|
|
23324
23324
|
BitrateBps: _videoMaxBitrateSetting
|
|
23325
23325
|
};
|
|
23326
23326
|
}
|
|
23327
|
-
|
|
23328
|
-
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Attempt',
|
|
23327
|
+
logOptions.NearestResolution = (0, _getSpatialResolution.default)(_this.videoWidth(), _this.videoHeight());
|
|
23328
|
+
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Attempt', {}, logOptions);
|
|
23329
23329
|
applyMaxBitrate = /*#__PURE__*/function () {
|
|
23330
23330
|
var _ref60 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52(pc) {
|
|
23331
23331
|
return _regenerator.default.wrap(function _callee52$(_context52) {
|
|
@@ -23335,14 +23335,14 @@ function PublisherFactory(_ref) {
|
|
|
23335
23335
|
_context52.next = 3;
|
|
23336
23336
|
return applySetMaxBitrateToPeerConnection(pc);
|
|
23337
23337
|
case 3:
|
|
23338
|
-
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Success',
|
|
23338
|
+
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Success', {}, logOptions);
|
|
23339
23339
|
_context52.next = 11;
|
|
23340
23340
|
break;
|
|
23341
23341
|
case 6:
|
|
23342
23342
|
_context52.prev = 6;
|
|
23343
23343
|
_context52.t0 = _context52["catch"](0);
|
|
23344
|
-
|
|
23345
|
-
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Failure',
|
|
23344
|
+
logOptions.failureReason = _context52.t0.message;
|
|
23345
|
+
logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Failure', {}, logOptions);
|
|
23346
23346
|
throw otError(Errors.UNEXPECTED_ERROR_CODE, new Error('An unexpected error was encountered'));
|
|
23347
23347
|
case 11:
|
|
23348
23348
|
case "end":
|