@opentok/client 2.29.4-alpha.4 → 2.29.4-alpha.5
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.29.4
|
|
2
|
+
* @license OpenTok.js 2.29.4 cd82ca2
|
|
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 13:52:13 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.29.4","buildHash":"
|
|
8675
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.29.4","buildHash":"cd82ca2","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',
|
|
@@ -37619,8 +37619,12 @@ function SubscriberFactory(_ref2) {
|
|
|
37619
37619
|
const hasExpectedTracks = peerConnection => {
|
|
37620
37620
|
const hasVideoTracks = peerConnection._hasVideoTracks();
|
|
37621
37621
|
const hasAudioTracks = peerConnection._hasAudioTracks();
|
|
37622
|
-
|
|
37623
|
-
|
|
37622
|
+
|
|
37623
|
+
// If we're not subbing to video/audio, we don't expect those tracks in the PC
|
|
37624
|
+
const shouldHaveVideoTracks = _properties.subscribeToVideo;
|
|
37625
|
+
const shouldHaveAudioTracks = _properties.subscribeToAudio;
|
|
37626
|
+
const isMissingVideo = _stream && _stream.hasVideo && !hasVideoTracks && shouldHaveVideoTracks;
|
|
37627
|
+
const isMissingAudio = _stream && _stream.hasAudio && !hasAudioTracks && shouldHaveAudioTracks;
|
|
37624
37628
|
return !(isMissingVideo || isMissingAudio);
|
|
37625
37629
|
};
|
|
37626
37630
|
const onTrackAdded = /*#__PURE__*/function () {
|
|
@@ -41938,7 +41942,7 @@ exports.default = _default;
|
|
|
41938
41942
|
exports.__esModule = true;
|
|
41939
41943
|
exports.default = void 0;
|
|
41940
41944
|
var _default = (mediaStream, oldTrack, newTrack) => {
|
|
41941
|
-
if (oldTrack === newTrack) {
|
|
41945
|
+
if (oldTrack === newTrack || !oldTrack || !newTrack) {
|
|
41942
41946
|
return;
|
|
41943
41947
|
}
|
|
41944
41948
|
mediaStream.removeTrack(oldTrack);
|