@opentok/client 2.31.0-alpha.47 → 2.31.0-alpha.49
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 +13 -9
- 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 cb64d8927
|
|
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, 23 Sep 2025 06:25:37 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8688,7 +8688,7 @@ function staticConfigFactory(_temp) {
|
|
|
8688
8688
|
_ref$axios = _ref.axios,
|
|
8689
8689
|
axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
|
|
8690
8690
|
_ref$properties = _ref.properties,
|
|
8691
|
-
properties = _ref$properties === void 0 ? {"version":"v2.31.0","buildHash":"
|
|
8691
|
+
properties = _ref$properties === void 0 ? {"version":"v2.31.0","buildHash":"cb64d8927","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;
|
|
8692
8692
|
/** @type builtInConfig */
|
|
8693
8693
|
const builtInConfig = (0, _cloneDeep.default)(properties);
|
|
8694
8694
|
/**
|
|
@@ -45480,6 +45480,9 @@ function SessionFactory(deps) {
|
|
|
45480
45480
|
* <li><code>subscribeToVideo</code> (Boolean) — Whether to initially subscribe to video
|
|
45481
45481
|
* (if available) for the stream (default: <code>true</code>).</li>
|
|
45482
45482
|
*
|
|
45483
|
+
* <li><code>subscribeToCaptions</code> (Boolean) — Whether to initially subscribe to captions
|
|
45484
|
+
* (if available) for the stream (default: The captions value of the stream’s publisher).</li>
|
|
45485
|
+
*
|
|
45483
45486
|
* <li><code>testNetwork</code> (Boolean) — Whether, when subscribing to a stream
|
|
45484
45487
|
* published by the local client, you want to have the stream come from the Vonage Video API Media
|
|
45485
45488
|
* Router (<code>true</code>) or if you want the DOM to simply to display the local camera's
|
|
@@ -68814,8 +68817,7 @@ var _default = {
|
|
|
68814
68817
|
_ref3$enableDtx = _ref3.enableDtx,
|
|
68815
68818
|
enableDtx = _ref3$enableDtx === void 0 ? false : _ref3$enableDtx,
|
|
68816
68819
|
_ref3$replaceBaseline = _ref3.replaceBaselineProfile,
|
|
68817
|
-
replaceBaselineProfile = _ref3$replaceBaseline === void 0 ? false : _ref3$replaceBaseline
|
|
68818
|
-
sourceStreamId = _ref3.sourceStreamId;
|
|
68820
|
+
replaceBaselineProfile = _ref3$replaceBaseline === void 0 ? false : _ref3$replaceBaseline;
|
|
68819
68821
|
let sdp = sdpParam;
|
|
68820
68822
|
if (audioBitrate > 0) {
|
|
68821
68823
|
sdp = _sdp_helpers.default.setAudioBitrate(sdp, audioBitrate);
|
|
@@ -68823,9 +68825,6 @@ var _default = {
|
|
|
68823
68825
|
sdp = _sdp_helpers.default.modifyReceiveStereo(sdp, Boolean(enableStereo));
|
|
68824
68826
|
sdp = _sdp_helpers.default.modifySendStereo(sdp, false);
|
|
68825
68827
|
sdp = _sdp_helpers.default.modifyDtx(sdp, Boolean(enableDtx));
|
|
68826
|
-
if (sourceStreamId === 'MANTIS' && _sdp_helpers.default.getSetupRole(sdp) === 'passive') {
|
|
68827
|
-
sdp = _sdp_helpers.default.setSetupRole(sdp, 'active');
|
|
68828
|
-
}
|
|
68829
68828
|
if (codecFlags) {
|
|
68830
68829
|
Object.keys(codecFlags).filter(codec => codecFlags[codec] === false).forEach(codec => {
|
|
68831
68830
|
sdp = _sdp_helpers.default.removeVideoCodec(sdp, codec);
|
|
@@ -68847,7 +68846,8 @@ var _default = {
|
|
|
68847
68846
|
},
|
|
68848
68847
|
remote: {
|
|
68849
68848
|
offer: (_ref4, sdpParam) => {
|
|
68850
|
-
let
|
|
68849
|
+
let sourceStreamId = _ref4.sourceStreamId,
|
|
68850
|
+
_ref4$replaceBaseline = _ref4.replaceBaselineProfile,
|
|
68851
68851
|
replaceBaselineProfile = _ref4$replaceBaseline === void 0 ? false : _ref4$replaceBaseline;
|
|
68852
68852
|
let sdp = sdpParam;
|
|
68853
68853
|
if (sdp.indexOf('a=rtcp-fb') === -1) {
|
|
@@ -68861,6 +68861,9 @@ var _default = {
|
|
|
68861
68861
|
to: profiles.h264.baseline
|
|
68862
68862
|
});
|
|
68863
68863
|
}
|
|
68864
|
+
if (sourceStreamId === 'MANTIS') {
|
|
68865
|
+
sdp = _sdp_helpers.default.setSetupRole(sdp, 'passive');
|
|
68866
|
+
}
|
|
68864
68867
|
return {
|
|
68865
68868
|
local: sdp
|
|
68866
68869
|
};
|
|
@@ -69264,6 +69267,7 @@ function offerProcessor(peerConnection, RTCPeerConnection, RTCSessionDescription
|
|
|
69264
69267
|
const newOffer = new NativeRTCSessionDescription({
|
|
69265
69268
|
type: offer.type,
|
|
69266
69269
|
sdp: (0, _applySdpTransform.default)(sdpTransforms, 'remote', 'offer', {
|
|
69270
|
+
sourceStreamId,
|
|
69267
69271
|
replaceBaselineProfile
|
|
69268
69272
|
}, offer.sdp).local
|
|
69269
69273
|
});
|