@vonage/client-sdk-video 2.35.0-alpha.58 → 2.35.0-alpha.59
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 +47 -41
- 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 ae7968a8a
|
|
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: Fri, 19 Jun 2026
|
|
8
|
+
* Date: Fri, 19 Jun 2026 15:05:11 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -39537,7 +39537,7 @@ function staticConfigFactory(_temp) {
|
|
|
39537
39537
|
_ref$axios = _ref.axios,
|
|
39538
39538
|
axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
|
|
39539
39539
|
_ref$properties = _ref.properties,
|
|
39540
|
-
properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"
|
|
39540
|
+
properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"ae7968a8a","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;
|
|
39541
39541
|
/** @type builtInConfig */
|
|
39542
39542
|
const builtInConfig = (0, _cloneDeep.default)(properties);
|
|
39543
39543
|
/**
|
|
@@ -42681,72 +42681,78 @@ function PublisherFactory(_ref) {
|
|
|
42681
42681
|
const getTemporalOnlyScalabilityMode = scalabilityMode => `L1${scalabilityMode.slice(2)}`;
|
|
42682
42682
|
const configureScalabilityMode = /*#__PURE__*/function () {
|
|
42683
42683
|
var _ref21 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
|
42684
|
-
var
|
|
42684
|
+
var _webRTCStream;
|
|
42685
|
+
var isStaticContent, scalabilityMode, codecsWhitelist;
|
|
42685
42686
|
return _regenerator.default.wrap(function _callee12$(_context12) {
|
|
42686
42687
|
while (1) switch (_context12.prev = _context12.next) {
|
|
42687
42688
|
case 0:
|
|
42689
|
+
if ((_webRTCStream = webRTCStream) != null && _webRTCStream.getVideoTracks().length) {
|
|
42690
|
+
_context12.next = 2;
|
|
42691
|
+
break;
|
|
42692
|
+
}
|
|
42693
|
+
return _context12.abrupt("return");
|
|
42694
|
+
case 2:
|
|
42688
42695
|
isStaticContent = isStaticContentHint();
|
|
42689
42696
|
if (!_targetScalabilityMode) {
|
|
42690
|
-
_context12.next =
|
|
42697
|
+
_context12.next = 19;
|
|
42691
42698
|
break;
|
|
42692
42699
|
}
|
|
42693
|
-
_context12.prev =
|
|
42700
|
+
_context12.prev = 4;
|
|
42694
42701
|
if (!isStaticContent) {
|
|
42695
|
-
_context12.next =
|
|
42702
|
+
_context12.next = 10;
|
|
42696
42703
|
break;
|
|
42697
42704
|
}
|
|
42698
|
-
_context12.next =
|
|
42705
|
+
_context12.next = 8;
|
|
42699
42706
|
return _this._setScalabilityMode(getTemporalOnlyScalabilityMode(_targetScalabilityMode));
|
|
42700
|
-
case 6:
|
|
42701
|
-
_context12.next = 10;
|
|
42702
|
-
break;
|
|
42703
42707
|
case 8:
|
|
42704
|
-
_context12.next =
|
|
42705
|
-
return Promise.all([_this._setScalabilityMode(_targetScalabilityMode, TARGET_SCALABILITY_MODE_SVC_CODECS), _this._setScalabilityMode(getTemporalOnlyScalabilityMode(_targetScalabilityMode), TARGET_SCALABILITY_MODE_NON_SVC_CODECS)]);
|
|
42706
|
-
case 10:
|
|
42707
|
-
_context12.next = 16;
|
|
42708
|
+
_context12.next = 12;
|
|
42708
42709
|
break;
|
|
42710
|
+
case 10:
|
|
42711
|
+
_context12.next = 12;
|
|
42712
|
+
return Promise.all([_this._setScalabilityMode(_targetScalabilityMode, TARGET_SCALABILITY_MODE_SVC_CODECS), _this._setScalabilityMode(getTemporalOnlyScalabilityMode(_targetScalabilityMode), TARGET_SCALABILITY_MODE_NON_SVC_CODECS)]);
|
|
42709
42713
|
case 12:
|
|
42710
|
-
_context12.
|
|
42711
|
-
|
|
42714
|
+
_context12.next = 18;
|
|
42715
|
+
break;
|
|
42716
|
+
case 14:
|
|
42717
|
+
_context12.prev = 14;
|
|
42718
|
+
_context12.t0 = _context12["catch"](4);
|
|
42712
42719
|
logging.error('OT.Publisher failed to apply target scalability mode', _context12.t0);
|
|
42713
42720
|
throw _context12.t0;
|
|
42714
|
-
case
|
|
42721
|
+
case 18:
|
|
42715
42722
|
return _context12.abrupt("return");
|
|
42716
|
-
case
|
|
42717
|
-
if (!(!
|
|
42718
|
-
_context12.next =
|
|
42723
|
+
case 19:
|
|
42724
|
+
if (!(!sessionSimulcastEnabled || capableSimulcastStreams < 2)) {
|
|
42725
|
+
_context12.next = 21;
|
|
42719
42726
|
break;
|
|
42720
42727
|
}
|
|
42721
42728
|
return _context12.abrupt("return");
|
|
42722
|
-
case
|
|
42729
|
+
case 21:
|
|
42723
42730
|
codecsWhitelist = ['VP9'];
|
|
42724
|
-
|
|
42725
|
-
if (isCamera) {
|
|
42731
|
+
if (!isScreenSharing) {
|
|
42726
42732
|
scalabilityMode = isStaticContent ? 'L1T3' : 'L3T3';
|
|
42727
|
-
} else if (properties._setDefaultScalabilityMode
|
|
42733
|
+
} else if (properties._setDefaultScalabilityMode) {
|
|
42728
42734
|
// When using private API, and screenSharing, rely on content hint.
|
|
42729
42735
|
scalabilityMode = (0, _getScalabilityModeFromContentHint.default)(_this.getVideoContentHint());
|
|
42730
42736
|
}
|
|
42731
42737
|
if (!scalabilityMode) {
|
|
42732
|
-
_context12.next =
|
|
42738
|
+
_context12.next = 32;
|
|
42733
42739
|
break;
|
|
42734
42740
|
}
|
|
42735
|
-
_context12.prev =
|
|
42736
|
-
_context12.next =
|
|
42741
|
+
_context12.prev = 24;
|
|
42742
|
+
_context12.next = 27;
|
|
42737
42743
|
return _this._setScalabilityMode(scalabilityMode, codecsWhitelist);
|
|
42738
|
-
case
|
|
42739
|
-
_context12.next =
|
|
42744
|
+
case 27:
|
|
42745
|
+
_context12.next = 32;
|
|
42740
42746
|
break;
|
|
42741
|
-
case
|
|
42742
|
-
_context12.prev =
|
|
42743
|
-
_context12.t1 = _context12["catch"](
|
|
42747
|
+
case 29:
|
|
42748
|
+
_context12.prev = 29;
|
|
42749
|
+
_context12.t1 = _context12["catch"](24);
|
|
42744
42750
|
logging.error('OT.Publisher failed to apply scalability mode', _context12.t1);
|
|
42745
|
-
case
|
|
42751
|
+
case 32:
|
|
42746
42752
|
case "end":
|
|
42747
42753
|
return _context12.stop();
|
|
42748
42754
|
}
|
|
42749
|
-
}, _callee12, null, [[
|
|
42755
|
+
}, _callee12, null, [[4, 14], [24, 29]]);
|
|
42750
42756
|
}));
|
|
42751
42757
|
return function configureScalabilityMode() {
|
|
42752
42758
|
return _ref21.apply(this, arguments);
|
|
@@ -47766,8 +47772,8 @@ function PublisherFactory(_ref) {
|
|
|
47766
47772
|
// Returns the settings of the most authoritative video track, using the same
|
|
47767
47773
|
// priority order as applyVideoConstraints (original track before processed track).
|
|
47768
47774
|
const getPreferredVideoTrackSettings = () => {
|
|
47769
|
-
var _videoMediaProcessorC,
|
|
47770
|
-
const track = typeof (mediaProcessor == null ? void 0 : mediaProcessor.getOriginalVideoTrack) === 'function' && mediaProcessor.getOriginalVideoTrack() || ((_videoMediaProcessorC = _videoMediaProcessorConnector) == null ? void 0 : _videoMediaProcessorC.originalTrack) || ((
|
|
47775
|
+
var _videoMediaProcessorC, _webRTCStream2, _webRTCStream2$getVid, _track$getSettings;
|
|
47776
|
+
const track = typeof (mediaProcessor == null ? void 0 : mediaProcessor.getOriginalVideoTrack) === 'function' && mediaProcessor.getOriginalVideoTrack() || ((_videoMediaProcessorC = _videoMediaProcessorConnector) == null ? void 0 : _videoMediaProcessorC.originalTrack) || ((_webRTCStream2 = webRTCStream) == null ? void 0 : (_webRTCStream2$getVid = _webRTCStream2.getVideoTracks()) == null ? void 0 : _webRTCStream2$getVid[0]);
|
|
47771
47777
|
return (_track$getSettings = track == null ? void 0 : track.getSettings()) != null ? _track$getSettings : {};
|
|
47772
47778
|
};
|
|
47773
47779
|
const applyVideoConstraints = () => {
|
|
@@ -47807,7 +47813,7 @@ function PublisherFactory(_ref) {
|
|
|
47807
47813
|
*/
|
|
47808
47814
|
this.setPreferredResolution = /*#__PURE__*/function () {
|
|
47809
47815
|
var _ref71 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee64(preferredResolution) {
|
|
47810
|
-
var
|
|
47816
|
+
var _webRTCStream3, _webRTCStream3$getVid, _properties$videoDime3, _properties$videoDime4;
|
|
47811
47817
|
var message, startingWidth, startingHeight, startingArea, preferredArea, result, _getPreferredVideoTra2, width, height;
|
|
47812
47818
|
return _regenerator.default.wrap(function _callee64$(_context64) {
|
|
47813
47819
|
while (1) switch (_context64.prev = _context64.next) {
|
|
@@ -47815,7 +47821,7 @@ function PublisherFactory(_ref) {
|
|
|
47815
47821
|
logAnalyticsEvent('setPreferredResolution', 'Attempt', {
|
|
47816
47822
|
preferredResolution
|
|
47817
47823
|
});
|
|
47818
|
-
if (!(!properties.publishVideo || !((
|
|
47824
|
+
if (!(!properties.publishVideo || !((_webRTCStream3 = webRTCStream) != null && (_webRTCStream3$getVid = _webRTCStream3.getVideoTracks()) != null && _webRTCStream3$getVid.length))) {
|
|
47819
47825
|
_context64.next = 5;
|
|
47820
47826
|
break;
|
|
47821
47827
|
}
|
|
@@ -47918,7 +47924,7 @@ function PublisherFactory(_ref) {
|
|
|
47918
47924
|
*/
|
|
47919
47925
|
this.setPreferredFrameRate = /*#__PURE__*/function () {
|
|
47920
47926
|
var _ref72 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee65(frameRate) {
|
|
47921
|
-
var
|
|
47927
|
+
var _webRTCStream4, _webRTCStream4$getVid;
|
|
47922
47928
|
var message, result, _getPreferredVideoTra3, actualFrameRate;
|
|
47923
47929
|
return _regenerator.default.wrap(function _callee65$(_context65) {
|
|
47924
47930
|
while (1) switch (_context65.prev = _context65.next) {
|
|
@@ -47926,7 +47932,7 @@ function PublisherFactory(_ref) {
|
|
|
47926
47932
|
logAnalyticsEvent('setPreferredFrameRate', 'Attempt', {
|
|
47927
47933
|
frameRate
|
|
47928
47934
|
});
|
|
47929
|
-
if (!(!properties.publishVideo || !((
|
|
47935
|
+
if (!(!properties.publishVideo || !((_webRTCStream4 = webRTCStream) != null && (_webRTCStream4$getVid = _webRTCStream4.getVideoTracks()) != null && _webRTCStream4$getVid.length))) {
|
|
47930
47936
|
_context65.next = 5;
|
|
47931
47937
|
break;
|
|
47932
47938
|
}
|