@whereby.com/core 1.25.0 → 1.26.1
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 +266 -6
- package/dist/index.d.cts +40 -2
- package/dist/index.d.mts +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.mjs +267 -8
- package/dist/legacy-esm.js +267 -8
- package/dist/redux/index.cjs +264 -5
- package/dist/redux/index.d.cts +424 -3
- package/dist/redux/index.d.mts +424 -3
- package/dist/redux/index.d.ts +424 -3
- package/dist/redux/index.js +252 -7
- package/dist/redux/index.mjs +252 -7
- package/package.json +3 -3
package/dist/redux/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAsyncThunk, createListenerMiddleware, addListener, createSlice, createAction, createSelector, isAnyOf, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import { ServerSocket, isFileShareError, getDeviceData, getStream, getUpdatedDevices, replaceTracksInStream, getDisplayMedia, CAMERA_STREAM_ID, RtcManagerDispatcher, setClientProvider, subscribeIssues, isRoomIntegrationErrorCode, assert, fromLocation } from '@whereby.com/media';
|
|
2
|
+
import { ServerSocket, isFileShareError, getDeviceData, getStream, getUpdatedDevices, replaceTracksInStream, hasGetDisplayMedia, getDisplayMedia, CAMERA_STREAM_ID, RtcManagerDispatcher, setClientProvider, subscribeIssues, isRoomIntegrationErrorCode, assert, fromLocation } from '@whereby.com/media';
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
import nodeBtoa from 'btoa';
|
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "1.
|
|
77
|
+
const coreVersion = "1.26.1";
|
|
78
78
|
|
|
79
79
|
function decodeRoomName(roomName) {
|
|
80
80
|
if (!roomName) {
|
|
@@ -1127,6 +1127,7 @@ const rtcEvents = {
|
|
|
1127
1127
|
rtcManagerDestroyed: createRtcEventAction("rtcManagerDestroyed"),
|
|
1128
1128
|
streamAdded: createRtcEventAction("streamAdded"),
|
|
1129
1129
|
clientConnectionStatusChanged: createRtcEventAction("clientConnectionStatusChanged"),
|
|
1130
|
+
mediaQualityChanged: createRtcEventAction("mediaQualityChanged"),
|
|
1130
1131
|
};
|
|
1131
1132
|
|
|
1132
1133
|
function createRemoteParticipant(client, newJoiner = false) {
|
|
@@ -1488,7 +1489,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1488
1489
|
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
1489
1490
|
isAudioEnabled: true,
|
|
1490
1491
|
isVideoEnabled: true,
|
|
1491
|
-
}, deviceCapabilities: { canScreenshare:
|
|
1492
|
+
}, deviceCapabilities: { canScreenshare: hasGetDisplayMedia() }, displayName, isCoLocated: false, isDialIn,
|
|
1492
1493
|
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1493
1494
|
roomKey,
|
|
1494
1495
|
roomName,
|
|
@@ -1525,7 +1526,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1525
1526
|
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
1526
1527
|
isAudioEnabled: isMicrophoneEnabled,
|
|
1527
1528
|
isVideoEnabled: isCameraEnabled,
|
|
1528
|
-
}, deviceCapabilities: { canScreenshare:
|
|
1529
|
+
}, deviceCapabilities: { canScreenshare: hasGetDisplayMedia() }, displayName, isCoLocated: false, isDialIn,
|
|
1529
1530
|
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1530
1531
|
roomKey,
|
|
1531
1532
|
assistantKey,
|
|
@@ -2613,6 +2614,9 @@ const createWebRtcEmitter = (dispatch) => {
|
|
|
2613
2614
|
else if (eventName === "client_connection_status_changed") {
|
|
2614
2615
|
dispatch(rtcEvents.clientConnectionStatusChanged(data));
|
|
2615
2616
|
}
|
|
2617
|
+
else if (eventName === "media_quality_changed") {
|
|
2618
|
+
dispatch(rtcEvents.mediaQualityChanged(data));
|
|
2619
|
+
}
|
|
2616
2620
|
else ;
|
|
2617
2621
|
},
|
|
2618
2622
|
};
|
|
@@ -2987,8 +2991,66 @@ createReactor([selectStreamsToAccept, selectIsAcceptingStreams], ({ dispatch },
|
|
|
2987
2991
|
}
|
|
2988
2992
|
});
|
|
2989
2993
|
|
|
2994
|
+
const CALL_QUALITY_LEVELS = {
|
|
2995
|
+
CRITICAL: "critical",
|
|
2996
|
+
WARNING: "warning",
|
|
2997
|
+
OK: "ok",
|
|
2998
|
+
};
|
|
2999
|
+
const CALL_QUALITY_LEVEL_ORDER = Object.values(CALL_QUALITY_LEVELS);
|
|
3000
|
+
function convertQualityScoreToNumber(score) {
|
|
3001
|
+
return score !== undefined && score !== null
|
|
3002
|
+
? CALL_QUALITY_LEVEL_ORDER.indexOf(score)
|
|
3003
|
+
: CALL_QUALITY_LEVEL_ORDER.indexOf(CALL_QUALITY_LEVELS.OK);
|
|
3004
|
+
}
|
|
3005
|
+
const getActiveIssues = (allIssues, issuesToCheck = []) => Object.keys(allIssues).reduce((issuesAcc, issueKey) => {
|
|
3006
|
+
const issue = allIssues[issueKey];
|
|
3007
|
+
if (!issue)
|
|
3008
|
+
return issuesAcc;
|
|
3009
|
+
if (issuesToCheck.includes(issueKey) && issue.active && issue.registered > 2) {
|
|
3010
|
+
return [...issuesAcc, issueKey];
|
|
3011
|
+
}
|
|
3012
|
+
return issuesAcc;
|
|
3013
|
+
}, []);
|
|
3014
|
+
const addMetricsQualifier = (issuesToCheck, isLocalClient = false) => issuesToCheck.map((issue) => `${isLocalClient ? "loc" : "rem"}-${issue}`);
|
|
3015
|
+
function calculateCallQualityScore(clientId, roomMode, mediaQualityScores, connectionMonitorIssuesReport) {
|
|
3016
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
3017
|
+
const videoScoreValue = Math.min(...(roomMode === "normal"
|
|
3018
|
+
? [
|
|
3019
|
+
convertQualityScoreToNumber(((_c = (_b = (_a = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.critical) === null || _a === void 0 ? void 0 : _a[clientId]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.length) !== undefined &&
|
|
3020
|
+
((_f = (_e = (_d = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.critical) === null || _d === void 0 ? void 0 : _d[clientId]) === null || _e === void 0 ? void 0 : _e.video) === null || _f === void 0 ? void 0 : _f.length) > 0
|
|
3021
|
+
? CALL_QUALITY_LEVELS.CRITICAL
|
|
3022
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3023
|
+
convertQualityScoreToNumber(((_j = (_h = (_g = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.warning) === null || _g === void 0 ? void 0 : _g[clientId]) === null || _h === void 0 ? void 0 : _h.video) === null || _j === void 0 ? void 0 : _j.length) !== undefined &&
|
|
3024
|
+
((_m = (_l = (_k = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.warning) === null || _k === void 0 ? void 0 : _k[clientId]) === null || _l === void 0 ? void 0 : _l.video) === null || _m === void 0 ? void 0 : _m.length) > 0
|
|
3025
|
+
? CALL_QUALITY_LEVELS.WARNING
|
|
3026
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3027
|
+
]
|
|
3028
|
+
: [convertQualityScoreToNumber((_p = (_o = mediaQualityScores === null || mediaQualityScores === void 0 ? void 0 : mediaQualityScores[clientId]) === null || _o === void 0 ? void 0 : _o.video) !== null && _p !== void 0 ? _p : CALL_QUALITY_LEVELS.OK)]));
|
|
3029
|
+
const audioScoreValue = Math.min(...(roomMode === "normal"
|
|
3030
|
+
? [
|
|
3031
|
+
convertQualityScoreToNumber(((_s = (_r = (_q = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.critical) === null || _q === void 0 ? void 0 : _q[clientId]) === null || _r === void 0 ? void 0 : _r.audio) === null || _s === void 0 ? void 0 : _s.length) !== undefined &&
|
|
3032
|
+
((_v = (_u = (_t = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.critical) === null || _t === void 0 ? void 0 : _t[clientId]) === null || _u === void 0 ? void 0 : _u.audio) === null || _v === void 0 ? void 0 : _v.length) > 0
|
|
3033
|
+
? CALL_QUALITY_LEVELS.CRITICAL
|
|
3034
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3035
|
+
convertQualityScoreToNumber(((_y = (_x = (_w = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.warning) === null || _w === void 0 ? void 0 : _w[clientId]) === null || _x === void 0 ? void 0 : _x.audio) === null || _y === void 0 ? void 0 : _y.length) !== undefined &&
|
|
3036
|
+
((_1 = (_0 = (_z = connectionMonitorIssuesReport === null || connectionMonitorIssuesReport === void 0 ? void 0 : connectionMonitorIssuesReport.warning) === null || _z === void 0 ? void 0 : _z[clientId]) === null || _0 === void 0 ? void 0 : _0.audio) === null || _1 === void 0 ? void 0 : _1.length) > 0
|
|
3037
|
+
? CALL_QUALITY_LEVELS.WARNING
|
|
3038
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3039
|
+
]
|
|
3040
|
+
: [convertQualityScoreToNumber((_3 = (_2 = mediaQualityScores === null || mediaQualityScores === void 0 ? void 0 : mediaQualityScores[clientId]) === null || _2 === void 0 ? void 0 : _2.audio) !== null && _3 !== void 0 ? _3 : CALL_QUALITY_LEVELS.OK)]));
|
|
3041
|
+
const overallScoreValue = Math.min(videoScoreValue, audioScoreValue);
|
|
3042
|
+
return {
|
|
3043
|
+
total: CALL_QUALITY_LEVEL_ORDER[overallScoreValue],
|
|
3044
|
+
video: CALL_QUALITY_LEVEL_ORDER[videoScoreValue],
|
|
3045
|
+
audio: CALL_QUALITY_LEVEL_ORDER[audioScoreValue],
|
|
3046
|
+
};
|
|
3047
|
+
}
|
|
2990
3048
|
const connectionMonitorSliceInitialState = {
|
|
2991
3049
|
running: false,
|
|
3050
|
+
issuesReport: undefined,
|
|
3051
|
+
remoteQualityScores: undefined,
|
|
3052
|
+
localQualityScore: undefined,
|
|
3053
|
+
mediaScores: undefined,
|
|
2992
3054
|
};
|
|
2993
3055
|
const connectionMonitorSlice = createSlice({
|
|
2994
3056
|
name: "connectionMonitor",
|
|
@@ -2997,12 +3059,27 @@ const connectionMonitorSlice = createSlice({
|
|
|
2997
3059
|
connectionMonitorStarted: (state, action) => {
|
|
2998
3060
|
return Object.assign(Object.assign({}, state), { running: true, stopCallbackFunction: action.payload.stopIssueSubscription });
|
|
2999
3061
|
},
|
|
3062
|
+
connectionMonitorReportUpdated: (state, action) => {
|
|
3063
|
+
return Object.assign(Object.assign({}, state), { issuesReport: action.payload });
|
|
3064
|
+
},
|
|
3065
|
+
updateRemoteCallQualityScores: (state, action) => {
|
|
3066
|
+
return Object.assign(Object.assign({}, state), { remoteQualityScores: action.payload });
|
|
3067
|
+
},
|
|
3068
|
+
updateLocalCallQualityScore: (state, action) => {
|
|
3069
|
+
return Object.assign(Object.assign({}, state), { localQualityScore: action.payload });
|
|
3070
|
+
},
|
|
3000
3071
|
connectionMonitorStopped: () => {
|
|
3001
3072
|
return Object.assign({}, connectionMonitorSliceInitialState);
|
|
3002
3073
|
},
|
|
3003
3074
|
},
|
|
3075
|
+
extraReducers: (builder) => {
|
|
3076
|
+
builder.addCase(rtcEvents.mediaQualityChanged, (state, action) => {
|
|
3077
|
+
var _a;
|
|
3078
|
+
return Object.assign(Object.assign({}, state), { mediaScores: Object.assign(Object.assign({}, state.mediaScores), { [action.payload.clientId]: Object.assign(Object.assign({}, (((_a = state.mediaScores) === null || _a === void 0 ? void 0 : _a[action.payload.clientId]) || {})), { [action.payload.kind]: action.payload.quality }) }) });
|
|
3079
|
+
});
|
|
3080
|
+
},
|
|
3004
3081
|
});
|
|
3005
|
-
const { connectionMonitorStarted, connectionMonitorStopped } = connectionMonitorSlice.actions;
|
|
3082
|
+
const { connectionMonitorStarted, connectionMonitorStopped, connectionMonitorReportUpdated, updateRemoteCallQualityScores, updateLocalCallQualityScore, } = connectionMonitorSlice.actions;
|
|
3006
3083
|
const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
3007
3084
|
setClientProvider(() => {
|
|
3008
3085
|
const state = getState();
|
|
@@ -3027,8 +3104,52 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
3027
3104
|
return clientViews;
|
|
3028
3105
|
});
|
|
3029
3106
|
const issueMonitorSubscription = subscribeIssues({
|
|
3030
|
-
onUpdatedIssues: (issuesAndMetricsByClients) => {
|
|
3107
|
+
onUpdatedIssues: (issuesAndMetricsByClients, _, clients) => {
|
|
3031
3108
|
var _a;
|
|
3109
|
+
const clientsWithCriticalIssues = clients.reduce((acc, { clientId, isLocalClient }) => {
|
|
3110
|
+
const { issues } = issuesAndMetricsByClients[clientId] || { issues: {} };
|
|
3111
|
+
const criticalVideoIssues = getActiveIssues(issues, addMetricsQualifier(["cam-video-extreme-packetloss", "pres-video-extreme-packetloss"], isLocalClient));
|
|
3112
|
+
const criticalAudioIssues = getActiveIssues(issues, addMetricsQualifier(["cam-audio-extreme-packetloss"], isLocalClient));
|
|
3113
|
+
const criticalCpuIssues = getActiveIssues(issues, ["global-cpu-pressure-critical"]);
|
|
3114
|
+
if (criticalVideoIssues.length === 0 &&
|
|
3115
|
+
criticalAudioIssues.length === 0 &&
|
|
3116
|
+
criticalCpuIssues.length === 0) {
|
|
3117
|
+
return acc;
|
|
3118
|
+
}
|
|
3119
|
+
return Object.assign(Object.assign({}, acc), { [clientId]: {
|
|
3120
|
+
video: criticalVideoIssues,
|
|
3121
|
+
audio: criticalAudioIssues,
|
|
3122
|
+
cpu: criticalCpuIssues,
|
|
3123
|
+
} });
|
|
3124
|
+
}, {});
|
|
3125
|
+
const clientsWithWarningIssues = clients.reduce((acc, { clientId, isLocalClient }) => {
|
|
3126
|
+
const { issues } = issuesAndMetricsByClients[clientId] || { issues: {} };
|
|
3127
|
+
const warningVideoIssues = getActiveIssues(issues, addMetricsQualifier([
|
|
3128
|
+
"cam-video-bad-network",
|
|
3129
|
+
"pres-video-bad-network",
|
|
3130
|
+
"cam-video-high-packetloss",
|
|
3131
|
+
"pres-video-high-packetloss",
|
|
3132
|
+
"cam-video-low-layer0-bitrate",
|
|
3133
|
+
"pres-video-low-layer0-bitrate",
|
|
3134
|
+
], isLocalClient));
|
|
3135
|
+
const warningAudioIssues = getActiveIssues(issues, addMetricsQualifier(["cam-audio-bad-network", "cam-audio-high-packetloss", "cam-audio-distorted"], isLocalClient));
|
|
3136
|
+
const warningCpuIssues = getActiveIssues(issues, ["global-cpu-pressure-serious"]);
|
|
3137
|
+
if (warningVideoIssues.length === 0 &&
|
|
3138
|
+
warningAudioIssues.length === 0 &&
|
|
3139
|
+
warningCpuIssues.length === 0) {
|
|
3140
|
+
return acc;
|
|
3141
|
+
}
|
|
3142
|
+
return Object.assign(Object.assign({}, acc), { [clientId]: {
|
|
3143
|
+
video: warningVideoIssues,
|
|
3144
|
+
audio: warningAudioIssues,
|
|
3145
|
+
cpu: warningCpuIssues,
|
|
3146
|
+
} });
|
|
3147
|
+
}, {});
|
|
3148
|
+
const newConnectionMonitorReport = {
|
|
3149
|
+
critical: clientsWithCriticalIssues,
|
|
3150
|
+
warning: clientsWithWarningIssues,
|
|
3151
|
+
};
|
|
3152
|
+
dispatch(doUpdateConnectionMonitorReport(newConnectionMonitorReport));
|
|
3032
3153
|
const state = getState();
|
|
3033
3154
|
const rtcManager = selectRtcManager(state);
|
|
3034
3155
|
if (!rtcManager) {
|
|
@@ -3060,6 +3181,85 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
3060
3181
|
});
|
|
3061
3182
|
dispatch(connectionMonitorStarted({ stopIssueSubscription: issueMonitorSubscription.stop }));
|
|
3062
3183
|
});
|
|
3184
|
+
const doUpdateConnectionMonitorReport = createAppThunk((newConnectionMonitorReport) => (dispatch, getState) => {
|
|
3185
|
+
const state = getState();
|
|
3186
|
+
const rtcManager = selectRtcManager(state);
|
|
3187
|
+
if (!rtcManager) {
|
|
3188
|
+
return;
|
|
3189
|
+
}
|
|
3190
|
+
const oldConnectionMonitorReport = selectConnectionMonitorIssuesReport(state);
|
|
3191
|
+
if (JSON.stringify(newConnectionMonitorReport) === JSON.stringify(oldConnectionMonitorReport)) {
|
|
3192
|
+
return;
|
|
3193
|
+
}
|
|
3194
|
+
dispatch(connectionMonitorReportUpdated(newConnectionMonitorReport));
|
|
3195
|
+
const localClientId = selectSelfId(state);
|
|
3196
|
+
const updatedClientStates = {};
|
|
3197
|
+
["critical", "warning"].forEach((level) => {
|
|
3198
|
+
Object.keys(newConnectionMonitorReport[level] || {})
|
|
3199
|
+
.filter((clientId) => {
|
|
3200
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3201
|
+
const isLocalClientId = clientId === localClientId;
|
|
3202
|
+
return (((_c = (_b = (_a = newConnectionMonitorReport === null || newConnectionMonitorReport === void 0 ? void 0 : newConnectionMonitorReport[level]) === null || _a === void 0 ? void 0 : _a[clientId]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.includes(addMetricsQualifier(["cam-video-bad-network"], isLocalClientId)[0])) ||
|
|
3203
|
+
((_f = (_e = (_d = newConnectionMonitorReport === null || newConnectionMonitorReport === void 0 ? void 0 : newConnectionMonitorReport[level]) === null || _d === void 0 ? void 0 : _d[clientId]) === null || _e === void 0 ? void 0 : _e.audio) === null || _f === void 0 ? void 0 : _f.includes(addMetricsQualifier(["cam-audio-bad-network"], isLocalClientId)[0])));
|
|
3204
|
+
})
|
|
3205
|
+
.forEach((newClientId) => {
|
|
3206
|
+
const oldClient = Object.keys((oldConnectionMonitorReport === null || oldConnectionMonitorReport === void 0 ? void 0 : oldConnectionMonitorReport[level]) || {}).find((oldClientId) => oldClientId === newClientId);
|
|
3207
|
+
if (!oldClient)
|
|
3208
|
+
updatedClientStates[newClientId] = { badNetwork: true };
|
|
3209
|
+
});
|
|
3210
|
+
Object.keys((oldConnectionMonitorReport === null || oldConnectionMonitorReport === void 0 ? void 0 : oldConnectionMonitorReport[level]) || {})
|
|
3211
|
+
.filter((clientId) => {
|
|
3212
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3213
|
+
const isLocalClientId = clientId === localClientId;
|
|
3214
|
+
return (((_c = (_b = (_a = oldConnectionMonitorReport === null || oldConnectionMonitorReport === void 0 ? void 0 : oldConnectionMonitorReport[level]) === null || _a === void 0 ? void 0 : _a[clientId]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.includes(addMetricsQualifier(["cam-video-bad-network"], isLocalClientId)[0])) ||
|
|
3215
|
+
((_f = (_e = (_d = oldConnectionMonitorReport === null || oldConnectionMonitorReport === void 0 ? void 0 : oldConnectionMonitorReport[level]) === null || _d === void 0 ? void 0 : _d[clientId]) === null || _e === void 0 ? void 0 : _e.audio) === null || _f === void 0 ? void 0 : _f.includes(addMetricsQualifier(["cam-audio-bad-network"], isLocalClientId)[0])));
|
|
3216
|
+
})
|
|
3217
|
+
.forEach((oldClientId) => {
|
|
3218
|
+
const newClient = Object.keys(newConnectionMonitorReport[level]).find((newClientId) => newClientId === oldClientId);
|
|
3219
|
+
if (!newClient)
|
|
3220
|
+
updatedClientStates[oldClientId] = { badNetwork: false };
|
|
3221
|
+
});
|
|
3222
|
+
});
|
|
3223
|
+
if (Object.keys(updatedClientStates).length > 0) {
|
|
3224
|
+
rtcManager.sendStatsCustomEvent("clientStates", {
|
|
3225
|
+
updatesByClientId: updatedClientStates,
|
|
3226
|
+
_time: Date.now(),
|
|
3227
|
+
});
|
|
3228
|
+
}
|
|
3229
|
+
});
|
|
3230
|
+
const doSetRemoteCallQualityScores = createAppThunk((scores) => (dispatch, getState) => {
|
|
3231
|
+
const state = getState();
|
|
3232
|
+
const rtcManager = selectRtcManager(state);
|
|
3233
|
+
if (!rtcManager) {
|
|
3234
|
+
return;
|
|
3235
|
+
}
|
|
3236
|
+
const scoreValues = Object.values(scores);
|
|
3237
|
+
const total = scoreValues.some(({ total }) => total === CALL_QUALITY_LEVELS.CRITICAL)
|
|
3238
|
+
? CALL_QUALITY_LEVELS.CRITICAL
|
|
3239
|
+
: scoreValues.some(({ total }) => total === CALL_QUALITY_LEVELS.WARNING)
|
|
3240
|
+
? CALL_QUALITY_LEVELS.WARNING
|
|
3241
|
+
: CALL_QUALITY_LEVELS.OK;
|
|
3242
|
+
rtcManager.sendStatsCustomEvent("remoteCallQualityScores", {
|
|
3243
|
+
total,
|
|
3244
|
+
_time: Date.now(),
|
|
3245
|
+
});
|
|
3246
|
+
dispatch(updateRemoteCallQualityScores(scores));
|
|
3247
|
+
});
|
|
3248
|
+
const doSetLocalCallQualityScore = createAppThunk((score) => (dispatch, getState) => {
|
|
3249
|
+
const state = getState();
|
|
3250
|
+
const rtcManager = selectRtcManager(state);
|
|
3251
|
+
if (!rtcManager) {
|
|
3252
|
+
return;
|
|
3253
|
+
}
|
|
3254
|
+
const oldLocalCallQualityScore = selectLocalCallQualityScore(state);
|
|
3255
|
+
if (score.total !== (oldLocalCallQualityScore === null || oldLocalCallQualityScore === void 0 ? void 0 : oldLocalCallQualityScore.total)) {
|
|
3256
|
+
rtcManager.sendStatsCustomEvent("callQualityScoreTotalChanged", {
|
|
3257
|
+
total: score.total,
|
|
3258
|
+
_time: Date.now(),
|
|
3259
|
+
});
|
|
3260
|
+
}
|
|
3261
|
+
dispatch(updateLocalCallQualityScore(score));
|
|
3262
|
+
});
|
|
3063
3263
|
const doStopConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
3064
3264
|
const state = getState();
|
|
3065
3265
|
const stopCallbackFn = selectStopCallbackFunction(state);
|
|
@@ -3070,6 +3270,16 @@ const doStopConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
3070
3270
|
});
|
|
3071
3271
|
const selectConnectionMonitorIsRunning = (state) => state.connectionMonitor.running;
|
|
3072
3272
|
const selectStopCallbackFunction = (state) => state.connectionMonitor.stopCallbackFunction;
|
|
3273
|
+
const selectConnectionMonitorIssuesReport = (state) => state.connectionMonitor.issuesReport;
|
|
3274
|
+
const selectConnectionMediaQualityScores = (state) => state.connectionMonitor.mediaScores;
|
|
3275
|
+
const selectRemoteCallQualityScores = (state) => state.connectionMonitor.remoteQualityScores;
|
|
3276
|
+
const selectLocalCallQualityScore = (state) => state.connectionMonitor.localQualityScore;
|
|
3277
|
+
const selectRemoteParticipantQualityReport = createSelector(selectRemoteCallQualityScores, (remoteCallQualityScores) => {
|
|
3278
|
+
if (!remoteCallQualityScores) {
|
|
3279
|
+
return undefined;
|
|
3280
|
+
}
|
|
3281
|
+
return Object.fromEntries(Object.entries(remoteCallQualityScores).map(([clientId, { total }]) => [clientId, { quality: total }]));
|
|
3282
|
+
});
|
|
3073
3283
|
const selectShouldStartConnectionMonitor = createSelector(selectRoomConnectionStatus, selectConnectionMonitorIsRunning, (roomConnectionStatus, isRunning) => {
|
|
3074
3284
|
if (!isRunning && roomConnectionStatus === "connected") {
|
|
3075
3285
|
return true;
|
|
@@ -3082,6 +3292,23 @@ const selectShouldStopConnectionMonitor = createSelector(selectRoomConnectionSta
|
|
|
3082
3292
|
}
|
|
3083
3293
|
return false;
|
|
3084
3294
|
});
|
|
3295
|
+
const selectCalculatedRemoteCallQualityScores = createSelector(selectRoomConnectionStatus, selectRoomMode, selectRemoteClientViews, selectConnectionMediaQualityScores, selectConnectionMonitorIssuesReport, (roomConnectionStatus, roomMode, remoteClientViews, mediaQualityScores, connectionMonitorIssuesReport) => {
|
|
3296
|
+
if (roomConnectionStatus !== "connected") {
|
|
3297
|
+
return undefined;
|
|
3298
|
+
}
|
|
3299
|
+
return Object.fromEntries(remoteClientViews
|
|
3300
|
+
.filter(({ isLocalClient }) => !isLocalClient)
|
|
3301
|
+
.map(({ clientId }) => [
|
|
3302
|
+
clientId,
|
|
3303
|
+
calculateCallQualityScore(clientId, roomMode, mediaQualityScores, connectionMonitorIssuesReport),
|
|
3304
|
+
]));
|
|
3305
|
+
});
|
|
3306
|
+
const selectCalculatedLocalCallQualityScore = createSelector(selectRoomConnectionStatus, selectRoomMode, selectLocalParticipantView, selectConnectionMediaQualityScores, selectConnectionMonitorIssuesReport, (roomConnectionStatus, roomMode, localParticipantView, mediaQualityScores, connectionMonitorIssuesReport) => {
|
|
3307
|
+
if (roomConnectionStatus !== "connected" || !localParticipantView) {
|
|
3308
|
+
return undefined;
|
|
3309
|
+
}
|
|
3310
|
+
return calculateCallQualityScore(localParticipantView.clientId, roomMode, mediaQualityScores, connectionMonitorIssuesReport);
|
|
3311
|
+
});
|
|
3085
3312
|
createReactor([selectShouldStartConnectionMonitor], ({ dispatch }, shouldStartConnectionMonitor) => {
|
|
3086
3313
|
if (shouldStartConnectionMonitor) {
|
|
3087
3314
|
dispatch(doStartConnectionMonitor());
|
|
@@ -3092,6 +3319,24 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
|
|
|
3092
3319
|
dispatch(doStopConnectionMonitor());
|
|
3093
3320
|
}
|
|
3094
3321
|
});
|
|
3322
|
+
createReactor([selectCalculatedRemoteCallQualityScores, selectRemoteCallQualityScores], ({ dispatch }, newRemoteCallQualityScores, oldRemoteCallQualityScores) => {
|
|
3323
|
+
if (!newRemoteCallQualityScores) {
|
|
3324
|
+
return;
|
|
3325
|
+
}
|
|
3326
|
+
if (oldRemoteCallQualityScores &&
|
|
3327
|
+
JSON.stringify(newRemoteCallQualityScores) === JSON.stringify(oldRemoteCallQualityScores))
|
|
3328
|
+
return;
|
|
3329
|
+
dispatch(doSetRemoteCallQualityScores(newRemoteCallQualityScores));
|
|
3330
|
+
});
|
|
3331
|
+
createReactor([selectCalculatedLocalCallQualityScore, selectLocalCallQualityScore], ({ dispatch }, newLocalCallQualityScore, oldLocalCallQualityScore) => {
|
|
3332
|
+
if (!newLocalCallQualityScore) {
|
|
3333
|
+
return;
|
|
3334
|
+
}
|
|
3335
|
+
if (oldLocalCallQualityScore &&
|
|
3336
|
+
JSON.stringify(newLocalCallQualityScore) === JSON.stringify(oldLocalCallQualityScore))
|
|
3337
|
+
return;
|
|
3338
|
+
dispatch(doSetLocalCallQualityScore(newLocalCallQualityScore));
|
|
3339
|
+
});
|
|
3095
3340
|
|
|
3096
3341
|
const MAX_FILES_PER_UPLOAD = 10;
|
|
3097
3342
|
const MAX_FILE_SIZE = 15 * 1024 * 1024;
|
|
@@ -5358,4 +5603,4 @@ function createServices() {
|
|
|
5358
5603
|
};
|
|
5359
5604
|
}
|
|
5360
5605
|
|
|
5361
|
-
export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, DEFAULT_BREAKOUT_TIMER_DURATION, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomRejoined, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomMode, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomIntegrationsError, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
5606
|
+
export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CALL_QUALITY_LEVELS, DEFAULT_BREAKOUT_TIMER_DURATION, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorReportUpdated, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalCallQualityScore, doSetLocalStickyReaction, doSetNotification, doSetRemoteCallQualityScores, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateConnectionMonitorReport, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomRejoined, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCalculatedLocalCallQualityScore, selectCalculatedRemoteCallQualityScores, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMediaQualityScores, selectConnectionMonitorIsRunning, selectConnectionMonitorIssuesReport, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalCallQualityScore, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteCallQualityScores, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipantQualityReport, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomMode, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomIntegrationsError, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateLocalCallQualityScore, updateRemoteCallQualityScores, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.26.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@reduxjs/toolkit": "^2.2.3",
|
|
69
|
-
"@whereby.com/media": "11.3.
|
|
70
|
-
"@whereby.com/audio-denoiser": "1.0.
|
|
69
|
+
"@whereby.com/media": "11.3.2",
|
|
70
|
+
"@whereby.com/audio-denoiser": "1.0.30",
|
|
71
71
|
"@whereby.com/camera-effects": "1.1.3",
|
|
72
72
|
"axios": "^1.11.0",
|
|
73
73
|
"btoa": "^1.2.1",
|