@opentok/client 2.29.1-alpha.6 → 2.29.1-alpha.7
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 +39 -11
- 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.29.1
|
|
2
|
+
* @license OpenTok.js 2.29.1 dd7c9f1
|
|
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: Tue, 18 Feb 2025 18:01:57 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8118,7 +8118,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8118
8118
|
*/
|
|
8119
8119
|
|
|
8120
8120
|
/** @type builtInConfig */
|
|
8121
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.29.1","buildHash":"
|
|
8121
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.29.1","buildHash":"dd7c9f1","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"});
|
|
8122
8122
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8123
8123
|
const liveConfigMap = {
|
|
8124
8124
|
apiUrl: 'apiURL',
|
|
@@ -81582,6 +81582,8 @@ exports.default = _default;
|
|
|
81582
81582
|
var _interopRequireDefault = __webpack_require__(0);
|
|
81583
81583
|
exports.__esModule = true;
|
|
81584
81584
|
exports.default = void 0;
|
|
81585
|
+
var _regenerator = _interopRequireDefault(__webpack_require__(4));
|
|
81586
|
+
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(5));
|
|
81585
81587
|
var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(23));
|
|
81586
81588
|
var _events = _interopRequireDefault(__webpack_require__(12));
|
|
81587
81589
|
const OBSERVER_INTERVAL = 2 * 1000;
|
|
@@ -81605,15 +81607,41 @@ let CpuPressureMonitor = /*#__PURE__*/function (_EventEmitter) {
|
|
|
81605
81607
|
this._observer = new PressureObserver(pressureChangeCallback);
|
|
81606
81608
|
}
|
|
81607
81609
|
};
|
|
81608
|
-
_proto.startMonitoring = function
|
|
81609
|
-
|
|
81610
|
-
return
|
|
81610
|
+
_proto.startMonitoring = /*#__PURE__*/function () {
|
|
81611
|
+
var _startMonitoring = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
81612
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
81613
|
+
while (1) switch (_context.prev = _context.next) {
|
|
81614
|
+
case 0:
|
|
81615
|
+
if (!this._isMonitoring) {
|
|
81616
|
+
_context.next = 2;
|
|
81617
|
+
break;
|
|
81618
|
+
}
|
|
81619
|
+
return _context.abrupt("return");
|
|
81620
|
+
case 2:
|
|
81621
|
+
_context.prev = 2;
|
|
81622
|
+
_context.next = 5;
|
|
81623
|
+
return this._observer.observe('cpu', {
|
|
81624
|
+
sampleInterval: OBSERVER_INTERVAL
|
|
81625
|
+
});
|
|
81626
|
+
case 5:
|
|
81627
|
+
_context.next = 9;
|
|
81628
|
+
break;
|
|
81629
|
+
case 7:
|
|
81630
|
+
_context.prev = 7;
|
|
81631
|
+
_context.t0 = _context["catch"](2);
|
|
81632
|
+
case 9:
|
|
81633
|
+
this._isMonitoring = true;
|
|
81634
|
+
case 10:
|
|
81635
|
+
case "end":
|
|
81636
|
+
return _context.stop();
|
|
81637
|
+
}
|
|
81638
|
+
}, _callee, this, [[2, 7]]);
|
|
81639
|
+
}));
|
|
81640
|
+
function startMonitoring() {
|
|
81641
|
+
return _startMonitoring.apply(this, arguments);
|
|
81611
81642
|
}
|
|
81612
|
-
|
|
81613
|
-
|
|
81614
|
-
});
|
|
81615
|
-
this._isMonitoring = true;
|
|
81616
|
-
};
|
|
81643
|
+
return startMonitoring;
|
|
81644
|
+
}();
|
|
81617
81645
|
_proto.stopMonitoring = function stopMonitoring() {
|
|
81618
81646
|
this._isMonitoring = false;
|
|
81619
81647
|
this._observer.unobserve('cpu');
|