@whereby.com/core 1.29.0 → 1.30.0
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/index.cjs +9 -1
- package/dist/index.mjs +9 -1
- package/dist/legacy-esm.js +9 -1
- package/dist/redux/index.cjs +9 -1
- package/dist/redux/index.js +9 -1
- package/dist/redux/index.mjs +9 -1
- package/package.json +9 -4
package/dist/index.cjs
CHANGED
|
@@ -1313,7 +1313,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
};
|
|
1315
1315
|
|
|
1316
|
-
const coreVersion = "1.
|
|
1316
|
+
const coreVersion = "1.30.0";
|
|
1317
1317
|
|
|
1318
1318
|
function decodeRoomName(roomName) {
|
|
1319
1319
|
if (!roomName) {
|
|
@@ -1986,6 +1986,8 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
1986
1986
|
const { changedDevices, addedDevices } = media.getUpdatedDevices({
|
|
1987
1987
|
oldDevices,
|
|
1988
1988
|
newDevices,
|
|
1989
|
+
currentAudioId: selectCurrentMicrophoneDeviceId(state),
|
|
1990
|
+
currentVideoId: selectCurrentCameraDeviceId(state),
|
|
1989
1991
|
});
|
|
1990
1992
|
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
1991
1993
|
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
@@ -1995,6 +1997,12 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
1995
1997
|
if (autoSwitchVideoId === undefined) {
|
|
1996
1998
|
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
1997
1999
|
}
|
|
2000
|
+
if (!selectIsMicrophoneEnabled(getState())) {
|
|
2001
|
+
autoSwitchAudioId = undefined;
|
|
2002
|
+
}
|
|
2003
|
+
if (!selectIsCameraEnabled(getState())) {
|
|
2004
|
+
autoSwitchVideoId = undefined;
|
|
2005
|
+
}
|
|
1998
2006
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
1999
2007
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
2000
2008
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1311,7 +1311,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1311
1311
|
});
|
|
1312
1312
|
};
|
|
1313
1313
|
|
|
1314
|
-
const coreVersion = "1.
|
|
1314
|
+
const coreVersion = "1.30.0";
|
|
1315
1315
|
|
|
1316
1316
|
function decodeRoomName(roomName) {
|
|
1317
1317
|
if (!roomName) {
|
|
@@ -1984,6 +1984,8 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
1984
1984
|
const { changedDevices, addedDevices } = getUpdatedDevices({
|
|
1985
1985
|
oldDevices,
|
|
1986
1986
|
newDevices,
|
|
1987
|
+
currentAudioId: selectCurrentMicrophoneDeviceId(state),
|
|
1988
|
+
currentVideoId: selectCurrentCameraDeviceId(state),
|
|
1987
1989
|
});
|
|
1988
1990
|
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
1989
1991
|
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
@@ -1993,6 +1995,12 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
1993
1995
|
if (autoSwitchVideoId === undefined) {
|
|
1994
1996
|
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
1995
1997
|
}
|
|
1998
|
+
if (!selectIsMicrophoneEnabled(getState())) {
|
|
1999
|
+
autoSwitchAudioId = undefined;
|
|
2000
|
+
}
|
|
2001
|
+
if (!selectIsCameraEnabled(getState())) {
|
|
2002
|
+
autoSwitchVideoId = undefined;
|
|
2003
|
+
}
|
|
1996
2004
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
1997
2005
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
1998
2006
|
}
|
package/dist/legacy-esm.js
CHANGED
|
@@ -1311,7 +1311,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1311
1311
|
});
|
|
1312
1312
|
};
|
|
1313
1313
|
|
|
1314
|
-
const coreVersion = "1.
|
|
1314
|
+
const coreVersion = "1.30.0";
|
|
1315
1315
|
|
|
1316
1316
|
function decodeRoomName(roomName) {
|
|
1317
1317
|
if (!roomName) {
|
|
@@ -1984,6 +1984,8 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
1984
1984
|
const { changedDevices, addedDevices } = getUpdatedDevices({
|
|
1985
1985
|
oldDevices,
|
|
1986
1986
|
newDevices,
|
|
1987
|
+
currentAudioId: selectCurrentMicrophoneDeviceId(state),
|
|
1988
|
+
currentVideoId: selectCurrentCameraDeviceId(state),
|
|
1987
1989
|
});
|
|
1988
1990
|
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
1989
1991
|
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
@@ -1993,6 +1995,12 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
1993
1995
|
if (autoSwitchVideoId === undefined) {
|
|
1994
1996
|
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
1995
1997
|
}
|
|
1998
|
+
if (!selectIsMicrophoneEnabled(getState())) {
|
|
1999
|
+
autoSwitchAudioId = undefined;
|
|
2000
|
+
}
|
|
2001
|
+
if (!selectIsCameraEnabled(getState())) {
|
|
2002
|
+
autoSwitchVideoId = undefined;
|
|
2003
|
+
}
|
|
1996
2004
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
1997
2005
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
1998
2006
|
}
|
package/dist/redux/index.cjs
CHANGED
|
@@ -76,7 +76,7 @@ const createReactor = (selectors, callback) => {
|
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
const coreVersion = "1.
|
|
79
|
+
const coreVersion = "1.30.0";
|
|
80
80
|
|
|
81
81
|
function decodeRoomName(roomName) {
|
|
82
82
|
if (!roomName) {
|
|
@@ -767,6 +767,8 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
767
767
|
const { changedDevices, addedDevices } = media.getUpdatedDevices({
|
|
768
768
|
oldDevices,
|
|
769
769
|
newDevices,
|
|
770
|
+
currentAudioId: selectCurrentMicrophoneDeviceId(state),
|
|
771
|
+
currentVideoId: selectCurrentCameraDeviceId(state),
|
|
770
772
|
});
|
|
771
773
|
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
772
774
|
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
@@ -776,6 +778,12 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
776
778
|
if (autoSwitchVideoId === undefined) {
|
|
777
779
|
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
778
780
|
}
|
|
781
|
+
if (!selectIsMicrophoneEnabled(getState())) {
|
|
782
|
+
autoSwitchAudioId = undefined;
|
|
783
|
+
}
|
|
784
|
+
if (!selectIsCameraEnabled(getState())) {
|
|
785
|
+
autoSwitchVideoId = undefined;
|
|
786
|
+
}
|
|
779
787
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
780
788
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
781
789
|
}
|
package/dist/redux/index.js
CHANGED
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "1.
|
|
77
|
+
const coreVersion = "1.30.0";
|
|
78
78
|
|
|
79
79
|
function decodeRoomName(roomName) {
|
|
80
80
|
if (!roomName) {
|
|
@@ -765,6 +765,8 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
765
765
|
const { changedDevices, addedDevices } = getUpdatedDevices({
|
|
766
766
|
oldDevices,
|
|
767
767
|
newDevices,
|
|
768
|
+
currentAudioId: selectCurrentMicrophoneDeviceId(state),
|
|
769
|
+
currentVideoId: selectCurrentCameraDeviceId(state),
|
|
768
770
|
});
|
|
769
771
|
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
770
772
|
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
@@ -774,6 +776,12 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
774
776
|
if (autoSwitchVideoId === undefined) {
|
|
775
777
|
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
776
778
|
}
|
|
779
|
+
if (!selectIsMicrophoneEnabled(getState())) {
|
|
780
|
+
autoSwitchAudioId = undefined;
|
|
781
|
+
}
|
|
782
|
+
if (!selectIsCameraEnabled(getState())) {
|
|
783
|
+
autoSwitchVideoId = undefined;
|
|
784
|
+
}
|
|
777
785
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
778
786
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
779
787
|
}
|
package/dist/redux/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "1.
|
|
77
|
+
const coreVersion = "1.30.0";
|
|
78
78
|
|
|
79
79
|
function decodeRoomName(roomName) {
|
|
80
80
|
if (!roomName) {
|
|
@@ -765,6 +765,8 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
765
765
|
const { changedDevices, addedDevices } = getUpdatedDevices({
|
|
766
766
|
oldDevices,
|
|
767
767
|
newDevices,
|
|
768
|
+
currentAudioId: selectCurrentMicrophoneDeviceId(state),
|
|
769
|
+
currentVideoId: selectCurrentCameraDeviceId(state),
|
|
768
770
|
});
|
|
769
771
|
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
770
772
|
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
@@ -774,6 +776,12 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
774
776
|
if (autoSwitchVideoId === undefined) {
|
|
775
777
|
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
776
778
|
}
|
|
779
|
+
if (!selectIsMicrophoneEnabled(getState())) {
|
|
780
|
+
autoSwitchAudioId = undefined;
|
|
781
|
+
}
|
|
782
|
+
if (!selectIsCameraEnabled(getState())) {
|
|
783
|
+
autoSwitchVideoId = undefined;
|
|
784
|
+
}
|
|
777
785
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
778
786
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
779
787
|
}
|
package/package.json
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
"name": "@whereby.com/core",
|
|
3
3
|
"description": "Core library for whereby.com sdk",
|
|
4
4
|
"author": "Whereby AS",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.30.0",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/whereby/sdk.git",
|
|
10
|
+
"directory": "packages/core"
|
|
11
|
+
},
|
|
7
12
|
"publishConfig": {
|
|
8
13
|
"access": "public"
|
|
9
14
|
},
|
|
@@ -66,9 +71,9 @@
|
|
|
66
71
|
},
|
|
67
72
|
"dependencies": {
|
|
68
73
|
"@reduxjs/toolkit": "^2.2.3",
|
|
69
|
-
"@whereby.com/media": "11.3.
|
|
70
|
-
"@whereby.com/audio-denoiser": "1.0.
|
|
71
|
-
"@whereby.com/camera-effects": "1.1.
|
|
74
|
+
"@whereby.com/media": "11.3.4",
|
|
75
|
+
"@whereby.com/audio-denoiser": "1.0.32",
|
|
76
|
+
"@whereby.com/camera-effects": "1.1.4",
|
|
72
77
|
"axios": "^1.11.0",
|
|
73
78
|
"btoa": "^1.2.1",
|
|
74
79
|
"events": "^3.3.0"
|