@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.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "1.
|
|
77
|
+
const coreVersion = "1.26.0";
|
|
78
78
|
|
|
79
79
|
function decodeRoomName(roomName) {
|
|
80
80
|
if (!roomName) {
|
|
@@ -130,6 +130,12 @@ const selectAppInitialConfig = (state) => state.app.initialConfig;
|
|
|
130
130
|
const selectAppInitialMuteStates = (state) => state.app.initialMuteStates;
|
|
131
131
|
const selectAppIgnoreBreakoutGroups = (state) => state.app.ignoreBreakoutGroups;
|
|
132
132
|
|
|
133
|
+
const NON_RECONNECTING_DISCONNECT_REASONS = ["io server disconnect", "io client disconnect"];
|
|
134
|
+
function createSignalDisconnectEvent(reason) {
|
|
135
|
+
return {
|
|
136
|
+
willReconnect: !!reason && !NON_RECONNECTING_DISCONNECT_REASONS.includes(reason),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
133
139
|
function createSignalEventAction(name) {
|
|
134
140
|
return createAction(`signalConnection/event/${name}`);
|
|
135
141
|
}
|
|
@@ -344,7 +350,7 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
344
350
|
dispatch(signalEvents.chatMessage(payload));
|
|
345
351
|
});
|
|
346
352
|
socket.on("chat_message_removed", (payload) => dispatch(signalEvents.chatMessageRemoved(payload)));
|
|
347
|
-
socket.on("disconnect", () => dispatch(signalEvents.disconnect()));
|
|
353
|
+
socket.on("disconnect", (reason) => dispatch(signalEvents.disconnect(createSignalDisconnectEvent(reason))));
|
|
348
354
|
socket.on("room_knocked", (payload) => dispatch(signalEvents.roomKnocked(payload)));
|
|
349
355
|
socket.on("room_left", () => dispatch(signalEvents.roomLeft()));
|
|
350
356
|
socket.on("room_locked", (payload) => dispatch(signalEvents.roomLocked(payload)));
|
|
@@ -1121,6 +1127,7 @@ const rtcEvents = {
|
|
|
1121
1127
|
rtcManagerDestroyed: createRtcEventAction("rtcManagerDestroyed"),
|
|
1122
1128
|
streamAdded: createRtcEventAction("streamAdded"),
|
|
1123
1129
|
clientConnectionStatusChanged: createRtcEventAction("clientConnectionStatusChanged"),
|
|
1130
|
+
mediaQualityChanged: createRtcEventAction("mediaQualityChanged"),
|
|
1124
1131
|
};
|
|
1125
1132
|
|
|
1126
1133
|
function createRemoteParticipant(client, newJoiner = false) {
|
|
@@ -1344,6 +1351,271 @@ const selectRoomConnectionSessionId = (state) => { var _a; return (_a = state.ro
|
|
|
1344
1351
|
const selectRoomConnectionStatus = (state) => state.roomConnection.status;
|
|
1345
1352
|
const selectRoomConnectionError = (state) => state.roomConnection.error;
|
|
1346
1353
|
const selectRoomConnectionKnockResponse = (state) => state.roomConnection.knockResponse;
|
|
1354
|
+
const selectRoomConnectionIsRejoining = (state) => state.roomConnection.isRejoining;
|
|
1355
|
+
|
|
1356
|
+
const organizationSliceInitialState = {
|
|
1357
|
+
data: null,
|
|
1358
|
+
isFetching: false,
|
|
1359
|
+
error: null,
|
|
1360
|
+
};
|
|
1361
|
+
const organizationSlice = createSlice({
|
|
1362
|
+
name: "organization",
|
|
1363
|
+
initialState: organizationSliceInitialState,
|
|
1364
|
+
reducers: {},
|
|
1365
|
+
extraReducers: (builder) => {
|
|
1366
|
+
builder.addCase(doOrganizationFetch.pending, (state) => {
|
|
1367
|
+
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
1368
|
+
});
|
|
1369
|
+
builder.addCase(doOrganizationFetch.fulfilled, (state, action) => {
|
|
1370
|
+
if (!action.payload)
|
|
1371
|
+
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
1372
|
+
return Object.assign(Object.assign({}, state), { isFetching: false, data: action.payload });
|
|
1373
|
+
});
|
|
1374
|
+
builder.addCase(doOrganizationFetch.rejected, (state) => {
|
|
1375
|
+
return Object.assign(Object.assign({}, state), { isFetching: false, error: true });
|
|
1376
|
+
});
|
|
1377
|
+
},
|
|
1378
|
+
});
|
|
1379
|
+
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
1380
|
+
try {
|
|
1381
|
+
const roomUrl = selectAppRoomUrl(getState());
|
|
1382
|
+
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
1383
|
+
if (!organization) {
|
|
1384
|
+
throw new Error("Invalid room url");
|
|
1385
|
+
}
|
|
1386
|
+
return organization;
|
|
1387
|
+
}
|
|
1388
|
+
catch (error) {
|
|
1389
|
+
console.error(error);
|
|
1390
|
+
}
|
|
1391
|
+
}));
|
|
1392
|
+
const selectOrganizationRaw = (state) => state.organization;
|
|
1393
|
+
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
1394
|
+
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
1395
|
+
const selectShouldFetchOrganization = createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
1396
|
+
if (appIsActive &&
|
|
1397
|
+
!organization.data &&
|
|
1398
|
+
!organization.isFetching &&
|
|
1399
|
+
!organization.error &&
|
|
1400
|
+
!deviceCredentials.isFetching) {
|
|
1401
|
+
return true;
|
|
1402
|
+
}
|
|
1403
|
+
return false;
|
|
1404
|
+
});
|
|
1405
|
+
createReactor([selectShouldFetchOrganization], ({ dispatch }, shouldFetchOrganization) => {
|
|
1406
|
+
if (shouldFetchOrganization) {
|
|
1407
|
+
dispatch(doOrganizationFetch());
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
|
|
1411
|
+
const roomConnectionSliceInitialState = {
|
|
1412
|
+
session: null,
|
|
1413
|
+
status: "ready",
|
|
1414
|
+
error: null,
|
|
1415
|
+
knockResponse: null,
|
|
1416
|
+
isRejoining: false,
|
|
1417
|
+
};
|
|
1418
|
+
const roomConnectionSlice = createSlice({
|
|
1419
|
+
name: "roomConnection",
|
|
1420
|
+
initialState: roomConnectionSliceInitialState,
|
|
1421
|
+
reducers: {
|
|
1422
|
+
connectionStatusChanged: (state, action) => {
|
|
1423
|
+
return Object.assign(Object.assign({}, state), { status: action.payload });
|
|
1424
|
+
},
|
|
1425
|
+
knockResponseReceived: (state, action) => {
|
|
1426
|
+
return Object.assign(Object.assign({}, state), { knockResponse: action.payload });
|
|
1427
|
+
},
|
|
1428
|
+
roomRejoined: (state, action) => {
|
|
1429
|
+
return state;
|
|
1430
|
+
},
|
|
1431
|
+
},
|
|
1432
|
+
extraReducers: (builder) => {
|
|
1433
|
+
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
1434
|
+
var _a;
|
|
1435
|
+
if ("error" in action.payload) {
|
|
1436
|
+
if (action.payload.error === "room_locked" && action.payload.isLocked) {
|
|
1437
|
+
return Object.assign(Object.assign({}, state), { status: "room_locked" });
|
|
1438
|
+
}
|
|
1439
|
+
return Object.assign(Object.assign({}, state), { status: "disconnected", error: action.payload.error, isRejoining: false });
|
|
1440
|
+
}
|
|
1441
|
+
const { room } = action.payload;
|
|
1442
|
+
return Object.assign(Object.assign({}, state), { status: "connected", session: (_a = room.session) !== null && _a !== void 0 ? _a : null, isRejoining: false });
|
|
1443
|
+
});
|
|
1444
|
+
builder.addCase(signalEvents.disconnect, (state, action) => {
|
|
1445
|
+
if (["kicked", "left"].includes(state.status)) {
|
|
1446
|
+
return Object.assign({}, state);
|
|
1447
|
+
}
|
|
1448
|
+
const { willReconnect } = action.payload;
|
|
1449
|
+
return Object.assign(Object.assign({}, state), { status: willReconnect ? "reconnecting" : "disconnected", isRejoining: willReconnect && (state.isRejoining || state.status === "connected") });
|
|
1450
|
+
});
|
|
1451
|
+
builder.addCase(signalEvents.newClient, (state, action) => {
|
|
1452
|
+
var _a, _b;
|
|
1453
|
+
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 });
|
|
1454
|
+
});
|
|
1455
|
+
builder.addCase(signalEvents.roomSessionEnded, (state, action) => {
|
|
1456
|
+
var _a;
|
|
1457
|
+
if (((_a = state.session) === null || _a === void 0 ? void 0 : _a.id) !== action.payload.roomSessionId) {
|
|
1458
|
+
return state;
|
|
1459
|
+
}
|
|
1460
|
+
return Object.assign(Object.assign({}, state), { session: null });
|
|
1461
|
+
});
|
|
1462
|
+
builder.addCase(signalEvents.clientKicked, (state) => {
|
|
1463
|
+
return Object.assign(Object.assign({}, state), { status: "kicked" });
|
|
1464
|
+
});
|
|
1465
|
+
builder.addCase(signalEvents.roomLeft, (state) => {
|
|
1466
|
+
return Object.assign(Object.assign({}, state), { status: "left" });
|
|
1467
|
+
});
|
|
1468
|
+
},
|
|
1469
|
+
});
|
|
1470
|
+
const { connectionStatusChanged, knockResponseReceived } = roomConnectionSlice.actions;
|
|
1471
|
+
const { roomRejoined } = roomConnectionSlice.actions;
|
|
1472
|
+
const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
1473
|
+
const state = getState();
|
|
1474
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1475
|
+
const roomName = selectAppRoomName(state);
|
|
1476
|
+
const roomKey = selectRoomKey(state);
|
|
1477
|
+
const displayName = selectAppDisplayName(state);
|
|
1478
|
+
const isDialIn = selectAppIsDialIn(state);
|
|
1479
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
1480
|
+
const userAgent = selectAppUserAgent(state);
|
|
1481
|
+
const externalId = selectAppExternalId(state);
|
|
1482
|
+
const organizationId = selectOrganizationId(state);
|
|
1483
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1484
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
1485
|
+
if (connectionStatus !== "room_locked") {
|
|
1486
|
+
console.warn("Room is not locked, knock aborted");
|
|
1487
|
+
return;
|
|
1488
|
+
}
|
|
1489
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
1490
|
+
isAudioEnabled: true,
|
|
1491
|
+
isVideoEnabled: true,
|
|
1492
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
1493
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1494
|
+
roomKey,
|
|
1495
|
+
roomName,
|
|
1496
|
+
userAgent,
|
|
1497
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
1498
|
+
dispatch(connectionStatusChanged("knocking"));
|
|
1499
|
+
});
|
|
1500
|
+
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
1501
|
+
const state = getState();
|
|
1502
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1503
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1504
|
+
if (connectionStatus !== "knocking") {
|
|
1505
|
+
console.warn("Not knocking, cancel knock aborted");
|
|
1506
|
+
return;
|
|
1507
|
+
}
|
|
1508
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("cancel_room_knock");
|
|
1509
|
+
dispatch(connectionStatusChanged("ready"));
|
|
1510
|
+
});
|
|
1511
|
+
const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
1512
|
+
const state = getState();
|
|
1513
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1514
|
+
const roomName = selectAppRoomName(state);
|
|
1515
|
+
const roomKey = selectRoomKey(state);
|
|
1516
|
+
const assistantKey = selectAssistantKey(state);
|
|
1517
|
+
const displayName = selectAppDisplayName(state);
|
|
1518
|
+
const userAgent = selectAppUserAgent(state);
|
|
1519
|
+
const externalId = selectAppExternalId(state);
|
|
1520
|
+
const isDialIn = selectAppIsDialIn(state);
|
|
1521
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
1522
|
+
const organizationId = selectOrganizationId(state);
|
|
1523
|
+
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
1524
|
+
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
1525
|
+
const clientClaim = selectLocalParticipantClientClaim(getState());
|
|
1526
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
1527
|
+
isAudioEnabled: isMicrophoneEnabled,
|
|
1528
|
+
isVideoEnabled: isCameraEnabled,
|
|
1529
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
1530
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1531
|
+
roomKey,
|
|
1532
|
+
assistantKey,
|
|
1533
|
+
roomName,
|
|
1534
|
+
userAgent,
|
|
1535
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
1536
|
+
dispatch(connectionStatusChanged("connecting"));
|
|
1537
|
+
});
|
|
1538
|
+
const selectShouldConnectRoom = createSelector([
|
|
1539
|
+
selectAppIsActive,
|
|
1540
|
+
selectOrganizationId,
|
|
1541
|
+
selectRoomConnectionStatus,
|
|
1542
|
+
selectSignalConnectionDeviceIdentified,
|
|
1543
|
+
selectLocalMediaStatus,
|
|
1544
|
+
selectRoomConnectionError,
|
|
1545
|
+
], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
|
|
1546
|
+
if (appIsActive &&
|
|
1547
|
+
localMediaStatus === "started" &&
|
|
1548
|
+
signalConnectionDeviceIdentified &&
|
|
1549
|
+
!!hasOrganizationIdFetched &&
|
|
1550
|
+
["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
|
|
1551
|
+
!roomConnectionError) {
|
|
1552
|
+
return true;
|
|
1553
|
+
}
|
|
1554
|
+
return false;
|
|
1555
|
+
});
|
|
1556
|
+
createReactor([selectShouldConnectRoom], ({ dispatch }, shouldConnectRoom) => {
|
|
1557
|
+
if (shouldConnectRoom) {
|
|
1558
|
+
dispatch(doConnectRoom());
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
startAppListening({
|
|
1562
|
+
actionCreator: signalEvents.roomJoined,
|
|
1563
|
+
effect: ({ payload }, { dispatch, getOriginalState }) => {
|
|
1564
|
+
if ("error" in payload) {
|
|
1565
|
+
return;
|
|
1566
|
+
}
|
|
1567
|
+
const originalState = getOriginalState();
|
|
1568
|
+
if (!selectRoomConnectionIsRejoining(originalState)) {
|
|
1569
|
+
return;
|
|
1570
|
+
}
|
|
1571
|
+
dispatch(roomRejoined({ selfId: payload.selfId, previousSelfId: selectSelfId(originalState) }));
|
|
1572
|
+
},
|
|
1573
|
+
});
|
|
1574
|
+
startAppListening({
|
|
1575
|
+
actionCreator: signalEvents.knockHandled,
|
|
1576
|
+
effect: ({ payload }, { dispatch, getState }) => {
|
|
1577
|
+
var _a, _b;
|
|
1578
|
+
const { clientId, resolution } = payload;
|
|
1579
|
+
const state = getState();
|
|
1580
|
+
const selfId = selectSelfId(state);
|
|
1581
|
+
if (clientId !== selfId) {
|
|
1582
|
+
return;
|
|
1583
|
+
}
|
|
1584
|
+
if (resolution === "accepted") {
|
|
1585
|
+
dispatch(setRoomKey(payload.metadata.roomKey));
|
|
1586
|
+
dispatch(doConnectRoom());
|
|
1587
|
+
}
|
|
1588
|
+
else if (resolution === "on_hold") {
|
|
1589
|
+
dispatch(knockResponseReceived((_a = payload.knockResponse) !== null && _a !== void 0 ? _a : null));
|
|
1590
|
+
dispatch(connectionStatusChanged("knock_on_hold"));
|
|
1591
|
+
}
|
|
1592
|
+
else if (resolution === "rejected") {
|
|
1593
|
+
dispatch(knockResponseReceived((_b = payload.knockResponse) !== null && _b !== void 0 ? _b : null));
|
|
1594
|
+
dispatch(connectionStatusChanged("knock_rejected"));
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
});
|
|
1598
|
+
startAppListening({
|
|
1599
|
+
actionCreator: signalEvents.clientKicked,
|
|
1600
|
+
effect: (_, { dispatch }) => {
|
|
1601
|
+
dispatch(doAppStop());
|
|
1602
|
+
},
|
|
1603
|
+
});
|
|
1604
|
+
startAppListening({
|
|
1605
|
+
actionCreator: doAppStop,
|
|
1606
|
+
effect: (_, { dispatch, getState }) => {
|
|
1607
|
+
const state = getState();
|
|
1608
|
+
const roomConnectionStatus = selectRoomConnectionStatus(state);
|
|
1609
|
+
if (roomConnectionStatus === "connected") {
|
|
1610
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1611
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("leave_room");
|
|
1612
|
+
dispatch(connectionStatusChanged("leaving"));
|
|
1613
|
+
}
|
|
1614
|
+
else {
|
|
1615
|
+
dispatch(doSignalDisconnect());
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
});
|
|
1347
1619
|
|
|
1348
1620
|
const emitter = new EventEmitter();
|
|
1349
1621
|
function createNotificationEvent(payload) {
|
|
@@ -1530,10 +1802,29 @@ createReactor([selectSignalStatus], ({ dispatch, getState }, signalStatus) => {
|
|
|
1530
1802
|
})));
|
|
1531
1803
|
}
|
|
1532
1804
|
});
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1805
|
+
createReactor([selectRoomConnectionIsRejoining], ({ dispatch }, isRejoining) => {
|
|
1806
|
+
if (isRejoining) {
|
|
1807
|
+
dispatch(doSetNotification(createNotificationEvent({
|
|
1808
|
+
type: "reconnecting",
|
|
1809
|
+
message: `Reconnecting to the room...`,
|
|
1810
|
+
props: {},
|
|
1811
|
+
})));
|
|
1812
|
+
}
|
|
1813
|
+
});
|
|
1814
|
+
startAppListening({
|
|
1815
|
+
actionCreator: roomRejoined,
|
|
1816
|
+
effect: (_, { dispatch }) => {
|
|
1817
|
+
dispatch(doSetNotification(createNotificationEvent({
|
|
1818
|
+
type: "reconnected",
|
|
1819
|
+
message: `Reconnected to the room`,
|
|
1820
|
+
props: {},
|
|
1821
|
+
})));
|
|
1822
|
+
},
|
|
1823
|
+
});
|
|
1824
|
+
startAppListening({
|
|
1825
|
+
actionCreator: signalEvents.clientUnableToJoin,
|
|
1826
|
+
effect: (action, { dispatch }) => {
|
|
1827
|
+
var _a;
|
|
1537
1828
|
if (((_a = action.payload) === null || _a === void 0 ? void 0 : _a.error) === "room_full") {
|
|
1538
1829
|
dispatch(doSetNotification(createNotificationEvent({
|
|
1539
1830
|
type: "clientUnableToJoinFullRoom",
|
|
@@ -2323,6 +2614,9 @@ const createWebRtcEmitter = (dispatch) => {
|
|
|
2323
2614
|
else if (eventName === "client_connection_status_changed") {
|
|
2324
2615
|
dispatch(rtcEvents.clientConnectionStatusChanged(data));
|
|
2325
2616
|
}
|
|
2617
|
+
else if (eventName === "media_quality_changed") {
|
|
2618
|
+
dispatch(rtcEvents.mediaQualityChanged(data));
|
|
2619
|
+
}
|
|
2326
2620
|
else ;
|
|
2327
2621
|
},
|
|
2328
2622
|
};
|
|
@@ -2697,8 +2991,66 @@ createReactor([selectStreamsToAccept, selectIsAcceptingStreams], ({ dispatch },
|
|
|
2697
2991
|
}
|
|
2698
2992
|
});
|
|
2699
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
|
+
}
|
|
2700
3048
|
const connectionMonitorSliceInitialState = {
|
|
2701
3049
|
running: false,
|
|
3050
|
+
issuesReport: undefined,
|
|
3051
|
+
remoteQualityScores: undefined,
|
|
3052
|
+
localQualityScore: undefined,
|
|
3053
|
+
mediaScores: undefined,
|
|
2702
3054
|
};
|
|
2703
3055
|
const connectionMonitorSlice = createSlice({
|
|
2704
3056
|
name: "connectionMonitor",
|
|
@@ -2707,12 +3059,27 @@ const connectionMonitorSlice = createSlice({
|
|
|
2707
3059
|
connectionMonitorStarted: (state, action) => {
|
|
2708
3060
|
return Object.assign(Object.assign({}, state), { running: true, stopCallbackFunction: action.payload.stopIssueSubscription });
|
|
2709
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
|
+
},
|
|
2710
3071
|
connectionMonitorStopped: () => {
|
|
2711
3072
|
return Object.assign({}, connectionMonitorSliceInitialState);
|
|
2712
3073
|
},
|
|
2713
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
|
+
},
|
|
2714
3081
|
});
|
|
2715
|
-
const { connectionMonitorStarted, connectionMonitorStopped } = connectionMonitorSlice.actions;
|
|
3082
|
+
const { connectionMonitorStarted, connectionMonitorStopped, connectionMonitorReportUpdated, updateRemoteCallQualityScores, updateLocalCallQualityScore, } = connectionMonitorSlice.actions;
|
|
2716
3083
|
const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
2717
3084
|
setClientProvider(() => {
|
|
2718
3085
|
const state = getState();
|
|
@@ -2737,8 +3104,52 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
2737
3104
|
return clientViews;
|
|
2738
3105
|
});
|
|
2739
3106
|
const issueMonitorSubscription = subscribeIssues({
|
|
2740
|
-
onUpdatedIssues: (issuesAndMetricsByClients) => {
|
|
3107
|
+
onUpdatedIssues: (issuesAndMetricsByClients, _, clients) => {
|
|
2741
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));
|
|
2742
3153
|
const state = getState();
|
|
2743
3154
|
const rtcManager = selectRtcManager(state);
|
|
2744
3155
|
if (!rtcManager) {
|
|
@@ -2770,6 +3181,85 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
2770
3181
|
});
|
|
2771
3182
|
dispatch(connectionMonitorStarted({ stopIssueSubscription: issueMonitorSubscription.stop }));
|
|
2772
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
|
+
});
|
|
2773
3263
|
const doStopConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
2774
3264
|
const state = getState();
|
|
2775
3265
|
const stopCallbackFn = selectStopCallbackFunction(state);
|
|
@@ -2780,6 +3270,16 @@ const doStopConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
2780
3270
|
});
|
|
2781
3271
|
const selectConnectionMonitorIsRunning = (state) => state.connectionMonitor.running;
|
|
2782
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
|
+
});
|
|
2783
3283
|
const selectShouldStartConnectionMonitor = createSelector(selectRoomConnectionStatus, selectConnectionMonitorIsRunning, (roomConnectionStatus, isRunning) => {
|
|
2784
3284
|
if (!isRunning && roomConnectionStatus === "connected") {
|
|
2785
3285
|
return true;
|
|
@@ -2792,6 +3292,23 @@ const selectShouldStopConnectionMonitor = createSelector(selectRoomConnectionSta
|
|
|
2792
3292
|
}
|
|
2793
3293
|
return false;
|
|
2794
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
|
+
});
|
|
2795
3312
|
createReactor([selectShouldStartConnectionMonitor], ({ dispatch }, shouldStartConnectionMonitor) => {
|
|
2796
3313
|
if (shouldStartConnectionMonitor) {
|
|
2797
3314
|
dispatch(doStartConnectionMonitor());
|
|
@@ -2802,6 +3319,24 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
|
|
|
2802
3319
|
dispatch(doStopConnectionMonitor());
|
|
2803
3320
|
}
|
|
2804
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
|
+
});
|
|
2805
3340
|
|
|
2806
3341
|
const MAX_FILES_PER_UPLOAD = 10;
|
|
2807
3342
|
const MAX_FILE_SIZE = 15 * 1024 * 1024;
|
|
@@ -3272,254 +3807,6 @@ createReactor([selectBreakoutAssignments, selectDeviceId, selectLocalParticipant
|
|
|
3272
3807
|
}
|
|
3273
3808
|
});
|
|
3274
3809
|
|
|
3275
|
-
const organizationSliceInitialState = {
|
|
3276
|
-
data: null,
|
|
3277
|
-
isFetching: false,
|
|
3278
|
-
error: null,
|
|
3279
|
-
};
|
|
3280
|
-
const organizationSlice = createSlice({
|
|
3281
|
-
name: "organization",
|
|
3282
|
-
initialState: organizationSliceInitialState,
|
|
3283
|
-
reducers: {},
|
|
3284
|
-
extraReducers: (builder) => {
|
|
3285
|
-
builder.addCase(doOrganizationFetch.pending, (state) => {
|
|
3286
|
-
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
3287
|
-
});
|
|
3288
|
-
builder.addCase(doOrganizationFetch.fulfilled, (state, action) => {
|
|
3289
|
-
if (!action.payload)
|
|
3290
|
-
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
3291
|
-
return Object.assign(Object.assign({}, state), { isFetching: false, data: action.payload });
|
|
3292
|
-
});
|
|
3293
|
-
builder.addCase(doOrganizationFetch.rejected, (state) => {
|
|
3294
|
-
return Object.assign(Object.assign({}, state), { isFetching: false, error: true });
|
|
3295
|
-
});
|
|
3296
|
-
},
|
|
3297
|
-
});
|
|
3298
|
-
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
3299
|
-
try {
|
|
3300
|
-
const roomUrl = selectAppRoomUrl(getState());
|
|
3301
|
-
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
3302
|
-
if (!organization) {
|
|
3303
|
-
throw new Error("Invalid room url");
|
|
3304
|
-
}
|
|
3305
|
-
return organization;
|
|
3306
|
-
}
|
|
3307
|
-
catch (error) {
|
|
3308
|
-
console.error(error);
|
|
3309
|
-
}
|
|
3310
|
-
}));
|
|
3311
|
-
const selectOrganizationRaw = (state) => state.organization;
|
|
3312
|
-
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
3313
|
-
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
3314
|
-
const selectShouldFetchOrganization = createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
3315
|
-
if (appIsActive &&
|
|
3316
|
-
!organization.data &&
|
|
3317
|
-
!organization.isFetching &&
|
|
3318
|
-
!organization.error &&
|
|
3319
|
-
!deviceCredentials.isFetching) {
|
|
3320
|
-
return true;
|
|
3321
|
-
}
|
|
3322
|
-
return false;
|
|
3323
|
-
});
|
|
3324
|
-
createReactor([selectShouldFetchOrganization], ({ dispatch }, shouldFetchOrganization) => {
|
|
3325
|
-
if (shouldFetchOrganization) {
|
|
3326
|
-
dispatch(doOrganizationFetch());
|
|
3327
|
-
}
|
|
3328
|
-
});
|
|
3329
|
-
|
|
3330
|
-
const roomConnectionSliceInitialState = {
|
|
3331
|
-
session: null,
|
|
3332
|
-
status: "ready",
|
|
3333
|
-
error: null,
|
|
3334
|
-
knockResponse: null,
|
|
3335
|
-
};
|
|
3336
|
-
const roomConnectionSlice = createSlice({
|
|
3337
|
-
name: "roomConnection",
|
|
3338
|
-
initialState: roomConnectionSliceInitialState,
|
|
3339
|
-
reducers: {
|
|
3340
|
-
connectionStatusChanged: (state, action) => {
|
|
3341
|
-
return Object.assign(Object.assign({}, state), { status: action.payload });
|
|
3342
|
-
},
|
|
3343
|
-
knockResponseReceived: (state, action) => {
|
|
3344
|
-
return Object.assign(Object.assign({}, state), { knockResponse: action.payload });
|
|
3345
|
-
},
|
|
3346
|
-
},
|
|
3347
|
-
extraReducers: (builder) => {
|
|
3348
|
-
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
3349
|
-
var _a;
|
|
3350
|
-
if ("error" in action.payload) {
|
|
3351
|
-
if (action.payload.error === "room_locked" && action.payload.isLocked) {
|
|
3352
|
-
return Object.assign(Object.assign({}, state), { status: "room_locked" });
|
|
3353
|
-
}
|
|
3354
|
-
return Object.assign(Object.assign({}, state), { status: "disconnected", error: action.payload.error });
|
|
3355
|
-
}
|
|
3356
|
-
const { room } = action.payload;
|
|
3357
|
-
return Object.assign(Object.assign({}, state), { status: "connected", session: (_a = room.session) !== null && _a !== void 0 ? _a : null });
|
|
3358
|
-
});
|
|
3359
|
-
builder.addCase(signalEvents.disconnect, (state) => {
|
|
3360
|
-
if (["kicked", "left"].includes(state.status)) {
|
|
3361
|
-
return Object.assign({}, state);
|
|
3362
|
-
}
|
|
3363
|
-
return Object.assign(Object.assign({}, state), { status: "disconnected" });
|
|
3364
|
-
});
|
|
3365
|
-
builder.addCase(signalEvents.newClient, (state, action) => {
|
|
3366
|
-
var _a, _b;
|
|
3367
|
-
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 });
|
|
3368
|
-
});
|
|
3369
|
-
builder.addCase(signalEvents.roomSessionEnded, (state, action) => {
|
|
3370
|
-
var _a;
|
|
3371
|
-
if (((_a = state.session) === null || _a === void 0 ? void 0 : _a.id) !== action.payload.roomSessionId) {
|
|
3372
|
-
return state;
|
|
3373
|
-
}
|
|
3374
|
-
return Object.assign(Object.assign({}, state), { session: null });
|
|
3375
|
-
});
|
|
3376
|
-
builder.addCase(signalEvents.clientKicked, (state) => {
|
|
3377
|
-
return Object.assign(Object.assign({}, state), { status: "kicked" });
|
|
3378
|
-
});
|
|
3379
|
-
builder.addCase(signalEvents.roomLeft, (state) => {
|
|
3380
|
-
return Object.assign(Object.assign({}, state), { status: "left" });
|
|
3381
|
-
});
|
|
3382
|
-
builder.addCase(socketReconnecting, (state) => {
|
|
3383
|
-
return Object.assign(Object.assign({}, state), { status: "reconnecting" });
|
|
3384
|
-
});
|
|
3385
|
-
},
|
|
3386
|
-
});
|
|
3387
|
-
const { connectionStatusChanged, knockResponseReceived } = roomConnectionSlice.actions;
|
|
3388
|
-
const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
3389
|
-
const state = getState();
|
|
3390
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3391
|
-
const roomName = selectAppRoomName(state);
|
|
3392
|
-
const roomKey = selectRoomKey(state);
|
|
3393
|
-
const displayName = selectAppDisplayName(state);
|
|
3394
|
-
const isDialIn = selectAppIsDialIn(state);
|
|
3395
|
-
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3396
|
-
const userAgent = selectAppUserAgent(state);
|
|
3397
|
-
const externalId = selectAppExternalId(state);
|
|
3398
|
-
const organizationId = selectOrganizationId(state);
|
|
3399
|
-
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3400
|
-
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
3401
|
-
if (connectionStatus !== "room_locked") {
|
|
3402
|
-
console.warn("Room is not locked, knock aborted");
|
|
3403
|
-
return;
|
|
3404
|
-
}
|
|
3405
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
3406
|
-
isAudioEnabled: true,
|
|
3407
|
-
isVideoEnabled: true,
|
|
3408
|
-
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3409
|
-
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3410
|
-
roomKey,
|
|
3411
|
-
roomName,
|
|
3412
|
-
userAgent,
|
|
3413
|
-
externalId }, (clientClaim && { clientClaim })));
|
|
3414
|
-
dispatch(connectionStatusChanged("knocking"));
|
|
3415
|
-
});
|
|
3416
|
-
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
3417
|
-
const state = getState();
|
|
3418
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3419
|
-
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3420
|
-
if (connectionStatus !== "knocking") {
|
|
3421
|
-
console.warn("Not knocking, cancel knock aborted");
|
|
3422
|
-
return;
|
|
3423
|
-
}
|
|
3424
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("cancel_room_knock");
|
|
3425
|
-
dispatch(connectionStatusChanged("ready"));
|
|
3426
|
-
});
|
|
3427
|
-
const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
3428
|
-
const state = getState();
|
|
3429
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3430
|
-
const roomName = selectAppRoomName(state);
|
|
3431
|
-
const roomKey = selectRoomKey(state);
|
|
3432
|
-
const assistantKey = selectAssistantKey(state);
|
|
3433
|
-
const displayName = selectAppDisplayName(state);
|
|
3434
|
-
const userAgent = selectAppUserAgent(state);
|
|
3435
|
-
const externalId = selectAppExternalId(state);
|
|
3436
|
-
const isDialIn = selectAppIsDialIn(state);
|
|
3437
|
-
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3438
|
-
const organizationId = selectOrganizationId(state);
|
|
3439
|
-
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
3440
|
-
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
3441
|
-
const clientClaim = selectLocalParticipantClientClaim(getState());
|
|
3442
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
3443
|
-
isAudioEnabled: isMicrophoneEnabled,
|
|
3444
|
-
isVideoEnabled: isCameraEnabled,
|
|
3445
|
-
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3446
|
-
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3447
|
-
roomKey,
|
|
3448
|
-
assistantKey,
|
|
3449
|
-
roomName,
|
|
3450
|
-
userAgent,
|
|
3451
|
-
externalId }, (clientClaim && { clientClaim })));
|
|
3452
|
-
dispatch(connectionStatusChanged("connecting"));
|
|
3453
|
-
});
|
|
3454
|
-
const selectShouldConnectRoom = createSelector([
|
|
3455
|
-
selectAppIsActive,
|
|
3456
|
-
selectOrganizationId,
|
|
3457
|
-
selectRoomConnectionStatus,
|
|
3458
|
-
selectSignalConnectionDeviceIdentified,
|
|
3459
|
-
selectLocalMediaStatus,
|
|
3460
|
-
selectRoomConnectionError,
|
|
3461
|
-
], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
|
|
3462
|
-
if (appIsActive &&
|
|
3463
|
-
localMediaStatus === "started" &&
|
|
3464
|
-
signalConnectionDeviceIdentified &&
|
|
3465
|
-
!!hasOrganizationIdFetched &&
|
|
3466
|
-
["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
|
|
3467
|
-
!roomConnectionError) {
|
|
3468
|
-
return true;
|
|
3469
|
-
}
|
|
3470
|
-
return false;
|
|
3471
|
-
});
|
|
3472
|
-
createReactor([selectShouldConnectRoom], ({ dispatch }, shouldConnectRoom) => {
|
|
3473
|
-
if (shouldConnectRoom) {
|
|
3474
|
-
dispatch(doConnectRoom());
|
|
3475
|
-
}
|
|
3476
|
-
});
|
|
3477
|
-
startAppListening({
|
|
3478
|
-
actionCreator: signalEvents.knockHandled,
|
|
3479
|
-
effect: ({ payload }, { dispatch, getState }) => {
|
|
3480
|
-
var _a, _b;
|
|
3481
|
-
const { clientId, resolution } = payload;
|
|
3482
|
-
const state = getState();
|
|
3483
|
-
const selfId = selectSelfId(state);
|
|
3484
|
-
if (clientId !== selfId) {
|
|
3485
|
-
return;
|
|
3486
|
-
}
|
|
3487
|
-
if (resolution === "accepted") {
|
|
3488
|
-
dispatch(setRoomKey(payload.metadata.roomKey));
|
|
3489
|
-
dispatch(doConnectRoom());
|
|
3490
|
-
}
|
|
3491
|
-
else if (resolution === "on_hold") {
|
|
3492
|
-
dispatch(knockResponseReceived((_a = payload.knockResponse) !== null && _a !== void 0 ? _a : null));
|
|
3493
|
-
dispatch(connectionStatusChanged("knock_on_hold"));
|
|
3494
|
-
}
|
|
3495
|
-
else if (resolution === "rejected") {
|
|
3496
|
-
dispatch(knockResponseReceived((_b = payload.knockResponse) !== null && _b !== void 0 ? _b : null));
|
|
3497
|
-
dispatch(connectionStatusChanged("knock_rejected"));
|
|
3498
|
-
}
|
|
3499
|
-
},
|
|
3500
|
-
});
|
|
3501
|
-
startAppListening({
|
|
3502
|
-
actionCreator: signalEvents.clientKicked,
|
|
3503
|
-
effect: (_, { dispatch }) => {
|
|
3504
|
-
dispatch(doAppStop());
|
|
3505
|
-
},
|
|
3506
|
-
});
|
|
3507
|
-
startAppListening({
|
|
3508
|
-
actionCreator: doAppStop,
|
|
3509
|
-
effect: (_, { dispatch, getState }) => {
|
|
3510
|
-
const state = getState();
|
|
3511
|
-
const roomConnectionStatus = selectRoomConnectionStatus(state);
|
|
3512
|
-
if (roomConnectionStatus === "connected") {
|
|
3513
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3514
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("leave_room");
|
|
3515
|
-
dispatch(connectionStatusChanged("leaving"));
|
|
3516
|
-
}
|
|
3517
|
-
else {
|
|
3518
|
-
doSignalDisconnect();
|
|
3519
|
-
}
|
|
3520
|
-
},
|
|
3521
|
-
});
|
|
3522
|
-
|
|
3523
3810
|
function roomIntegrationContentTagName(integrationName) {
|
|
3524
3811
|
return `${integrationName}-integration-contentframe`;
|
|
3525
3812
|
}
|
|
@@ -5316,4 +5603,4 @@ function createServices() {
|
|
|
5316
5603
|
};
|
|
5317
5604
|
}
|
|
5318
5605
|
|
|
5319
|
-
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, 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, 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 };
|