@whereby.com/core 1.24.0 → 1.26.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 +568 -253
- package/dist/index.d.cts +56 -2
- package/dist/index.d.mts +56 -2
- package/dist/index.d.ts +56 -2
- package/dist/index.mjs +567 -254
- package/dist/legacy-esm.js +567 -254
- package/dist/redux/index.cjs +559 -256
- package/dist/redux/index.d.cts +463 -21
- package/dist/redux/index.d.mts +463 -21
- package/dist/redux/index.d.ts +463 -21
- package/dist/redux/index.js +544 -257
- package/dist/redux/index.mjs +544 -257
- package/package.json +5 -5
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.26.0";
|
|
80
80
|
|
|
81
81
|
function decodeRoomName(roomName) {
|
|
82
82
|
if (!roomName) {
|
|
@@ -132,6 +132,12 @@ const selectAppInitialConfig = (state) => state.app.initialConfig;
|
|
|
132
132
|
const selectAppInitialMuteStates = (state) => state.app.initialMuteStates;
|
|
133
133
|
const selectAppIgnoreBreakoutGroups = (state) => state.app.ignoreBreakoutGroups;
|
|
134
134
|
|
|
135
|
+
const NON_RECONNECTING_DISCONNECT_REASONS = ["io server disconnect", "io client disconnect"];
|
|
136
|
+
function createSignalDisconnectEvent(reason) {
|
|
137
|
+
return {
|
|
138
|
+
willReconnect: !!reason && !NON_RECONNECTING_DISCONNECT_REASONS.includes(reason),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
135
141
|
function createSignalEventAction(name) {
|
|
136
142
|
return toolkit.createAction(`signalConnection/event/${name}`);
|
|
137
143
|
}
|
|
@@ -346,7 +352,7 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
346
352
|
dispatch(signalEvents.chatMessage(payload));
|
|
347
353
|
});
|
|
348
354
|
socket.on("chat_message_removed", (payload) => dispatch(signalEvents.chatMessageRemoved(payload)));
|
|
349
|
-
socket.on("disconnect", () => dispatch(signalEvents.disconnect()));
|
|
355
|
+
socket.on("disconnect", (reason) => dispatch(signalEvents.disconnect(createSignalDisconnectEvent(reason))));
|
|
350
356
|
socket.on("room_knocked", (payload) => dispatch(signalEvents.roomKnocked(payload)));
|
|
351
357
|
socket.on("room_left", () => dispatch(signalEvents.roomLeft()));
|
|
352
358
|
socket.on("room_locked", (payload) => dispatch(signalEvents.roomLocked(payload)));
|
|
@@ -1123,6 +1129,7 @@ const rtcEvents = {
|
|
|
1123
1129
|
rtcManagerDestroyed: createRtcEventAction("rtcManagerDestroyed"),
|
|
1124
1130
|
streamAdded: createRtcEventAction("streamAdded"),
|
|
1125
1131
|
clientConnectionStatusChanged: createRtcEventAction("clientConnectionStatusChanged"),
|
|
1132
|
+
mediaQualityChanged: createRtcEventAction("mediaQualityChanged"),
|
|
1126
1133
|
};
|
|
1127
1134
|
|
|
1128
1135
|
function createRemoteParticipant(client, newJoiner = false) {
|
|
@@ -1346,6 +1353,271 @@ const selectRoomConnectionSessionId = (state) => { var _a; return (_a = state.ro
|
|
|
1346
1353
|
const selectRoomConnectionStatus = (state) => state.roomConnection.status;
|
|
1347
1354
|
const selectRoomConnectionError = (state) => state.roomConnection.error;
|
|
1348
1355
|
const selectRoomConnectionKnockResponse = (state) => state.roomConnection.knockResponse;
|
|
1356
|
+
const selectRoomConnectionIsRejoining = (state) => state.roomConnection.isRejoining;
|
|
1357
|
+
|
|
1358
|
+
const organizationSliceInitialState = {
|
|
1359
|
+
data: null,
|
|
1360
|
+
isFetching: false,
|
|
1361
|
+
error: null,
|
|
1362
|
+
};
|
|
1363
|
+
const organizationSlice = toolkit.createSlice({
|
|
1364
|
+
name: "organization",
|
|
1365
|
+
initialState: organizationSliceInitialState,
|
|
1366
|
+
reducers: {},
|
|
1367
|
+
extraReducers: (builder) => {
|
|
1368
|
+
builder.addCase(doOrganizationFetch.pending, (state) => {
|
|
1369
|
+
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
1370
|
+
});
|
|
1371
|
+
builder.addCase(doOrganizationFetch.fulfilled, (state, action) => {
|
|
1372
|
+
if (!action.payload)
|
|
1373
|
+
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
1374
|
+
return Object.assign(Object.assign({}, state), { isFetching: false, data: action.payload });
|
|
1375
|
+
});
|
|
1376
|
+
builder.addCase(doOrganizationFetch.rejected, (state) => {
|
|
1377
|
+
return Object.assign(Object.assign({}, state), { isFetching: false, error: true });
|
|
1378
|
+
});
|
|
1379
|
+
},
|
|
1380
|
+
});
|
|
1381
|
+
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
1382
|
+
try {
|
|
1383
|
+
const roomUrl = selectAppRoomUrl(getState());
|
|
1384
|
+
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
1385
|
+
if (!organization) {
|
|
1386
|
+
throw new Error("Invalid room url");
|
|
1387
|
+
}
|
|
1388
|
+
return organization;
|
|
1389
|
+
}
|
|
1390
|
+
catch (error) {
|
|
1391
|
+
console.error(error);
|
|
1392
|
+
}
|
|
1393
|
+
}));
|
|
1394
|
+
const selectOrganizationRaw = (state) => state.organization;
|
|
1395
|
+
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
1396
|
+
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
1397
|
+
const selectShouldFetchOrganization = toolkit.createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
1398
|
+
if (appIsActive &&
|
|
1399
|
+
!organization.data &&
|
|
1400
|
+
!organization.isFetching &&
|
|
1401
|
+
!organization.error &&
|
|
1402
|
+
!deviceCredentials.isFetching) {
|
|
1403
|
+
return true;
|
|
1404
|
+
}
|
|
1405
|
+
return false;
|
|
1406
|
+
});
|
|
1407
|
+
createReactor([selectShouldFetchOrganization], ({ dispatch }, shouldFetchOrganization) => {
|
|
1408
|
+
if (shouldFetchOrganization) {
|
|
1409
|
+
dispatch(doOrganizationFetch());
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
|
|
1413
|
+
const roomConnectionSliceInitialState = {
|
|
1414
|
+
session: null,
|
|
1415
|
+
status: "ready",
|
|
1416
|
+
error: null,
|
|
1417
|
+
knockResponse: null,
|
|
1418
|
+
isRejoining: false,
|
|
1419
|
+
};
|
|
1420
|
+
const roomConnectionSlice = toolkit.createSlice({
|
|
1421
|
+
name: "roomConnection",
|
|
1422
|
+
initialState: roomConnectionSliceInitialState,
|
|
1423
|
+
reducers: {
|
|
1424
|
+
connectionStatusChanged: (state, action) => {
|
|
1425
|
+
return Object.assign(Object.assign({}, state), { status: action.payload });
|
|
1426
|
+
},
|
|
1427
|
+
knockResponseReceived: (state, action) => {
|
|
1428
|
+
return Object.assign(Object.assign({}, state), { knockResponse: action.payload });
|
|
1429
|
+
},
|
|
1430
|
+
roomRejoined: (state, action) => {
|
|
1431
|
+
return state;
|
|
1432
|
+
},
|
|
1433
|
+
},
|
|
1434
|
+
extraReducers: (builder) => {
|
|
1435
|
+
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
1436
|
+
var _a;
|
|
1437
|
+
if ("error" in action.payload) {
|
|
1438
|
+
if (action.payload.error === "room_locked" && action.payload.isLocked) {
|
|
1439
|
+
return Object.assign(Object.assign({}, state), { status: "room_locked" });
|
|
1440
|
+
}
|
|
1441
|
+
return Object.assign(Object.assign({}, state), { status: "disconnected", error: action.payload.error, isRejoining: false });
|
|
1442
|
+
}
|
|
1443
|
+
const { room } = action.payload;
|
|
1444
|
+
return Object.assign(Object.assign({}, state), { status: "connected", session: (_a = room.session) !== null && _a !== void 0 ? _a : null, isRejoining: false });
|
|
1445
|
+
});
|
|
1446
|
+
builder.addCase(signalEvents.disconnect, (state, action) => {
|
|
1447
|
+
if (["kicked", "left"].includes(state.status)) {
|
|
1448
|
+
return Object.assign({}, state);
|
|
1449
|
+
}
|
|
1450
|
+
const { willReconnect } = action.payload;
|
|
1451
|
+
return Object.assign(Object.assign({}, state), { status: willReconnect ? "reconnecting" : "disconnected", isRejoining: willReconnect && (state.isRejoining || state.status === "connected") });
|
|
1452
|
+
});
|
|
1453
|
+
builder.addCase(signalEvents.newClient, (state, action) => {
|
|
1454
|
+
var _a, _b;
|
|
1455
|
+
return Object.assign(Object.assign({}, state), { session: (_b = (_a = action.payload.room) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : null });
|
|
1456
|
+
});
|
|
1457
|
+
builder.addCase(signalEvents.roomSessionEnded, (state, action) => {
|
|
1458
|
+
var _a;
|
|
1459
|
+
if (((_a = state.session) === null || _a === void 0 ? void 0 : _a.id) !== action.payload.roomSessionId) {
|
|
1460
|
+
return state;
|
|
1461
|
+
}
|
|
1462
|
+
return Object.assign(Object.assign({}, state), { session: null });
|
|
1463
|
+
});
|
|
1464
|
+
builder.addCase(signalEvents.clientKicked, (state) => {
|
|
1465
|
+
return Object.assign(Object.assign({}, state), { status: "kicked" });
|
|
1466
|
+
});
|
|
1467
|
+
builder.addCase(signalEvents.roomLeft, (state) => {
|
|
1468
|
+
return Object.assign(Object.assign({}, state), { status: "left" });
|
|
1469
|
+
});
|
|
1470
|
+
},
|
|
1471
|
+
});
|
|
1472
|
+
const { connectionStatusChanged, knockResponseReceived } = roomConnectionSlice.actions;
|
|
1473
|
+
const { roomRejoined } = roomConnectionSlice.actions;
|
|
1474
|
+
const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
1475
|
+
const state = getState();
|
|
1476
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1477
|
+
const roomName = selectAppRoomName(state);
|
|
1478
|
+
const roomKey = selectRoomKey(state);
|
|
1479
|
+
const displayName = selectAppDisplayName(state);
|
|
1480
|
+
const isDialIn = selectAppIsDialIn(state);
|
|
1481
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
1482
|
+
const userAgent = selectAppUserAgent(state);
|
|
1483
|
+
const externalId = selectAppExternalId(state);
|
|
1484
|
+
const organizationId = selectOrganizationId(state);
|
|
1485
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1486
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
1487
|
+
if (connectionStatus !== "room_locked") {
|
|
1488
|
+
console.warn("Room is not locked, knock aborted");
|
|
1489
|
+
return;
|
|
1490
|
+
}
|
|
1491
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
1492
|
+
isAudioEnabled: true,
|
|
1493
|
+
isVideoEnabled: true,
|
|
1494
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
1495
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1496
|
+
roomKey,
|
|
1497
|
+
roomName,
|
|
1498
|
+
userAgent,
|
|
1499
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
1500
|
+
dispatch(connectionStatusChanged("knocking"));
|
|
1501
|
+
});
|
|
1502
|
+
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
1503
|
+
const state = getState();
|
|
1504
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1505
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1506
|
+
if (connectionStatus !== "knocking") {
|
|
1507
|
+
console.warn("Not knocking, cancel knock aborted");
|
|
1508
|
+
return;
|
|
1509
|
+
}
|
|
1510
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("cancel_room_knock");
|
|
1511
|
+
dispatch(connectionStatusChanged("ready"));
|
|
1512
|
+
});
|
|
1513
|
+
const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
1514
|
+
const state = getState();
|
|
1515
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1516
|
+
const roomName = selectAppRoomName(state);
|
|
1517
|
+
const roomKey = selectRoomKey(state);
|
|
1518
|
+
const assistantKey = selectAssistantKey(state);
|
|
1519
|
+
const displayName = selectAppDisplayName(state);
|
|
1520
|
+
const userAgent = selectAppUserAgent(state);
|
|
1521
|
+
const externalId = selectAppExternalId(state);
|
|
1522
|
+
const isDialIn = selectAppIsDialIn(state);
|
|
1523
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
1524
|
+
const organizationId = selectOrganizationId(state);
|
|
1525
|
+
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
1526
|
+
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
1527
|
+
const clientClaim = selectLocalParticipantClientClaim(getState());
|
|
1528
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
1529
|
+
isAudioEnabled: isMicrophoneEnabled,
|
|
1530
|
+
isVideoEnabled: isCameraEnabled,
|
|
1531
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
1532
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1533
|
+
roomKey,
|
|
1534
|
+
assistantKey,
|
|
1535
|
+
roomName,
|
|
1536
|
+
userAgent,
|
|
1537
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
1538
|
+
dispatch(connectionStatusChanged("connecting"));
|
|
1539
|
+
});
|
|
1540
|
+
const selectShouldConnectRoom = toolkit.createSelector([
|
|
1541
|
+
selectAppIsActive,
|
|
1542
|
+
selectOrganizationId,
|
|
1543
|
+
selectRoomConnectionStatus,
|
|
1544
|
+
selectSignalConnectionDeviceIdentified,
|
|
1545
|
+
selectLocalMediaStatus,
|
|
1546
|
+
selectRoomConnectionError,
|
|
1547
|
+
], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
|
|
1548
|
+
if (appIsActive &&
|
|
1549
|
+
localMediaStatus === "started" &&
|
|
1550
|
+
signalConnectionDeviceIdentified &&
|
|
1551
|
+
!!hasOrganizationIdFetched &&
|
|
1552
|
+
["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
|
|
1553
|
+
!roomConnectionError) {
|
|
1554
|
+
return true;
|
|
1555
|
+
}
|
|
1556
|
+
return false;
|
|
1557
|
+
});
|
|
1558
|
+
createReactor([selectShouldConnectRoom], ({ dispatch }, shouldConnectRoom) => {
|
|
1559
|
+
if (shouldConnectRoom) {
|
|
1560
|
+
dispatch(doConnectRoom());
|
|
1561
|
+
}
|
|
1562
|
+
});
|
|
1563
|
+
startAppListening({
|
|
1564
|
+
actionCreator: signalEvents.roomJoined,
|
|
1565
|
+
effect: ({ payload }, { dispatch, getOriginalState }) => {
|
|
1566
|
+
if ("error" in payload) {
|
|
1567
|
+
return;
|
|
1568
|
+
}
|
|
1569
|
+
const originalState = getOriginalState();
|
|
1570
|
+
if (!selectRoomConnectionIsRejoining(originalState)) {
|
|
1571
|
+
return;
|
|
1572
|
+
}
|
|
1573
|
+
dispatch(roomRejoined({ selfId: payload.selfId, previousSelfId: selectSelfId(originalState) }));
|
|
1574
|
+
},
|
|
1575
|
+
});
|
|
1576
|
+
startAppListening({
|
|
1577
|
+
actionCreator: signalEvents.knockHandled,
|
|
1578
|
+
effect: ({ payload }, { dispatch, getState }) => {
|
|
1579
|
+
var _a, _b;
|
|
1580
|
+
const { clientId, resolution } = payload;
|
|
1581
|
+
const state = getState();
|
|
1582
|
+
const selfId = selectSelfId(state);
|
|
1583
|
+
if (clientId !== selfId) {
|
|
1584
|
+
return;
|
|
1585
|
+
}
|
|
1586
|
+
if (resolution === "accepted") {
|
|
1587
|
+
dispatch(setRoomKey(payload.metadata.roomKey));
|
|
1588
|
+
dispatch(doConnectRoom());
|
|
1589
|
+
}
|
|
1590
|
+
else if (resolution === "on_hold") {
|
|
1591
|
+
dispatch(knockResponseReceived((_a = payload.knockResponse) !== null && _a !== void 0 ? _a : null));
|
|
1592
|
+
dispatch(connectionStatusChanged("knock_on_hold"));
|
|
1593
|
+
}
|
|
1594
|
+
else if (resolution === "rejected") {
|
|
1595
|
+
dispatch(knockResponseReceived((_b = payload.knockResponse) !== null && _b !== void 0 ? _b : null));
|
|
1596
|
+
dispatch(connectionStatusChanged("knock_rejected"));
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
});
|
|
1600
|
+
startAppListening({
|
|
1601
|
+
actionCreator: signalEvents.clientKicked,
|
|
1602
|
+
effect: (_, { dispatch }) => {
|
|
1603
|
+
dispatch(doAppStop());
|
|
1604
|
+
},
|
|
1605
|
+
});
|
|
1606
|
+
startAppListening({
|
|
1607
|
+
actionCreator: doAppStop,
|
|
1608
|
+
effect: (_, { dispatch, getState }) => {
|
|
1609
|
+
const state = getState();
|
|
1610
|
+
const roomConnectionStatus = selectRoomConnectionStatus(state);
|
|
1611
|
+
if (roomConnectionStatus === "connected") {
|
|
1612
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1613
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("leave_room");
|
|
1614
|
+
dispatch(connectionStatusChanged("leaving"));
|
|
1615
|
+
}
|
|
1616
|
+
else {
|
|
1617
|
+
dispatch(doSignalDisconnect());
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
});
|
|
1349
1621
|
|
|
1350
1622
|
const emitter = new events$1.EventEmitter();
|
|
1351
1623
|
function createNotificationEvent(payload) {
|
|
@@ -1532,10 +1804,29 @@ createReactor([selectSignalStatus], ({ dispatch, getState }, signalStatus) => {
|
|
|
1532
1804
|
})));
|
|
1533
1805
|
}
|
|
1534
1806
|
});
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1807
|
+
createReactor([selectRoomConnectionIsRejoining], ({ dispatch }, isRejoining) => {
|
|
1808
|
+
if (isRejoining) {
|
|
1809
|
+
dispatch(doSetNotification(createNotificationEvent({
|
|
1810
|
+
type: "reconnecting",
|
|
1811
|
+
message: `Reconnecting to the room...`,
|
|
1812
|
+
props: {},
|
|
1813
|
+
})));
|
|
1814
|
+
}
|
|
1815
|
+
});
|
|
1816
|
+
startAppListening({
|
|
1817
|
+
actionCreator: roomRejoined,
|
|
1818
|
+
effect: (_, { dispatch }) => {
|
|
1819
|
+
dispatch(doSetNotification(createNotificationEvent({
|
|
1820
|
+
type: "reconnected",
|
|
1821
|
+
message: `Reconnected to the room`,
|
|
1822
|
+
props: {},
|
|
1823
|
+
})));
|
|
1824
|
+
},
|
|
1825
|
+
});
|
|
1826
|
+
startAppListening({
|
|
1827
|
+
actionCreator: signalEvents.clientUnableToJoin,
|
|
1828
|
+
effect: (action, { dispatch }) => {
|
|
1829
|
+
var _a;
|
|
1539
1830
|
if (((_a = action.payload) === null || _a === void 0 ? void 0 : _a.error) === "room_full") {
|
|
1540
1831
|
dispatch(doSetNotification(createNotificationEvent({
|
|
1541
1832
|
type: "clientUnableToJoinFullRoom",
|
|
@@ -2325,6 +2616,9 @@ const createWebRtcEmitter = (dispatch) => {
|
|
|
2325
2616
|
else if (eventName === "client_connection_status_changed") {
|
|
2326
2617
|
dispatch(rtcEvents.clientConnectionStatusChanged(data));
|
|
2327
2618
|
}
|
|
2619
|
+
else if (eventName === "media_quality_changed") {
|
|
2620
|
+
dispatch(rtcEvents.mediaQualityChanged(data));
|
|
2621
|
+
}
|
|
2328
2622
|
else ;
|
|
2329
2623
|
},
|
|
2330
2624
|
};
|
|
@@ -2699,8 +2993,66 @@ createReactor([selectStreamsToAccept, selectIsAcceptingStreams], ({ dispatch },
|
|
|
2699
2993
|
}
|
|
2700
2994
|
});
|
|
2701
2995
|
|
|
2996
|
+
const CALL_QUALITY_LEVELS = {
|
|
2997
|
+
CRITICAL: "critical",
|
|
2998
|
+
WARNING: "warning",
|
|
2999
|
+
OK: "ok",
|
|
3000
|
+
};
|
|
3001
|
+
const CALL_QUALITY_LEVEL_ORDER = Object.values(CALL_QUALITY_LEVELS);
|
|
3002
|
+
function convertQualityScoreToNumber(score) {
|
|
3003
|
+
return score !== undefined && score !== null
|
|
3004
|
+
? CALL_QUALITY_LEVEL_ORDER.indexOf(score)
|
|
3005
|
+
: CALL_QUALITY_LEVEL_ORDER.indexOf(CALL_QUALITY_LEVELS.OK);
|
|
3006
|
+
}
|
|
3007
|
+
const getActiveIssues = (allIssues, issuesToCheck = []) => Object.keys(allIssues).reduce((issuesAcc, issueKey) => {
|
|
3008
|
+
const issue = allIssues[issueKey];
|
|
3009
|
+
if (!issue)
|
|
3010
|
+
return issuesAcc;
|
|
3011
|
+
if (issuesToCheck.includes(issueKey) && issue.active && issue.registered > 2) {
|
|
3012
|
+
return [...issuesAcc, issueKey];
|
|
3013
|
+
}
|
|
3014
|
+
return issuesAcc;
|
|
3015
|
+
}, []);
|
|
3016
|
+
const addMetricsQualifier = (issuesToCheck, isLocalClient = false) => issuesToCheck.map((issue) => `${isLocalClient ? "loc" : "rem"}-${issue}`);
|
|
3017
|
+
function calculateCallQualityScore(clientId, roomMode, mediaQualityScores, connectionMonitorIssuesReport) {
|
|
3018
|
+
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;
|
|
3019
|
+
const videoScoreValue = Math.min(...(roomMode === "normal"
|
|
3020
|
+
? [
|
|
3021
|
+
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 &&
|
|
3022
|
+
((_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
|
|
3023
|
+
? CALL_QUALITY_LEVELS.CRITICAL
|
|
3024
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3025
|
+
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 &&
|
|
3026
|
+
((_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
|
|
3027
|
+
? CALL_QUALITY_LEVELS.WARNING
|
|
3028
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3029
|
+
]
|
|
3030
|
+
: [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)]));
|
|
3031
|
+
const audioScoreValue = Math.min(...(roomMode === "normal"
|
|
3032
|
+
? [
|
|
3033
|
+
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 &&
|
|
3034
|
+
((_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
|
|
3035
|
+
? CALL_QUALITY_LEVELS.CRITICAL
|
|
3036
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3037
|
+
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 &&
|
|
3038
|
+
((_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
|
|
3039
|
+
? CALL_QUALITY_LEVELS.WARNING
|
|
3040
|
+
: CALL_QUALITY_LEVELS.OK),
|
|
3041
|
+
]
|
|
3042
|
+
: [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)]));
|
|
3043
|
+
const overallScoreValue = Math.min(videoScoreValue, audioScoreValue);
|
|
3044
|
+
return {
|
|
3045
|
+
total: CALL_QUALITY_LEVEL_ORDER[overallScoreValue],
|
|
3046
|
+
video: CALL_QUALITY_LEVEL_ORDER[videoScoreValue],
|
|
3047
|
+
audio: CALL_QUALITY_LEVEL_ORDER[audioScoreValue],
|
|
3048
|
+
};
|
|
3049
|
+
}
|
|
2702
3050
|
const connectionMonitorSliceInitialState = {
|
|
2703
3051
|
running: false,
|
|
3052
|
+
issuesReport: undefined,
|
|
3053
|
+
remoteQualityScores: undefined,
|
|
3054
|
+
localQualityScore: undefined,
|
|
3055
|
+
mediaScores: undefined,
|
|
2704
3056
|
};
|
|
2705
3057
|
const connectionMonitorSlice = toolkit.createSlice({
|
|
2706
3058
|
name: "connectionMonitor",
|
|
@@ -2709,12 +3061,27 @@ const connectionMonitorSlice = toolkit.createSlice({
|
|
|
2709
3061
|
connectionMonitorStarted: (state, action) => {
|
|
2710
3062
|
return Object.assign(Object.assign({}, state), { running: true, stopCallbackFunction: action.payload.stopIssueSubscription });
|
|
2711
3063
|
},
|
|
3064
|
+
connectionMonitorReportUpdated: (state, action) => {
|
|
3065
|
+
return Object.assign(Object.assign({}, state), { issuesReport: action.payload });
|
|
3066
|
+
},
|
|
3067
|
+
updateRemoteCallQualityScores: (state, action) => {
|
|
3068
|
+
return Object.assign(Object.assign({}, state), { remoteQualityScores: action.payload });
|
|
3069
|
+
},
|
|
3070
|
+
updateLocalCallQualityScore: (state, action) => {
|
|
3071
|
+
return Object.assign(Object.assign({}, state), { localQualityScore: action.payload });
|
|
3072
|
+
},
|
|
2712
3073
|
connectionMonitorStopped: () => {
|
|
2713
3074
|
return Object.assign({}, connectionMonitorSliceInitialState);
|
|
2714
3075
|
},
|
|
2715
3076
|
},
|
|
3077
|
+
extraReducers: (builder) => {
|
|
3078
|
+
builder.addCase(rtcEvents.mediaQualityChanged, (state, action) => {
|
|
3079
|
+
var _a;
|
|
3080
|
+
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 }) }) });
|
|
3081
|
+
});
|
|
3082
|
+
},
|
|
2716
3083
|
});
|
|
2717
|
-
const { connectionMonitorStarted, connectionMonitorStopped } = connectionMonitorSlice.actions;
|
|
3084
|
+
const { connectionMonitorStarted, connectionMonitorStopped, connectionMonitorReportUpdated, updateRemoteCallQualityScores, updateLocalCallQualityScore, } = connectionMonitorSlice.actions;
|
|
2718
3085
|
const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
2719
3086
|
media.setClientProvider(() => {
|
|
2720
3087
|
const state = getState();
|
|
@@ -2739,8 +3106,52 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
2739
3106
|
return clientViews;
|
|
2740
3107
|
});
|
|
2741
3108
|
const issueMonitorSubscription = media.subscribeIssues({
|
|
2742
|
-
onUpdatedIssues: (issuesAndMetricsByClients) => {
|
|
3109
|
+
onUpdatedIssues: (issuesAndMetricsByClients, _, clients) => {
|
|
2743
3110
|
var _a;
|
|
3111
|
+
const clientsWithCriticalIssues = clients.reduce((acc, { clientId, isLocalClient }) => {
|
|
3112
|
+
const { issues } = issuesAndMetricsByClients[clientId] || { issues: {} };
|
|
3113
|
+
const criticalVideoIssues = getActiveIssues(issues, addMetricsQualifier(["cam-video-extreme-packetloss", "pres-video-extreme-packetloss"], isLocalClient));
|
|
3114
|
+
const criticalAudioIssues = getActiveIssues(issues, addMetricsQualifier(["cam-audio-extreme-packetloss"], isLocalClient));
|
|
3115
|
+
const criticalCpuIssues = getActiveIssues(issues, ["global-cpu-pressure-critical"]);
|
|
3116
|
+
if (criticalVideoIssues.length === 0 &&
|
|
3117
|
+
criticalAudioIssues.length === 0 &&
|
|
3118
|
+
criticalCpuIssues.length === 0) {
|
|
3119
|
+
return acc;
|
|
3120
|
+
}
|
|
3121
|
+
return Object.assign(Object.assign({}, acc), { [clientId]: {
|
|
3122
|
+
video: criticalVideoIssues,
|
|
3123
|
+
audio: criticalAudioIssues,
|
|
3124
|
+
cpu: criticalCpuIssues,
|
|
3125
|
+
} });
|
|
3126
|
+
}, {});
|
|
3127
|
+
const clientsWithWarningIssues = clients.reduce((acc, { clientId, isLocalClient }) => {
|
|
3128
|
+
const { issues } = issuesAndMetricsByClients[clientId] || { issues: {} };
|
|
3129
|
+
const warningVideoIssues = getActiveIssues(issues, addMetricsQualifier([
|
|
3130
|
+
"cam-video-bad-network",
|
|
3131
|
+
"pres-video-bad-network",
|
|
3132
|
+
"cam-video-high-packetloss",
|
|
3133
|
+
"pres-video-high-packetloss",
|
|
3134
|
+
"cam-video-low-layer0-bitrate",
|
|
3135
|
+
"pres-video-low-layer0-bitrate",
|
|
3136
|
+
], isLocalClient));
|
|
3137
|
+
const warningAudioIssues = getActiveIssues(issues, addMetricsQualifier(["cam-audio-bad-network", "cam-audio-high-packetloss", "cam-audio-distorted"], isLocalClient));
|
|
3138
|
+
const warningCpuIssues = getActiveIssues(issues, ["global-cpu-pressure-serious"]);
|
|
3139
|
+
if (warningVideoIssues.length === 0 &&
|
|
3140
|
+
warningAudioIssues.length === 0 &&
|
|
3141
|
+
warningCpuIssues.length === 0) {
|
|
3142
|
+
return acc;
|
|
3143
|
+
}
|
|
3144
|
+
return Object.assign(Object.assign({}, acc), { [clientId]: {
|
|
3145
|
+
video: warningVideoIssues,
|
|
3146
|
+
audio: warningAudioIssues,
|
|
3147
|
+
cpu: warningCpuIssues,
|
|
3148
|
+
} });
|
|
3149
|
+
}, {});
|
|
3150
|
+
const newConnectionMonitorReport = {
|
|
3151
|
+
critical: clientsWithCriticalIssues,
|
|
3152
|
+
warning: clientsWithWarningIssues,
|
|
3153
|
+
};
|
|
3154
|
+
dispatch(doUpdateConnectionMonitorReport(newConnectionMonitorReport));
|
|
2744
3155
|
const state = getState();
|
|
2745
3156
|
const rtcManager = selectRtcManager(state);
|
|
2746
3157
|
if (!rtcManager) {
|
|
@@ -2772,6 +3183,85 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
2772
3183
|
});
|
|
2773
3184
|
dispatch(connectionMonitorStarted({ stopIssueSubscription: issueMonitorSubscription.stop }));
|
|
2774
3185
|
});
|
|
3186
|
+
const doUpdateConnectionMonitorReport = createAppThunk((newConnectionMonitorReport) => (dispatch, getState) => {
|
|
3187
|
+
const state = getState();
|
|
3188
|
+
const rtcManager = selectRtcManager(state);
|
|
3189
|
+
if (!rtcManager) {
|
|
3190
|
+
return;
|
|
3191
|
+
}
|
|
3192
|
+
const oldConnectionMonitorReport = selectConnectionMonitorIssuesReport(state);
|
|
3193
|
+
if (JSON.stringify(newConnectionMonitorReport) === JSON.stringify(oldConnectionMonitorReport)) {
|
|
3194
|
+
return;
|
|
3195
|
+
}
|
|
3196
|
+
dispatch(connectionMonitorReportUpdated(newConnectionMonitorReport));
|
|
3197
|
+
const localClientId = selectSelfId(state);
|
|
3198
|
+
const updatedClientStates = {};
|
|
3199
|
+
["critical", "warning"].forEach((level) => {
|
|
3200
|
+
Object.keys(newConnectionMonitorReport[level] || {})
|
|
3201
|
+
.filter((clientId) => {
|
|
3202
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3203
|
+
const isLocalClientId = clientId === localClientId;
|
|
3204
|
+
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])) ||
|
|
3205
|
+
((_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])));
|
|
3206
|
+
})
|
|
3207
|
+
.forEach((newClientId) => {
|
|
3208
|
+
const oldClient = Object.keys((oldConnectionMonitorReport === null || oldConnectionMonitorReport === void 0 ? void 0 : oldConnectionMonitorReport[level]) || {}).find((oldClientId) => oldClientId === newClientId);
|
|
3209
|
+
if (!oldClient)
|
|
3210
|
+
updatedClientStates[newClientId] = { badNetwork: true };
|
|
3211
|
+
});
|
|
3212
|
+
Object.keys((oldConnectionMonitorReport === null || oldConnectionMonitorReport === void 0 ? void 0 : oldConnectionMonitorReport[level]) || {})
|
|
3213
|
+
.filter((clientId) => {
|
|
3214
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3215
|
+
const isLocalClientId = clientId === localClientId;
|
|
3216
|
+
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])) ||
|
|
3217
|
+
((_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])));
|
|
3218
|
+
})
|
|
3219
|
+
.forEach((oldClientId) => {
|
|
3220
|
+
const newClient = Object.keys(newConnectionMonitorReport[level]).find((newClientId) => newClientId === oldClientId);
|
|
3221
|
+
if (!newClient)
|
|
3222
|
+
updatedClientStates[oldClientId] = { badNetwork: false };
|
|
3223
|
+
});
|
|
3224
|
+
});
|
|
3225
|
+
if (Object.keys(updatedClientStates).length > 0) {
|
|
3226
|
+
rtcManager.sendStatsCustomEvent("clientStates", {
|
|
3227
|
+
updatesByClientId: updatedClientStates,
|
|
3228
|
+
_time: Date.now(),
|
|
3229
|
+
});
|
|
3230
|
+
}
|
|
3231
|
+
});
|
|
3232
|
+
const doSetRemoteCallQualityScores = createAppThunk((scores) => (dispatch, getState) => {
|
|
3233
|
+
const state = getState();
|
|
3234
|
+
const rtcManager = selectRtcManager(state);
|
|
3235
|
+
if (!rtcManager) {
|
|
3236
|
+
return;
|
|
3237
|
+
}
|
|
3238
|
+
const scoreValues = Object.values(scores);
|
|
3239
|
+
const total = scoreValues.some(({ total }) => total === CALL_QUALITY_LEVELS.CRITICAL)
|
|
3240
|
+
? CALL_QUALITY_LEVELS.CRITICAL
|
|
3241
|
+
: scoreValues.some(({ total }) => total === CALL_QUALITY_LEVELS.WARNING)
|
|
3242
|
+
? CALL_QUALITY_LEVELS.WARNING
|
|
3243
|
+
: CALL_QUALITY_LEVELS.OK;
|
|
3244
|
+
rtcManager.sendStatsCustomEvent("remoteCallQualityScores", {
|
|
3245
|
+
total,
|
|
3246
|
+
_time: Date.now(),
|
|
3247
|
+
});
|
|
3248
|
+
dispatch(updateRemoteCallQualityScores(scores));
|
|
3249
|
+
});
|
|
3250
|
+
const doSetLocalCallQualityScore = createAppThunk((score) => (dispatch, getState) => {
|
|
3251
|
+
const state = getState();
|
|
3252
|
+
const rtcManager = selectRtcManager(state);
|
|
3253
|
+
if (!rtcManager) {
|
|
3254
|
+
return;
|
|
3255
|
+
}
|
|
3256
|
+
const oldLocalCallQualityScore = selectLocalCallQualityScore(state);
|
|
3257
|
+
if (score.total !== (oldLocalCallQualityScore === null || oldLocalCallQualityScore === void 0 ? void 0 : oldLocalCallQualityScore.total)) {
|
|
3258
|
+
rtcManager.sendStatsCustomEvent("callQualityScoreTotalChanged", {
|
|
3259
|
+
total: score.total,
|
|
3260
|
+
_time: Date.now(),
|
|
3261
|
+
});
|
|
3262
|
+
}
|
|
3263
|
+
dispatch(updateLocalCallQualityScore(score));
|
|
3264
|
+
});
|
|
2775
3265
|
const doStopConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
2776
3266
|
const state = getState();
|
|
2777
3267
|
const stopCallbackFn = selectStopCallbackFunction(state);
|
|
@@ -2782,6 +3272,16 @@ const doStopConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
2782
3272
|
});
|
|
2783
3273
|
const selectConnectionMonitorIsRunning = (state) => state.connectionMonitor.running;
|
|
2784
3274
|
const selectStopCallbackFunction = (state) => state.connectionMonitor.stopCallbackFunction;
|
|
3275
|
+
const selectConnectionMonitorIssuesReport = (state) => state.connectionMonitor.issuesReport;
|
|
3276
|
+
const selectConnectionMediaQualityScores = (state) => state.connectionMonitor.mediaScores;
|
|
3277
|
+
const selectRemoteCallQualityScores = (state) => state.connectionMonitor.remoteQualityScores;
|
|
3278
|
+
const selectLocalCallQualityScore = (state) => state.connectionMonitor.localQualityScore;
|
|
3279
|
+
const selectRemoteParticipantQualityReport = toolkit.createSelector(selectRemoteCallQualityScores, (remoteCallQualityScores) => {
|
|
3280
|
+
if (!remoteCallQualityScores) {
|
|
3281
|
+
return undefined;
|
|
3282
|
+
}
|
|
3283
|
+
return Object.fromEntries(Object.entries(remoteCallQualityScores).map(([clientId, { total }]) => [clientId, { quality: total }]));
|
|
3284
|
+
});
|
|
2785
3285
|
const selectShouldStartConnectionMonitor = toolkit.createSelector(selectRoomConnectionStatus, selectConnectionMonitorIsRunning, (roomConnectionStatus, isRunning) => {
|
|
2786
3286
|
if (!isRunning && roomConnectionStatus === "connected") {
|
|
2787
3287
|
return true;
|
|
@@ -2794,6 +3294,23 @@ const selectShouldStopConnectionMonitor = toolkit.createSelector(selectRoomConne
|
|
|
2794
3294
|
}
|
|
2795
3295
|
return false;
|
|
2796
3296
|
});
|
|
3297
|
+
const selectCalculatedRemoteCallQualityScores = toolkit.createSelector(selectRoomConnectionStatus, selectRoomMode, selectRemoteClientViews, selectConnectionMediaQualityScores, selectConnectionMonitorIssuesReport, (roomConnectionStatus, roomMode, remoteClientViews, mediaQualityScores, connectionMonitorIssuesReport) => {
|
|
3298
|
+
if (roomConnectionStatus !== "connected") {
|
|
3299
|
+
return undefined;
|
|
3300
|
+
}
|
|
3301
|
+
return Object.fromEntries(remoteClientViews
|
|
3302
|
+
.filter(({ isLocalClient }) => !isLocalClient)
|
|
3303
|
+
.map(({ clientId }) => [
|
|
3304
|
+
clientId,
|
|
3305
|
+
calculateCallQualityScore(clientId, roomMode, mediaQualityScores, connectionMonitorIssuesReport),
|
|
3306
|
+
]));
|
|
3307
|
+
});
|
|
3308
|
+
const selectCalculatedLocalCallQualityScore = toolkit.createSelector(selectRoomConnectionStatus, selectRoomMode, selectLocalParticipantView, selectConnectionMediaQualityScores, selectConnectionMonitorIssuesReport, (roomConnectionStatus, roomMode, localParticipantView, mediaQualityScores, connectionMonitorIssuesReport) => {
|
|
3309
|
+
if (roomConnectionStatus !== "connected" || !localParticipantView) {
|
|
3310
|
+
return undefined;
|
|
3311
|
+
}
|
|
3312
|
+
return calculateCallQualityScore(localParticipantView.clientId, roomMode, mediaQualityScores, connectionMonitorIssuesReport);
|
|
3313
|
+
});
|
|
2797
3314
|
createReactor([selectShouldStartConnectionMonitor], ({ dispatch }, shouldStartConnectionMonitor) => {
|
|
2798
3315
|
if (shouldStartConnectionMonitor) {
|
|
2799
3316
|
dispatch(doStartConnectionMonitor());
|
|
@@ -2804,6 +3321,24 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
|
|
|
2804
3321
|
dispatch(doStopConnectionMonitor());
|
|
2805
3322
|
}
|
|
2806
3323
|
});
|
|
3324
|
+
createReactor([selectCalculatedRemoteCallQualityScores, selectRemoteCallQualityScores], ({ dispatch }, newRemoteCallQualityScores, oldRemoteCallQualityScores) => {
|
|
3325
|
+
if (!newRemoteCallQualityScores) {
|
|
3326
|
+
return;
|
|
3327
|
+
}
|
|
3328
|
+
if (oldRemoteCallQualityScores &&
|
|
3329
|
+
JSON.stringify(newRemoteCallQualityScores) === JSON.stringify(oldRemoteCallQualityScores))
|
|
3330
|
+
return;
|
|
3331
|
+
dispatch(doSetRemoteCallQualityScores(newRemoteCallQualityScores));
|
|
3332
|
+
});
|
|
3333
|
+
createReactor([selectCalculatedLocalCallQualityScore, selectLocalCallQualityScore], ({ dispatch }, newLocalCallQualityScore, oldLocalCallQualityScore) => {
|
|
3334
|
+
if (!newLocalCallQualityScore) {
|
|
3335
|
+
return;
|
|
3336
|
+
}
|
|
3337
|
+
if (oldLocalCallQualityScore &&
|
|
3338
|
+
JSON.stringify(newLocalCallQualityScore) === JSON.stringify(oldLocalCallQualityScore))
|
|
3339
|
+
return;
|
|
3340
|
+
dispatch(doSetLocalCallQualityScore(newLocalCallQualityScore));
|
|
3341
|
+
});
|
|
2807
3342
|
|
|
2808
3343
|
const MAX_FILES_PER_UPLOAD = 10;
|
|
2809
3344
|
const MAX_FILE_SIZE = 15 * 1024 * 1024;
|
|
@@ -3274,254 +3809,6 @@ createReactor([selectBreakoutAssignments, selectDeviceId, selectLocalParticipant
|
|
|
3274
3809
|
}
|
|
3275
3810
|
});
|
|
3276
3811
|
|
|
3277
|
-
const organizationSliceInitialState = {
|
|
3278
|
-
data: null,
|
|
3279
|
-
isFetching: false,
|
|
3280
|
-
error: null,
|
|
3281
|
-
};
|
|
3282
|
-
const organizationSlice = toolkit.createSlice({
|
|
3283
|
-
name: "organization",
|
|
3284
|
-
initialState: organizationSliceInitialState,
|
|
3285
|
-
reducers: {},
|
|
3286
|
-
extraReducers: (builder) => {
|
|
3287
|
-
builder.addCase(doOrganizationFetch.pending, (state) => {
|
|
3288
|
-
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
3289
|
-
});
|
|
3290
|
-
builder.addCase(doOrganizationFetch.fulfilled, (state, action) => {
|
|
3291
|
-
if (!action.payload)
|
|
3292
|
-
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
3293
|
-
return Object.assign(Object.assign({}, state), { isFetching: false, data: action.payload });
|
|
3294
|
-
});
|
|
3295
|
-
builder.addCase(doOrganizationFetch.rejected, (state) => {
|
|
3296
|
-
return Object.assign(Object.assign({}, state), { isFetching: false, error: true });
|
|
3297
|
-
});
|
|
3298
|
-
},
|
|
3299
|
-
});
|
|
3300
|
-
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
3301
|
-
try {
|
|
3302
|
-
const roomUrl = selectAppRoomUrl(getState());
|
|
3303
|
-
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
3304
|
-
if (!organization) {
|
|
3305
|
-
throw new Error("Invalid room url");
|
|
3306
|
-
}
|
|
3307
|
-
return organization;
|
|
3308
|
-
}
|
|
3309
|
-
catch (error) {
|
|
3310
|
-
console.error(error);
|
|
3311
|
-
}
|
|
3312
|
-
}));
|
|
3313
|
-
const selectOrganizationRaw = (state) => state.organization;
|
|
3314
|
-
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
3315
|
-
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
3316
|
-
const selectShouldFetchOrganization = toolkit.createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
3317
|
-
if (appIsActive &&
|
|
3318
|
-
!organization.data &&
|
|
3319
|
-
!organization.isFetching &&
|
|
3320
|
-
!organization.error &&
|
|
3321
|
-
!deviceCredentials.isFetching) {
|
|
3322
|
-
return true;
|
|
3323
|
-
}
|
|
3324
|
-
return false;
|
|
3325
|
-
});
|
|
3326
|
-
createReactor([selectShouldFetchOrganization], ({ dispatch }, shouldFetchOrganization) => {
|
|
3327
|
-
if (shouldFetchOrganization) {
|
|
3328
|
-
dispatch(doOrganizationFetch());
|
|
3329
|
-
}
|
|
3330
|
-
});
|
|
3331
|
-
|
|
3332
|
-
const roomConnectionSliceInitialState = {
|
|
3333
|
-
session: null,
|
|
3334
|
-
status: "ready",
|
|
3335
|
-
error: null,
|
|
3336
|
-
knockResponse: null,
|
|
3337
|
-
};
|
|
3338
|
-
const roomConnectionSlice = toolkit.createSlice({
|
|
3339
|
-
name: "roomConnection",
|
|
3340
|
-
initialState: roomConnectionSliceInitialState,
|
|
3341
|
-
reducers: {
|
|
3342
|
-
connectionStatusChanged: (state, action) => {
|
|
3343
|
-
return Object.assign(Object.assign({}, state), { status: action.payload });
|
|
3344
|
-
},
|
|
3345
|
-
knockResponseReceived: (state, action) => {
|
|
3346
|
-
return Object.assign(Object.assign({}, state), { knockResponse: action.payload });
|
|
3347
|
-
},
|
|
3348
|
-
},
|
|
3349
|
-
extraReducers: (builder) => {
|
|
3350
|
-
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
3351
|
-
var _a;
|
|
3352
|
-
if ("error" in action.payload) {
|
|
3353
|
-
if (action.payload.error === "room_locked" && action.payload.isLocked) {
|
|
3354
|
-
return Object.assign(Object.assign({}, state), { status: "room_locked" });
|
|
3355
|
-
}
|
|
3356
|
-
return Object.assign(Object.assign({}, state), { status: "disconnected", error: action.payload.error });
|
|
3357
|
-
}
|
|
3358
|
-
const { room } = action.payload;
|
|
3359
|
-
return Object.assign(Object.assign({}, state), { status: "connected", session: (_a = room.session) !== null && _a !== void 0 ? _a : null });
|
|
3360
|
-
});
|
|
3361
|
-
builder.addCase(signalEvents.disconnect, (state) => {
|
|
3362
|
-
if (["kicked", "left"].includes(state.status)) {
|
|
3363
|
-
return Object.assign({}, state);
|
|
3364
|
-
}
|
|
3365
|
-
return Object.assign(Object.assign({}, state), { status: "disconnected" });
|
|
3366
|
-
});
|
|
3367
|
-
builder.addCase(signalEvents.newClient, (state, action) => {
|
|
3368
|
-
var _a, _b;
|
|
3369
|
-
return Object.assign(Object.assign({}, state), { session: (_b = (_a = action.payload.room) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : null });
|
|
3370
|
-
});
|
|
3371
|
-
builder.addCase(signalEvents.roomSessionEnded, (state, action) => {
|
|
3372
|
-
var _a;
|
|
3373
|
-
if (((_a = state.session) === null || _a === void 0 ? void 0 : _a.id) !== action.payload.roomSessionId) {
|
|
3374
|
-
return state;
|
|
3375
|
-
}
|
|
3376
|
-
return Object.assign(Object.assign({}, state), { session: null });
|
|
3377
|
-
});
|
|
3378
|
-
builder.addCase(signalEvents.clientKicked, (state) => {
|
|
3379
|
-
return Object.assign(Object.assign({}, state), { status: "kicked" });
|
|
3380
|
-
});
|
|
3381
|
-
builder.addCase(signalEvents.roomLeft, (state) => {
|
|
3382
|
-
return Object.assign(Object.assign({}, state), { status: "left" });
|
|
3383
|
-
});
|
|
3384
|
-
builder.addCase(socketReconnecting, (state) => {
|
|
3385
|
-
return Object.assign(Object.assign({}, state), { status: "reconnecting" });
|
|
3386
|
-
});
|
|
3387
|
-
},
|
|
3388
|
-
});
|
|
3389
|
-
const { connectionStatusChanged, knockResponseReceived } = roomConnectionSlice.actions;
|
|
3390
|
-
const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
3391
|
-
const state = getState();
|
|
3392
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3393
|
-
const roomName = selectAppRoomName(state);
|
|
3394
|
-
const roomKey = selectRoomKey(state);
|
|
3395
|
-
const displayName = selectAppDisplayName(state);
|
|
3396
|
-
const isDialIn = selectAppIsDialIn(state);
|
|
3397
|
-
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3398
|
-
const userAgent = selectAppUserAgent(state);
|
|
3399
|
-
const externalId = selectAppExternalId(state);
|
|
3400
|
-
const organizationId = selectOrganizationId(state);
|
|
3401
|
-
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3402
|
-
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
3403
|
-
if (connectionStatus !== "room_locked") {
|
|
3404
|
-
console.warn("Room is not locked, knock aborted");
|
|
3405
|
-
return;
|
|
3406
|
-
}
|
|
3407
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
3408
|
-
isAudioEnabled: true,
|
|
3409
|
-
isVideoEnabled: true,
|
|
3410
|
-
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3411
|
-
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3412
|
-
roomKey,
|
|
3413
|
-
roomName,
|
|
3414
|
-
userAgent,
|
|
3415
|
-
externalId }, (clientClaim && { clientClaim })));
|
|
3416
|
-
dispatch(connectionStatusChanged("knocking"));
|
|
3417
|
-
});
|
|
3418
|
-
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
3419
|
-
const state = getState();
|
|
3420
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3421
|
-
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3422
|
-
if (connectionStatus !== "knocking") {
|
|
3423
|
-
console.warn("Not knocking, cancel knock aborted");
|
|
3424
|
-
return;
|
|
3425
|
-
}
|
|
3426
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("cancel_room_knock");
|
|
3427
|
-
dispatch(connectionStatusChanged("ready"));
|
|
3428
|
-
});
|
|
3429
|
-
const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
3430
|
-
const state = getState();
|
|
3431
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3432
|
-
const roomName = selectAppRoomName(state);
|
|
3433
|
-
const roomKey = selectRoomKey(state);
|
|
3434
|
-
const assistantKey = selectAssistantKey(state);
|
|
3435
|
-
const displayName = selectAppDisplayName(state);
|
|
3436
|
-
const userAgent = selectAppUserAgent(state);
|
|
3437
|
-
const externalId = selectAppExternalId(state);
|
|
3438
|
-
const isDialIn = selectAppIsDialIn(state);
|
|
3439
|
-
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3440
|
-
const organizationId = selectOrganizationId(state);
|
|
3441
|
-
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
3442
|
-
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
3443
|
-
const clientClaim = selectLocalParticipantClientClaim(getState());
|
|
3444
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
3445
|
-
isAudioEnabled: isMicrophoneEnabled,
|
|
3446
|
-
isVideoEnabled: isCameraEnabled,
|
|
3447
|
-
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3448
|
-
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3449
|
-
roomKey,
|
|
3450
|
-
assistantKey,
|
|
3451
|
-
roomName,
|
|
3452
|
-
userAgent,
|
|
3453
|
-
externalId }, (clientClaim && { clientClaim })));
|
|
3454
|
-
dispatch(connectionStatusChanged("connecting"));
|
|
3455
|
-
});
|
|
3456
|
-
const selectShouldConnectRoom = toolkit.createSelector([
|
|
3457
|
-
selectAppIsActive,
|
|
3458
|
-
selectOrganizationId,
|
|
3459
|
-
selectRoomConnectionStatus,
|
|
3460
|
-
selectSignalConnectionDeviceIdentified,
|
|
3461
|
-
selectLocalMediaStatus,
|
|
3462
|
-
selectRoomConnectionError,
|
|
3463
|
-
], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
|
|
3464
|
-
if (appIsActive &&
|
|
3465
|
-
localMediaStatus === "started" &&
|
|
3466
|
-
signalConnectionDeviceIdentified &&
|
|
3467
|
-
!!hasOrganizationIdFetched &&
|
|
3468
|
-
["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
|
|
3469
|
-
!roomConnectionError) {
|
|
3470
|
-
return true;
|
|
3471
|
-
}
|
|
3472
|
-
return false;
|
|
3473
|
-
});
|
|
3474
|
-
createReactor([selectShouldConnectRoom], ({ dispatch }, shouldConnectRoom) => {
|
|
3475
|
-
if (shouldConnectRoom) {
|
|
3476
|
-
dispatch(doConnectRoom());
|
|
3477
|
-
}
|
|
3478
|
-
});
|
|
3479
|
-
startAppListening({
|
|
3480
|
-
actionCreator: signalEvents.knockHandled,
|
|
3481
|
-
effect: ({ payload }, { dispatch, getState }) => {
|
|
3482
|
-
var _a, _b;
|
|
3483
|
-
const { clientId, resolution } = payload;
|
|
3484
|
-
const state = getState();
|
|
3485
|
-
const selfId = selectSelfId(state);
|
|
3486
|
-
if (clientId !== selfId) {
|
|
3487
|
-
return;
|
|
3488
|
-
}
|
|
3489
|
-
if (resolution === "accepted") {
|
|
3490
|
-
dispatch(setRoomKey(payload.metadata.roomKey));
|
|
3491
|
-
dispatch(doConnectRoom());
|
|
3492
|
-
}
|
|
3493
|
-
else if (resolution === "on_hold") {
|
|
3494
|
-
dispatch(knockResponseReceived((_a = payload.knockResponse) !== null && _a !== void 0 ? _a : null));
|
|
3495
|
-
dispatch(connectionStatusChanged("knock_on_hold"));
|
|
3496
|
-
}
|
|
3497
|
-
else if (resolution === "rejected") {
|
|
3498
|
-
dispatch(knockResponseReceived((_b = payload.knockResponse) !== null && _b !== void 0 ? _b : null));
|
|
3499
|
-
dispatch(connectionStatusChanged("knock_rejected"));
|
|
3500
|
-
}
|
|
3501
|
-
},
|
|
3502
|
-
});
|
|
3503
|
-
startAppListening({
|
|
3504
|
-
actionCreator: signalEvents.clientKicked,
|
|
3505
|
-
effect: (_, { dispatch }) => {
|
|
3506
|
-
dispatch(doAppStop());
|
|
3507
|
-
},
|
|
3508
|
-
});
|
|
3509
|
-
startAppListening({
|
|
3510
|
-
actionCreator: doAppStop,
|
|
3511
|
-
effect: (_, { dispatch, getState }) => {
|
|
3512
|
-
const state = getState();
|
|
3513
|
-
const roomConnectionStatus = selectRoomConnectionStatus(state);
|
|
3514
|
-
if (roomConnectionStatus === "connected") {
|
|
3515
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3516
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("leave_room");
|
|
3517
|
-
dispatch(connectionStatusChanged("leaving"));
|
|
3518
|
-
}
|
|
3519
|
-
else {
|
|
3520
|
-
doSignalDisconnect();
|
|
3521
|
-
}
|
|
3522
|
-
},
|
|
3523
|
-
});
|
|
3524
|
-
|
|
3525
3812
|
function roomIntegrationContentTagName(integrationName) {
|
|
3526
3813
|
return `${integrationName}-integration-contentframe`;
|
|
3527
3814
|
}
|
|
@@ -5321,6 +5608,7 @@ function createServices() {
|
|
|
5321
5608
|
exports.ACCEPTED_FILE_TYPES = ACCEPTED_FILE_TYPES;
|
|
5322
5609
|
exports.BREAKOUT_GROUPS_MIN_MAX = BREAKOUT_GROUPS_MIN_MAX;
|
|
5323
5610
|
exports.BREAKOUT_UNAVAILABLE_ERROR = BREAKOUT_UNAVAILABLE_ERROR;
|
|
5611
|
+
exports.CALL_QUALITY_LEVELS = CALL_QUALITY_LEVELS;
|
|
5324
5612
|
exports.DEFAULT_BREAKOUT_TIMER_DURATION = DEFAULT_BREAKOUT_TIMER_DURATION;
|
|
5325
5613
|
exports.MAX_FILES_PER_UPLOAD = MAX_FILES_PER_UPLOAD;
|
|
5326
5614
|
exports.MAX_FILE_SIZE = MAX_FILE_SIZE;
|
|
@@ -5339,6 +5627,7 @@ exports.chatSliceInitialState = chatSliceInitialState;
|
|
|
5339
5627
|
exports.clearCaption = clearCaption;
|
|
5340
5628
|
exports.clearFileUploads = clearFileUploads;
|
|
5341
5629
|
exports.cloudRecordingSlice = cloudRecordingSlice;
|
|
5630
|
+
exports.connectionMonitorReportUpdated = connectionMonitorReportUpdated;
|
|
5342
5631
|
exports.connectionMonitorSlice = connectionMonitorSlice;
|
|
5343
5632
|
exports.connectionMonitorSliceInitialState = connectionMonitorSliceInitialState;
|
|
5344
5633
|
exports.connectionMonitorStarted = connectionMonitorStarted;
|
|
@@ -5404,8 +5693,10 @@ exports.doSendClientMetadata = doSendClientMetadata;
|
|
|
5404
5693
|
exports.doSendFiles = doSendFiles;
|
|
5405
5694
|
exports.doSetDevice = doSetDevice;
|
|
5406
5695
|
exports.doSetDisplayName = doSetDisplayName;
|
|
5696
|
+
exports.doSetLocalCallQualityScore = doSetLocalCallQualityScore;
|
|
5407
5697
|
exports.doSetLocalStickyReaction = doSetLocalStickyReaction;
|
|
5408
5698
|
exports.doSetNotification = doSetNotification;
|
|
5699
|
+
exports.doSetRemoteCallQualityScores = doSetRemoteCallQualityScores;
|
|
5409
5700
|
exports.doShuffleBreakoutParticipants = doShuffleBreakoutParticipants;
|
|
5410
5701
|
exports.doSignalConnect = doSignalConnect;
|
|
5411
5702
|
exports.doSignalDisconnect = doSignalDisconnect;
|
|
@@ -5434,6 +5725,7 @@ exports.doToggleCamera = doToggleCamera;
|
|
|
5434
5725
|
exports.doTriggerLocalStreamRefresh = doTriggerLocalStreamRefresh;
|
|
5435
5726
|
exports.doUnassignAllBreakoutParticipants = doUnassignAllBreakoutParticipants;
|
|
5436
5727
|
exports.doUpdateBreakoutSession = doUpdateBreakoutSession;
|
|
5728
|
+
exports.doUpdateConnectionMonitorReport = doUpdateConnectionMonitorReport;
|
|
5437
5729
|
exports.doUpdateDeviceList = doUpdateDeviceList;
|
|
5438
5730
|
exports.doUpdateRoomIntegrationProps = doUpdateRoomIntegrationProps;
|
|
5439
5731
|
exports.fileShareRequestSettled = fileShareRequestSettled;
|
|
@@ -5479,6 +5771,7 @@ exports.roomIntegrationPickerUrl = roomIntegrationPickerUrl;
|
|
|
5479
5771
|
exports.roomIntegrationSignalError = roomIntegrationSignalError;
|
|
5480
5772
|
exports.roomIntegrationsSlice = roomIntegrationsSlice;
|
|
5481
5773
|
exports.roomIntegrationsSliceInitialState = roomIntegrationsSliceInitialState;
|
|
5774
|
+
exports.roomRejoined = roomRejoined;
|
|
5482
5775
|
exports.roomSlice = roomSlice;
|
|
5483
5776
|
exports.roomSliceInitialState = roomSliceInitialState;
|
|
5484
5777
|
exports.rootReducer = rootReducer;
|
|
@@ -5535,6 +5828,8 @@ exports.selectBreakoutStartedAt = selectBreakoutStartedAt;
|
|
|
5535
5828
|
exports.selectBreakoutTimerDuration = selectBreakoutTimerDuration;
|
|
5536
5829
|
exports.selectBreakoutTimerSetting = selectBreakoutTimerSetting;
|
|
5537
5830
|
exports.selectBusyDeviceIds = selectBusyDeviceIds;
|
|
5831
|
+
exports.selectCalculatedLocalCallQualityScore = selectCalculatedLocalCallQualityScore;
|
|
5832
|
+
exports.selectCalculatedRemoteCallQualityScores = selectCalculatedRemoteCallQualityScores;
|
|
5538
5833
|
exports.selectCameraDeviceError = selectCameraDeviceError;
|
|
5539
5834
|
exports.selectCameraDevices = selectCameraDevices;
|
|
5540
5835
|
exports.selectChatMessages = selectChatMessages;
|
|
@@ -5544,7 +5839,9 @@ exports.selectCloudRecordingIsInitiator = selectCloudRecordingIsInitiator;
|
|
|
5544
5839
|
exports.selectCloudRecordingRaw = selectCloudRecordingRaw;
|
|
5545
5840
|
exports.selectCloudRecordingStartedAt = selectCloudRecordingStartedAt;
|
|
5546
5841
|
exports.selectCloudRecordingStatus = selectCloudRecordingStatus;
|
|
5842
|
+
exports.selectConnectionMediaQualityScores = selectConnectionMediaQualityScores;
|
|
5547
5843
|
exports.selectConnectionMonitorIsRunning = selectConnectionMonitorIsRunning;
|
|
5844
|
+
exports.selectConnectionMonitorIssuesReport = selectConnectionMonitorIssuesReport;
|
|
5548
5845
|
exports.selectCurrentCameraDeviceId = selectCurrentCameraDeviceId;
|
|
5549
5846
|
exports.selectCurrentMicrophoneDeviceId = selectCurrentMicrophoneDeviceId;
|
|
5550
5847
|
exports.selectCurrentSpeakerDeviceId = selectCurrentSpeakerDeviceId;
|
|
@@ -5592,6 +5889,7 @@ exports.selectLiveTranscriptionIsInitiator = selectLiveTranscriptionIsInitiator;
|
|
|
5592
5889
|
exports.selectLiveTranscriptionRaw = selectLiveTranscriptionRaw;
|
|
5593
5890
|
exports.selectLiveTranscriptionStartedAt = selectLiveTranscriptionStartedAt;
|
|
5594
5891
|
exports.selectLiveTranscriptionStatus = selectLiveTranscriptionStatus;
|
|
5892
|
+
exports.selectLocalCallQualityScore = selectLocalCallQualityScore;
|
|
5595
5893
|
exports.selectLocalMediaBeforeEffectTracks = selectLocalMediaBeforeEffectTracks;
|
|
5596
5894
|
exports.selectLocalMediaConstraintsOptions = selectLocalMediaConstraintsOptions;
|
|
5597
5895
|
exports.selectLocalMediaDevices = selectLocalMediaDevices;
|
|
@@ -5626,12 +5924,15 @@ exports.selectNumParticipants = selectNumParticipants;
|
|
|
5626
5924
|
exports.selectOrganizationId = selectOrganizationId;
|
|
5627
5925
|
exports.selectOrganizationPreferences = selectOrganizationPreferences;
|
|
5628
5926
|
exports.selectOrganizationRaw = selectOrganizationRaw;
|
|
5927
|
+
exports.selectRemoteCallQualityScores = selectRemoteCallQualityScores;
|
|
5629
5928
|
exports.selectRemoteClientViews = selectRemoteClientViews;
|
|
5630
5929
|
exports.selectRemoteClients = selectRemoteClients;
|
|
5930
|
+
exports.selectRemoteParticipantQualityReport = selectRemoteParticipantQualityReport;
|
|
5631
5931
|
exports.selectRemoteParticipants = selectRemoteParticipants;
|
|
5632
5932
|
exports.selectRemoteParticipantsRaw = selectRemoteParticipantsRaw;
|
|
5633
5933
|
exports.selectRemoteScreenshareVideoTrackIds = selectRemoteScreenshareVideoTrackIds;
|
|
5634
5934
|
exports.selectRoomConnectionError = selectRoomConnectionError;
|
|
5935
|
+
exports.selectRoomConnectionIsRejoining = selectRoomConnectionIsRejoining;
|
|
5635
5936
|
exports.selectRoomConnectionKnockResponse = selectRoomConnectionKnockResponse;
|
|
5636
5937
|
exports.selectRoomConnectionRaw = selectRoomConnectionRaw;
|
|
5637
5938
|
exports.selectRoomConnectionSession = selectRoomConnectionSession;
|
|
@@ -5713,6 +6014,8 @@ exports.toggleLowDataModeEnabled = toggleLowDataModeEnabled;
|
|
|
5713
6014
|
exports.toggleMicrophoneEnabled = toggleMicrophoneEnabled;
|
|
5714
6015
|
exports.toggleWidescreenModeEnabled = toggleWidescreenModeEnabled;
|
|
5715
6016
|
exports.transcribingRequestStarted = transcribingRequestStarted;
|
|
6017
|
+
exports.updateLocalCallQualityScore = updateLocalCallQualityScore;
|
|
6018
|
+
exports.updateRemoteCallQualityScores = updateRemoteCallQualityScores;
|
|
5716
6019
|
exports.updateReportedValues = updateReportedValues;
|
|
5717
6020
|
exports.waitingParticipantsSlice = waitingParticipantsSlice;
|
|
5718
6021
|
exports.waitingParticipantsSliceInitialState = waitingParticipantsSliceInitialState;
|