@opentok/client 2.27.3-beta.4 → 2.27.3-beta.6
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.d.ts +1 -0
- package/dist/js/opentok.js +15 -8
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +5 -5
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.d.ts
CHANGED
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.27.3-beta.
|
|
2
|
+
* @license OpenTok.js 2.27.3-beta.06 008c5f0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2010-2024 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, 22 Apr 2024 20:16:08 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -7952,7 +7952,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
7952
7952
|
*/
|
|
7953
7953
|
|
|
7954
7954
|
/** @type builtInConfig */
|
|
7955
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.27.3-beta.
|
|
7955
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.27.3-beta.06","buildHash":"008c5f0","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"});
|
|
7956
7956
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
7957
7957
|
const liveConfigMap = {
|
|
7958
7958
|
apiUrl: 'apiURL',
|
|
@@ -18364,7 +18364,7 @@ function PublisherFactory(_ref) {
|
|
|
18364
18364
|
audioDevices = processedOptions.audioDevices;
|
|
18365
18365
|
videoDevices = processedOptions.videoDevices;
|
|
18366
18366
|
hasVideoFilter = !!properties.videoFilter; // this is needed to refresh current audio input device after previous one was disconnected
|
|
18367
|
-
removeDeviceChangeListener = (0, _audioInputDevicesChangeListener.default)(_this);
|
|
18367
|
+
removeDeviceChangeListener = (0, _audioInputDevicesChangeListener.default)(_this, properties._disableAutoDeviceSwitch);
|
|
18368
18368
|
(0, _permissionListener.default)(_this);
|
|
18369
18369
|
if (hasVideoFilter) {
|
|
18370
18370
|
// We need to get the device now, before the filter is applied
|
|
@@ -96702,7 +96702,10 @@ const Events = (0, _events.default)();
|
|
|
96702
96702
|
const audioInputDevicesChangeHandler = (0, _audioInputDevicesChangeHandler.default)();
|
|
96703
96703
|
const _getNativeMediaDevice = (0, _deviceHelpers.default)(),
|
|
96704
96704
|
getNativeMediaDevices = _getNativeMediaDevice.getNativeMediaDevices;
|
|
96705
|
-
var _default = publisher
|
|
96705
|
+
var _default = function _default(publisher, disableDeviceSwitch) {
|
|
96706
|
+
if (disableDeviceSwitch === void 0) {
|
|
96707
|
+
disableDeviceSwitch = false;
|
|
96708
|
+
}
|
|
96706
96709
|
let isProcessing = false;
|
|
96707
96710
|
const deviceChangeListener = /*#__PURE__*/function () {
|
|
96708
96711
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
@@ -96722,11 +96725,15 @@ var _default = publisher => {
|
|
|
96722
96725
|
case 5:
|
|
96723
96726
|
device = _context.sent;
|
|
96724
96727
|
isProcessing = false;
|
|
96725
|
-
|
|
96728
|
+
if (disableDeviceSwitch) {
|
|
96729
|
+
_context.next = 10;
|
|
96730
|
+
break;
|
|
96731
|
+
}
|
|
96732
|
+
_context.next = 10;
|
|
96726
96733
|
return publisher.setAudioSource(device.deviceId);
|
|
96727
|
-
case 9:
|
|
96728
|
-
publisher.dispatchEvent(new Events.AudioInputDeviceChanged(device));
|
|
96729
96734
|
case 10:
|
|
96735
|
+
publisher.dispatchEvent(new Events.AudioInputDeviceChanged(device));
|
|
96736
|
+
case 11:
|
|
96730
96737
|
case "end":
|
|
96731
96738
|
return _context.stop();
|
|
96732
96739
|
}
|