@opentok/client 2.30.0-alpha.13 → 2.30.0-alpha.14
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 +10 -6
- 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.30.0
|
|
2
|
+
* @license OpenTok.js 2.30.0 e92b0ba
|
|
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: Thu, 01 May 2025 16:34:48 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8672,7 +8672,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8672
8672
|
*/
|
|
8673
8673
|
|
|
8674
8674
|
/** @type builtInConfig */
|
|
8675
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.0","buildHash":"
|
|
8675
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.0","buildHash":"e92b0ba","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"});
|
|
8676
8676
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8677
8677
|
const liveConfigMap = {
|
|
8678
8678
|
apiUrl: 'apiURL',
|
|
@@ -37605,8 +37605,12 @@ function SubscriberFactory(_ref2) {
|
|
|
37605
37605
|
const hasExpectedTracks = peerConnection => {
|
|
37606
37606
|
const hasVideoTracks = peerConnection._hasVideoTracks();
|
|
37607
37607
|
const hasAudioTracks = peerConnection._hasAudioTracks();
|
|
37608
|
-
|
|
37609
|
-
|
|
37608
|
+
|
|
37609
|
+
// If we're not subbing to video/audio, we don't expect those tracks in the PC
|
|
37610
|
+
const shouldHaveVideoTracks = _properties.subscribeToVideo;
|
|
37611
|
+
const shouldHaveAudioTracks = _properties.subscribeToAudio;
|
|
37612
|
+
const isMissingVideo = _stream && _stream.hasVideo && !hasVideoTracks && shouldHaveVideoTracks;
|
|
37613
|
+
const isMissingAudio = _stream && _stream.hasAudio && !hasAudioTracks && shouldHaveAudioTracks;
|
|
37610
37614
|
return !(isMissingVideo || isMissingAudio);
|
|
37611
37615
|
};
|
|
37612
37616
|
const onTrackAdded = /*#__PURE__*/function () {
|
|
@@ -41923,7 +41927,7 @@ exports.default = _default;
|
|
|
41923
41927
|
exports.__esModule = true;
|
|
41924
41928
|
exports.default = void 0;
|
|
41925
41929
|
var _default = (mediaStream, oldTrack, newTrack) => {
|
|
41926
|
-
if (oldTrack === newTrack) {
|
|
41930
|
+
if (oldTrack === newTrack || !oldTrack || !newTrack) {
|
|
41927
41931
|
return;
|
|
41928
41932
|
}
|
|
41929
41933
|
mediaStream.removeTrack(oldTrack);
|