@vonage/client-sdk-video 2.35.0-alpha.35 → 2.35.0-alpha.37
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 +53 -42
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +3 -3
- 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.35.0
|
|
2
|
+
* @license OpenTok.js 2.35.0 3be80338b
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2010-2026 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: Thu, 28 May 2026 06:59:35 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -41920,7 +41920,7 @@ function staticConfigFactory(_temp) {
|
|
|
41920
41920
|
_ref$axios = _ref.axios,
|
|
41921
41921
|
axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
|
|
41922
41922
|
_ref$properties = _ref.properties,
|
|
41923
|
-
properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"
|
|
41923
|
+
properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"3be80338b","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","vonageApiURL":""} : _ref$properties;
|
|
41924
41924
|
/** @type builtInConfig */
|
|
41925
41925
|
const builtInConfig = (0, _cloneDeep.default)(properties);
|
|
41926
41926
|
/**
|
|
@@ -45066,47 +45066,39 @@ function PublisherFactory(_ref) {
|
|
|
45066
45066
|
case 0:
|
|
45067
45067
|
isStaticContent = isStaticContentHint();
|
|
45068
45068
|
if (!_targetScalabilityMode) {
|
|
45069
|
-
_context12.next =
|
|
45069
|
+
_context12.next = 17;
|
|
45070
45070
|
break;
|
|
45071
45071
|
}
|
|
45072
45072
|
_context12.prev = 2;
|
|
45073
|
-
logAnalyticsEvent('setScalabilityMode', 'Attempt', {
|
|
45074
|
-
scalabilityMode: _targetScalabilityMode
|
|
45075
|
-
});
|
|
45076
45073
|
if (!isStaticContent) {
|
|
45077
|
-
_context12.next =
|
|
45074
|
+
_context12.next = 8;
|
|
45078
45075
|
break;
|
|
45079
45076
|
}
|
|
45080
|
-
_context12.next =
|
|
45077
|
+
_context12.next = 6;
|
|
45081
45078
|
return _this._setScalabilityMode(getTemporalOnlyScalabilityMode(_targetScalabilityMode));
|
|
45082
|
-
case
|
|
45083
|
-
_context12.next =
|
|
45079
|
+
case 6:
|
|
45080
|
+
_context12.next = 10;
|
|
45084
45081
|
break;
|
|
45085
|
-
case
|
|
45086
|
-
_context12.next =
|
|
45082
|
+
case 8:
|
|
45083
|
+
_context12.next = 10;
|
|
45087
45084
|
return Promise.all([_this._setScalabilityMode(_targetScalabilityMode, TARGET_SCALABILITY_MODE_SVC_CODECS), _this._setScalabilityMode(getTemporalOnlyScalabilityMode(_targetScalabilityMode), TARGET_SCALABILITY_MODE_NON_SVC_CODECS)]);
|
|
45088
|
-
case
|
|
45089
|
-
|
|
45090
|
-
scalabilityMode: _targetScalabilityMode
|
|
45091
|
-
});
|
|
45092
|
-
_context12.next = 18;
|
|
45085
|
+
case 10:
|
|
45086
|
+
_context12.next = 16;
|
|
45093
45087
|
break;
|
|
45094
|
-
case
|
|
45095
|
-
_context12.prev =
|
|
45088
|
+
case 12:
|
|
45089
|
+
_context12.prev = 12;
|
|
45096
45090
|
_context12.t0 = _context12["catch"](2);
|
|
45097
|
-
logging.error('OT.Publisher failed to apply scalability mode', _context12.t0);
|
|
45098
|
-
|
|
45099
|
-
|
|
45100
|
-
});
|
|
45101
|
-
case 18:
|
|
45091
|
+
logging.error('OT.Publisher failed to apply target scalability mode', _context12.t0);
|
|
45092
|
+
throw _context12.t0;
|
|
45093
|
+
case 16:
|
|
45102
45094
|
return _context12.abrupt("return");
|
|
45103
|
-
case
|
|
45095
|
+
case 17:
|
|
45104
45096
|
if (!(!properties.constraints.video || !sessionSimulcastEnabled || capableSimulcastStreams < 2)) {
|
|
45105
|
-
_context12.next =
|
|
45097
|
+
_context12.next = 19;
|
|
45106
45098
|
break;
|
|
45107
45099
|
}
|
|
45108
45100
|
return _context12.abrupt("return");
|
|
45109
|
-
case
|
|
45101
|
+
case 19:
|
|
45110
45102
|
codecsWhitelist = ['VP9'];
|
|
45111
45103
|
isCamera = !isScreenSharing && !isCustomVideoTrack;
|
|
45112
45104
|
if (isCamera) {
|
|
@@ -45116,24 +45108,24 @@ function PublisherFactory(_ref) {
|
|
|
45116
45108
|
scalabilityMode = (0, _getScalabilityModeFromContentHint.default)(_this.getVideoContentHint());
|
|
45117
45109
|
}
|
|
45118
45110
|
if (!scalabilityMode) {
|
|
45119
|
-
_context12.next =
|
|
45111
|
+
_context12.next = 31;
|
|
45120
45112
|
break;
|
|
45121
45113
|
}
|
|
45122
|
-
_context12.prev =
|
|
45123
|
-
_context12.next =
|
|
45114
|
+
_context12.prev = 23;
|
|
45115
|
+
_context12.next = 26;
|
|
45124
45116
|
return _this._setScalabilityMode(scalabilityMode, codecsWhitelist);
|
|
45125
|
-
case
|
|
45126
|
-
_context12.next =
|
|
45117
|
+
case 26:
|
|
45118
|
+
_context12.next = 31;
|
|
45127
45119
|
break;
|
|
45128
|
-
case
|
|
45129
|
-
_context12.prev =
|
|
45130
|
-
_context12.t1 = _context12["catch"](
|
|
45120
|
+
case 28:
|
|
45121
|
+
_context12.prev = 28;
|
|
45122
|
+
_context12.t1 = _context12["catch"](23);
|
|
45131
45123
|
logging.error('OT.Publisher failed to apply scalability mode', _context12.t1);
|
|
45132
|
-
case
|
|
45124
|
+
case 31:
|
|
45133
45125
|
case "end":
|
|
45134
45126
|
return _context12.stop();
|
|
45135
45127
|
}
|
|
45136
|
-
}, _callee12, null, [[2,
|
|
45128
|
+
}, _callee12, null, [[2, 12], [23, 28]]);
|
|
45137
45129
|
}));
|
|
45138
45130
|
return function configureScalabilityMode() {
|
|
45139
45131
|
return _ref21.apply(this, arguments);
|
|
@@ -46685,7 +46677,7 @@ function PublisherFactory(_ref) {
|
|
|
46685
46677
|
_targetContentHint = videoContentHint;
|
|
46686
46678
|
(0, _videoContentHint.setVideoContentHint)(webRTCStream, videoContentHint);
|
|
46687
46679
|
if (changedStaticContent || isScreenSharing && properties._setDefaultScalabilityMode) {
|
|
46688
|
-
configureScalabilityMode();
|
|
46680
|
+
configureScalabilityMode().catch(() => {});
|
|
46689
46681
|
}
|
|
46690
46682
|
};
|
|
46691
46683
|
|
|
@@ -46731,11 +46723,30 @@ function PublisherFactory(_ref) {
|
|
|
46731
46723
|
* @memberOf Publisher
|
|
46732
46724
|
*/
|
|
46733
46725
|
this.setTargetScalabilityMode = scalabilityMode => {
|
|
46726
|
+
logAnalyticsEvent('setTargetScalabilityMode', 'Attempt', undefined, {
|
|
46727
|
+
targetScalabilityMode: scalabilityMode
|
|
46728
|
+
});
|
|
46734
46729
|
if (!VALID_TARGET_SCALABILITY_MODES.has(scalabilityMode)) {
|
|
46735
|
-
|
|
46730
|
+
const error = otError(Errors.INVALID_PARAMETER, new Error(INVALID_TARGET_SCALABILITY_MODE_MESSAGE));
|
|
46731
|
+
logAnalyticsEvent('setTargetScalabilityMode', 'Failure', {
|
|
46732
|
+
message: error.message
|
|
46733
|
+
}, {
|
|
46734
|
+
targetScalabilityMode: scalabilityMode
|
|
46735
|
+
});
|
|
46736
|
+
throw error;
|
|
46736
46737
|
}
|
|
46737
46738
|
_targetScalabilityMode = scalabilityMode;
|
|
46738
|
-
configureScalabilityMode()
|
|
46739
|
+
configureScalabilityMode().then(() => {
|
|
46740
|
+
logAnalyticsEvent('setTargetScalabilityMode', 'Success', undefined, {
|
|
46741
|
+
targetScalabilityMode: scalabilityMode
|
|
46742
|
+
});
|
|
46743
|
+
}).catch(err => {
|
|
46744
|
+
logAnalyticsEvent('setTargetScalabilityMode', 'Failure', {
|
|
46745
|
+
message: err.message
|
|
46746
|
+
}, {
|
|
46747
|
+
targetScalabilityMode: scalabilityMode
|
|
46748
|
+
});
|
|
46749
|
+
});
|
|
46739
46750
|
};
|
|
46740
46751
|
|
|
46741
46752
|
/**
|
|
@@ -48032,7 +48043,7 @@ function PublisherFactory(_ref) {
|
|
|
48032
48043
|
}
|
|
48033
48044
|
this._setScalableFramerates(properties.scalableFramerates);
|
|
48034
48045
|
this._setScalableVideoLayers(properties.scalableVideoLayers);
|
|
48035
|
-
configureScalabilityMode();
|
|
48046
|
+
configureScalabilityMode().catch(() => {});
|
|
48036
48047
|
|
|
48037
48048
|
// See OPENTOK-45935
|
|
48038
48049
|
// Some users reuse the publisher when disconnecting and reconnecting
|