@whereby.com/core 1.22.0 → 1.23.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 +66 -5
- package/dist/index.d.cts +13 -2
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.mjs +66 -6
- package/dist/legacy-esm.js +66 -6
- package/dist/redux/index.cjs +53 -4
- package/dist/redux/index.d.cts +198 -18
- package/dist/redux/index.d.mts +198 -18
- package/dist/redux/index.d.ts +198 -18
- package/dist/redux/index.js +50 -5
- package/dist/redux/index.mjs +50 -5
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1310,7 +1310,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1310
1310
|
});
|
|
1311
1311
|
};
|
|
1312
1312
|
|
|
1313
|
-
const coreVersion = "1.
|
|
1313
|
+
const coreVersion = "1.23.0";
|
|
1314
1314
|
|
|
1315
1315
|
function decodeRoomName(roomName) {
|
|
1316
1316
|
if (!roomName) {
|
|
@@ -2312,7 +2312,7 @@ const selectLocalParticipantDisplayName = (state) => state.localParticipant.disp
|
|
|
2312
2312
|
const selectLocalParticipantClientClaim = (state) => state.localParticipant.clientClaim;
|
|
2313
2313
|
const selectLocalParticipantStickyReaction = (state) => state.localParticipant.stickyReaction;
|
|
2314
2314
|
const selectLocalParticipantBreakoutGroup = (state) => state.localParticipant.breakoutGroup;
|
|
2315
|
-
const selectLocalParticipantView = toolkit.createSelector(selectLocalParticipantRaw, selectLocalMediaStream, (participant, localStream) => {
|
|
2315
|
+
const selectLocalParticipantView = toolkit.createSelector(selectLocalParticipantRaw, selectLocalMediaStream, (state) => state.rtcConnection.isAudioOnlyModeEnabled, (participant, localStream, isAudioOnlyModeEnabled) => {
|
|
2316
2316
|
const clientView = {
|
|
2317
2317
|
id: participant.id,
|
|
2318
2318
|
clientId: participant.id,
|
|
@@ -2322,6 +2322,7 @@ const selectLocalParticipantView = toolkit.createSelector(selectLocalParticipant
|
|
|
2322
2322
|
isLocalClient: true,
|
|
2323
2323
|
isAudioEnabled: participant.isAudioEnabled,
|
|
2324
2324
|
isVideoEnabled: participant.isVideoEnabled,
|
|
2325
|
+
isAudioOnlyModeEnabled,
|
|
2325
2326
|
};
|
|
2326
2327
|
if (NON_PERSON_ROLES.includes(participant.roleName)) {
|
|
2327
2328
|
return null;
|
|
@@ -3320,6 +3321,13 @@ const selectScreenshares = toolkit.createSelector(selectLocalScreenshareStream,
|
|
|
3320
3321
|
}
|
|
3321
3322
|
return screenshares;
|
|
3322
3323
|
});
|
|
3324
|
+
const selectRemoteScreenshareVideoTrackIds = toolkit.createSelector(selectScreenshares, (screenshares) => screenshares
|
|
3325
|
+
.filter((screenshare) => !screenshare.isLocal)
|
|
3326
|
+
.flatMap((screenshare) => { var _a, _b; return (_b = (_a = screenshare.stream) === null || _a === void 0 ? void 0 : _a.getVideoTracks().map((track) => track.id)) !== null && _b !== void 0 ? _b : []; }), {
|
|
3327
|
+
memoizeOptions: {
|
|
3328
|
+
resultEqualityCheck: (a, b) => a.length === b.length && a.every((trackId, index) => trackId === b[index]),
|
|
3329
|
+
},
|
|
3330
|
+
});
|
|
3323
3331
|
const selectRemoteClientViews = toolkit.createSelector(selectLocalScreenshareStream, selectLocalParticipantRaw, selectRemoteParticipants, selectBreakoutCurrentId, selectBreakoutAssignments, (localScreenshareStream, localParticipant, remoteParticipants, breakoutCurrentId, breakoutAssignments) => {
|
|
3324
3332
|
const views = [];
|
|
3325
3333
|
if (localScreenshareStream) {
|
|
@@ -3531,11 +3539,16 @@ const rtcConnectionSliceInitialState = {
|
|
|
3531
3539
|
rtcManagerInitialized: false,
|
|
3532
3540
|
status: "inactive",
|
|
3533
3541
|
isAcceptingStreams: false,
|
|
3542
|
+
isAudioOnlyModeEnabled: false,
|
|
3534
3543
|
};
|
|
3535
3544
|
const rtcConnectionSlice = toolkit.createSlice({
|
|
3536
3545
|
name: "rtcConnection",
|
|
3537
3546
|
initialState: rtcConnectionSliceInitialState,
|
|
3538
3547
|
reducers: {
|
|
3548
|
+
audioOnlyModeToggled: (state, action) => {
|
|
3549
|
+
var _a;
|
|
3550
|
+
return Object.assign(Object.assign({}, state), { isAudioOnlyModeEnabled: (_a = action.payload.enabled) !== null && _a !== void 0 ? _a : !state.isAudioOnlyModeEnabled });
|
|
3551
|
+
},
|
|
3539
3552
|
isAcceptingStreams: (state, action) => {
|
|
3540
3553
|
return Object.assign(Object.assign({}, state), { isAcceptingStreams: action.payload });
|
|
3541
3554
|
},
|
|
@@ -3553,7 +3566,7 @@ const rtcConnectionSlice = toolkit.createSlice({
|
|
|
3553
3566
|
return Object.assign(Object.assign({}, state), { rtcManager: action.payload, status: "ready" });
|
|
3554
3567
|
},
|
|
3555
3568
|
rtcManagerDestroyed: (state) => {
|
|
3556
|
-
return Object.assign(Object.assign({}, state), { rtcManager: null });
|
|
3569
|
+
return Object.assign(Object.assign({}, state), { rtcManager: null, rtcManagerInitialized: false });
|
|
3557
3570
|
},
|
|
3558
3571
|
rtcManagerInitialized: (state) => {
|
|
3559
3572
|
return Object.assign(Object.assign({}, state), { rtcManagerInitialized: true });
|
|
@@ -3584,7 +3597,7 @@ const rtcConnectionSlice = toolkit.createSlice({
|
|
|
3584
3597
|
});
|
|
3585
3598
|
},
|
|
3586
3599
|
});
|
|
3587
|
-
const { resolutionReported, rtcDispatcherCreated, rtcDisconnected, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, isAcceptingStreams, rtcClientConnectionStatusChanged, } = rtcConnectionSlice.actions;
|
|
3600
|
+
const { audioOnlyModeToggled, resolutionReported, rtcDispatcherCreated, rtcDisconnected, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, isAcceptingStreams, rtcClientConnectionStatusChanged, } = rtcConnectionSlice.actions;
|
|
3588
3601
|
const doConnectRtc = createAppThunk(() => (dispatch, getState) => {
|
|
3589
3602
|
const state = getState();
|
|
3590
3603
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
@@ -3682,8 +3695,19 @@ const doRtcManagerInitialize = createAppThunk(() => (dispatch, getState) => {
|
|
|
3682
3695
|
videoPaused: !isCameraEnabled,
|
|
3683
3696
|
});
|
|
3684
3697
|
}
|
|
3698
|
+
const screenshareStream = selectLocalScreenshareStream(getState());
|
|
3699
|
+
if (screenshareStream && rtcManager) {
|
|
3700
|
+
rtcManager.addScreenshareStream(screenshareStream);
|
|
3701
|
+
}
|
|
3685
3702
|
dispatch(rtcManagerInitialized());
|
|
3686
3703
|
});
|
|
3704
|
+
const doToggleAudioOnlyMode = createAppThunk(({ enabled, autoDisableLocalCamera }) => (dispatch, getState) => {
|
|
3705
|
+
dispatch(audioOnlyModeToggled({ enabled }));
|
|
3706
|
+
const state = getState();
|
|
3707
|
+
if (autoDisableLocalCamera && selectIsAudioOnlyModeEnabled(state) && selectIsCameraEnabled(state)) {
|
|
3708
|
+
dispatch(toggleCameraEnabled({ enabled: false }));
|
|
3709
|
+
}
|
|
3710
|
+
});
|
|
3687
3711
|
const selectRtcConnectionRaw = (state) => state.rtcConnection;
|
|
3688
3712
|
const selectRtcManagerInitialized = (state) => state.rtcConnection.rtcManagerInitialized;
|
|
3689
3713
|
const selectRtcManager = (state) => state.rtcConnection.rtcManager;
|
|
@@ -3691,6 +3715,7 @@ const selectRtcDispatcherCreated = (state) => state.rtcConnection.dispatcherCrea
|
|
|
3691
3715
|
const selectRtcIsCreatingDispatcher = (state) => state.rtcConnection.isCreatingDispatcher;
|
|
3692
3716
|
const selectRtcStatus = (state) => state.rtcConnection.status;
|
|
3693
3717
|
const selectIsAcceptingStreams = (state) => state.rtcConnection.isAcceptingStreams;
|
|
3718
|
+
const selectIsAudioOnlyModeEnabled = (state) => state.rtcConnection.isAudioOnlyModeEnabled;
|
|
3694
3719
|
startAppListening({
|
|
3695
3720
|
actionCreator: doSetDevice.fulfilled,
|
|
3696
3721
|
effect: ({ payload }, { getState }) => {
|
|
@@ -3746,6 +3771,22 @@ startAppListening({
|
|
|
3746
3771
|
}
|
|
3747
3772
|
},
|
|
3748
3773
|
});
|
|
3774
|
+
startAppListening({
|
|
3775
|
+
actionCreator: audioOnlyModeToggled,
|
|
3776
|
+
effect: (_, { getState }) => {
|
|
3777
|
+
const state = getState();
|
|
3778
|
+
const rtcManager = selectRtcManager(state);
|
|
3779
|
+
rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.setAudioOnly(selectIsAudioOnlyModeEnabled(state));
|
|
3780
|
+
},
|
|
3781
|
+
});
|
|
3782
|
+
startAppListening({
|
|
3783
|
+
actionCreator: rtcManagerCreated,
|
|
3784
|
+
effect: ({ payload: rtcManager }, { getState }) => {
|
|
3785
|
+
if (selectIsAudioOnlyModeEnabled(getState())) {
|
|
3786
|
+
rtcManager.setAudioOnly(true);
|
|
3787
|
+
}
|
|
3788
|
+
},
|
|
3789
|
+
});
|
|
3749
3790
|
startAppListening({
|
|
3750
3791
|
actionCreator: rtcEvents.clientConnectionStatusChanged,
|
|
3751
3792
|
effect: (_, { dispatch, getState }) => {
|
|
@@ -3807,6 +3848,9 @@ createReactor([selectShouldDisconnectRtc], ({ dispatch }, shouldDisconnectRtc) =
|
|
|
3807
3848
|
dispatch(doDisconnectRtc());
|
|
3808
3849
|
}
|
|
3809
3850
|
});
|
|
3851
|
+
createReactor([selectRtcManager, selectRemoteScreenshareVideoTrackIds], (_, rtcManager, remoteScreenshareVideoTrackIds) => {
|
|
3852
|
+
rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.setRemoteScreenshareVideoTrackIds(remoteScreenshareVideoTrackIds);
|
|
3853
|
+
});
|
|
3810
3854
|
const selectStreamsToAccept = toolkit.createSelector(selectRtcStatus, selectRemoteClients, selectBreakoutCurrentId, selectSpotlights, selectAppIgnoreBreakoutGroups, (rtcStatus, remoteParticipants, breakoutCurrentId, spotlights, ignoreBreakoutGroups) => {
|
|
3811
3855
|
if (rtcStatus !== "ready") {
|
|
3812
3856
|
return [];
|
|
@@ -3879,6 +3923,7 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
3879
3923
|
return ({
|
|
3880
3924
|
id: clientView.id,
|
|
3881
3925
|
clientId: clientView.clientId,
|
|
3926
|
+
isAudioOnlyModeEnabled: clientView.isAudioOnlyModeEnabled,
|
|
3882
3927
|
isLocalClient: clientView.isLocalClient,
|
|
3883
3928
|
audio: {
|
|
3884
3929
|
enabled: clientView.isAudioEnabled,
|
|
@@ -6015,6 +6060,7 @@ const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
|
6015
6060
|
const LIVE_CAPTIONS_STATUS_CHANGED = "live-captions:status-changed";
|
|
6016
6061
|
const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
6017
6062
|
const CONNECTION_ERROR_CHANGED = "connection:error-changed";
|
|
6063
|
+
const AUDIO_ONLY_MODE_CHANGED = "audio-only-mode:changed";
|
|
6018
6064
|
const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
6019
6065
|
const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
6020
6066
|
const LOCAL_SCREENSHARE_CHANGED = "local-screenshare:state-changed";
|
|
@@ -6032,7 +6078,7 @@ const SPOTLIGHT_PARTICIPANT_REMOVED = "spotlight:participant-removed";
|
|
|
6032
6078
|
const ROOM_JOINED = "room:joined";
|
|
6033
6079
|
const ROOM_JOINED_ERROR = "room:joined:error";
|
|
6034
6080
|
|
|
6035
|
-
const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, selectFileUploads, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutActive, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutAssignments, selectBreakoutEnforceAssignment, selectBreakoutTimerSetting, selectBreakoutTimerDuration, selectBreakoutAutoMoveToGroup, selectBreakoutMoveToGroupGracePeriod, selectBreakoutAutoMoveToMain, selectBreakoutMoveToMainGracePeriod, selectBreakoutStartedAt, selectBreakoutEndTime, selectBreakoutMoveToGroupAt, selectBreakoutMoveToMainAt, selectBreakoutIsAvailable, selectBreakoutError, selectAllClientViewsInCurrentGroup, selectLiveCaptionsRaw, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectLocalScreenshareRaw, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectRoomConnectionError, selectRoomConnectionKnockResponse, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, selectIsCameraEnabled, selectIsMicrophoneEnabled, selectRoomIntegrationsRaw, selectEnabledRoomIntegrations, selectEmbeddableRoomIntegrations, selectRunningRoomIntegrations, (chatMessages, fileUploads, cloudRecording, breakoutCurrentGroup, breakoutCurrentId, breakoutActive, breakoutGroupedParticipants, breakoutGroups, breakoutAssignments, breakoutEnforceAssignment, breakoutTimerSetting, breakoutTimerDuration, breakoutAutoMoveToGroup, breakoutMoveToGroupGracePeriod, breakoutAutoMoveToMain, breakoutMoveToMainGracePeriod, breakoutStartedAt, breakoutEndTime, breakoutMoveToGroupAt, breakoutMoveToMainAt, breakoutIsAvailable, breakoutError, clientViewsInCurrentGroup, liveCaptions, liveTranscription, localParticipant, localMediaStream, localScreenshare, remoteParticipants, screenshares, connectionStatus, connectionError, knockResponse, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews, isCameraEnabled, isMicrophoneEnabled, roomIntegrationsRaw, enabledRoomIntegrations, embeddableRoomIntegrations, runningRoomIntegrations) => {
|
|
6081
|
+
const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, selectFileUploads, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutActive, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutAssignments, selectBreakoutEnforceAssignment, selectBreakoutTimerSetting, selectBreakoutTimerDuration, selectBreakoutAutoMoveToGroup, selectBreakoutMoveToGroupGracePeriod, selectBreakoutAutoMoveToMain, selectBreakoutMoveToMainGracePeriod, selectBreakoutStartedAt, selectBreakoutEndTime, selectBreakoutMoveToGroupAt, selectBreakoutMoveToMainAt, selectBreakoutIsAvailable, selectBreakoutError, selectAllClientViewsInCurrentGroup, selectLiveCaptionsRaw, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectLocalScreenshareRaw, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectRoomConnectionError, selectRoomConnectionKnockResponse, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, selectIsCameraEnabled, selectIsMicrophoneEnabled, selectRoomIntegrationsRaw, selectEnabledRoomIntegrations, selectEmbeddableRoomIntegrations, selectRunningRoomIntegrations, selectIsAudioOnlyModeEnabled, (chatMessages, fileUploads, cloudRecording, breakoutCurrentGroup, breakoutCurrentId, breakoutActive, breakoutGroupedParticipants, breakoutGroups, breakoutAssignments, breakoutEnforceAssignment, breakoutTimerSetting, breakoutTimerDuration, breakoutAutoMoveToGroup, breakoutMoveToGroupGracePeriod, breakoutAutoMoveToMain, breakoutMoveToMainGracePeriod, breakoutStartedAt, breakoutEndTime, breakoutMoveToGroupAt, breakoutMoveToMainAt, breakoutIsAvailable, breakoutError, clientViewsInCurrentGroup, liveCaptions, liveTranscription, localParticipant, localMediaStream, localScreenshare, remoteParticipants, screenshares, connectionStatus, connectionError, knockResponse, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews, isCameraEnabled, isMicrophoneEnabled, roomIntegrationsRaw, enabledRoomIntegrations, embeddableRoomIntegrations, runningRoomIntegrations, isAudioOnlyModeEnabled) => {
|
|
6036
6082
|
const broadcastingParticipants = breakoutActive && breakoutCurrentId
|
|
6037
6083
|
? spotlightedClientViews.filter((c) => !c.breakoutGroup && c.isAudioEnabled && !c.isPresentation)
|
|
6038
6084
|
: [];
|
|
@@ -6071,6 +6117,7 @@ const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, sel
|
|
|
6071
6117
|
connectionError,
|
|
6072
6118
|
knockResponse,
|
|
6073
6119
|
events: notificationsEmitter,
|
|
6120
|
+
isAudioOnlyModeEnabled,
|
|
6074
6121
|
isCameraEnabled,
|
|
6075
6122
|
isMicrophoneEnabled,
|
|
6076
6123
|
liveStream: streaming.isStreaming
|
|
@@ -6135,6 +6182,7 @@ class RoomConnectionClient extends BaseClient {
|
|
|
6135
6182
|
this.fileUploadsSubscribers = new Set();
|
|
6136
6183
|
this.cloudRecordingSubscribers = new Set();
|
|
6137
6184
|
this.connectionErrorSubscribers = new Set();
|
|
6185
|
+
this.audioOnlyModeSubscribers = new Set();
|
|
6138
6186
|
this.connectionStatusSubscribers = new Set();
|
|
6139
6187
|
this.liveStreamSubscribers = new Set();
|
|
6140
6188
|
this.liveCaptionsSubscribers = new Set();
|
|
@@ -6182,6 +6230,10 @@ class RoomConnectionClient extends BaseClient {
|
|
|
6182
6230
|
this.connectionErrorSubscribers.forEach((cb) => cb(state.connectionError));
|
|
6183
6231
|
this.emit(CONNECTION_ERROR_CHANGED, state.connectionError);
|
|
6184
6232
|
}
|
|
6233
|
+
if (state.isAudioOnlyModeEnabled !== previousState.isAudioOnlyModeEnabled) {
|
|
6234
|
+
this.audioOnlyModeSubscribers.forEach((cb) => cb(state.isAudioOnlyModeEnabled));
|
|
6235
|
+
this.emit(AUDIO_ONLY_MODE_CHANGED, state.isAudioOnlyModeEnabled);
|
|
6236
|
+
}
|
|
6185
6237
|
if (state.isCameraEnabled !== previousState.isCameraEnabled) {
|
|
6186
6238
|
this.cameraStateSubscribers.forEach((cb) => cb(state.isCameraEnabled));
|
|
6187
6239
|
this.emit(CAMERA_STATE_CHANGED, state.isCameraEnabled);
|
|
@@ -6304,6 +6356,10 @@ class RoomConnectionClient extends BaseClient {
|
|
|
6304
6356
|
this.connectionErrorSubscribers.add(callback);
|
|
6305
6357
|
return () => this.connectionErrorSubscribers.delete(callback);
|
|
6306
6358
|
}
|
|
6359
|
+
subscribeToAudioOnlyMode(callback) {
|
|
6360
|
+
this.audioOnlyModeSubscribers.add(callback);
|
|
6361
|
+
return () => this.audioOnlyModeSubscribers.delete(callback);
|
|
6362
|
+
}
|
|
6307
6363
|
subscribeToLiveStream(callback) {
|
|
6308
6364
|
this.liveStreamSubscribers.add(callback);
|
|
6309
6365
|
return () => this.liveStreamSubscribers.delete(callback);
|
|
@@ -6430,6 +6486,9 @@ class RoomConnectionClient extends BaseClient {
|
|
|
6430
6486
|
toggleLowDataMode(enabled) {
|
|
6431
6487
|
this.store.dispatch(toggleLowDataModeEnabled({ enabled }));
|
|
6432
6488
|
}
|
|
6489
|
+
toggleAudioOnlyMode(enabled, options) {
|
|
6490
|
+
this.store.dispatch(doToggleAudioOnlyMode(Object.assign({ enabled }, options)));
|
|
6491
|
+
}
|
|
6433
6492
|
toggleWidescreenMode(enabled) {
|
|
6434
6493
|
this.store.dispatch(toggleWidescreenModeEnabled({ enabled }));
|
|
6435
6494
|
}
|
|
@@ -6622,6 +6681,7 @@ class RoomConnectionClient extends BaseClient {
|
|
|
6622
6681
|
this.fileUploadsSubscribers.clear();
|
|
6623
6682
|
this.cloudRecordingSubscribers.clear();
|
|
6624
6683
|
this.connectionErrorSubscribers.clear();
|
|
6684
|
+
this.audioOnlyModeSubscribers.clear();
|
|
6625
6685
|
this.connectionStatusSubscribers.clear();
|
|
6626
6686
|
this.liveStreamSubscribers.clear();
|
|
6627
6687
|
this.localParticipantSubscribers.clear();
|
|
@@ -6663,6 +6723,7 @@ class WherebyClient {
|
|
|
6663
6723
|
}
|
|
6664
6724
|
|
|
6665
6725
|
exports.ACCEPTED_FILE_TYPES = ACCEPTED_FILE_TYPES;
|
|
6726
|
+
exports.AUDIO_ONLY_MODE_CHANGED = AUDIO_ONLY_MODE_CHANGED;
|
|
6666
6727
|
exports.ApiClient = ApiClient;
|
|
6667
6728
|
exports.BREAKOUT_CONFIG_CHANGED = BREAKOUT_CONFIG_CHANGED;
|
|
6668
6729
|
exports.BREAKOUT_GROUPS_MIN_MAX = BREAKOUT_GROUPS_MIN_MAX;
|
package/dist/index.d.cts
CHANGED
|
@@ -833,6 +833,7 @@ type ClientView = {
|
|
|
833
833
|
isPresentation?: boolean;
|
|
834
834
|
isVideoEnabled?: boolean;
|
|
835
835
|
isAudioEnabled?: boolean;
|
|
836
|
+
isAudioOnlyModeEnabled?: boolean;
|
|
836
837
|
breakoutGroup?: string | null;
|
|
837
838
|
breakoutGroupAssigned?: string;
|
|
838
839
|
};
|
|
@@ -1004,6 +1005,10 @@ interface RtcConnectionState {
|
|
|
1004
1005
|
rtcManagerInitialized: boolean;
|
|
1005
1006
|
status: "inactive" | "ready" | "reconnecting";
|
|
1006
1007
|
isAcceptingStreams: boolean;
|
|
1008
|
+
isAudioOnlyModeEnabled: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
interface ToggleAudioOnlyModeOptions {
|
|
1011
|
+
autoDisableLocalCamera?: boolean;
|
|
1007
1012
|
}
|
|
1008
1013
|
|
|
1009
1014
|
interface SignalConnectionState {
|
|
@@ -1428,6 +1433,7 @@ interface RoomConnectionState {
|
|
|
1428
1433
|
cloudRecording?: CloudRecordingState;
|
|
1429
1434
|
breakout: BreakoutState;
|
|
1430
1435
|
events?: NotificationsEventEmitter;
|
|
1436
|
+
isAudioOnlyModeEnabled: boolean;
|
|
1431
1437
|
isCameraEnabled: boolean;
|
|
1432
1438
|
isMicrophoneEnabled: boolean;
|
|
1433
1439
|
liveStream?: LiveStreamState;
|
|
@@ -1450,6 +1456,7 @@ declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
|
1450
1456
|
declare const LIVE_CAPTIONS_STATUS_CHANGED = "live-captions:status-changed";
|
|
1451
1457
|
declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
1452
1458
|
declare const CONNECTION_ERROR_CHANGED = "connection:error-changed";
|
|
1459
|
+
declare const AUDIO_ONLY_MODE_CHANGED = "audio-only-mode:changed";
|
|
1453
1460
|
declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
1454
1461
|
declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
1455
1462
|
declare const LOCAL_SCREENSHARE_CHANGED = "local-screenshare:state-changed";
|
|
@@ -1479,6 +1486,7 @@ type RoomConnectionEvents = {
|
|
|
1479
1486
|
[LIVE_CAPTIONS_STATUS_CHANGED]: [status: LiveCaptionsState | undefined];
|
|
1480
1487
|
[LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
|
|
1481
1488
|
[CONNECTION_ERROR_CHANGED]: [error: string | null];
|
|
1489
|
+
[AUDIO_ONLY_MODE_CHANGED]: [isEnabled: boolean];
|
|
1482
1490
|
[LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
|
|
1483
1491
|
[LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
|
|
1484
1492
|
[LOCAL_SCREENSHARE_CHANGED]: [status: LocalScreenshareState | undefined];
|
|
@@ -1505,6 +1513,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1505
1513
|
private fileUploadsSubscribers;
|
|
1506
1514
|
private cloudRecordingSubscribers;
|
|
1507
1515
|
private connectionErrorSubscribers;
|
|
1516
|
+
private audioOnlyModeSubscribers;
|
|
1508
1517
|
private connectionStatusSubscribers;
|
|
1509
1518
|
private liveStreamSubscribers;
|
|
1510
1519
|
private liveCaptionsSubscribers;
|
|
@@ -1528,6 +1537,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1528
1537
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
1529
1538
|
subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
|
|
1530
1539
|
subscribeToConnectionError(callback: (error: string | null) => void): () => void;
|
|
1540
|
+
subscribeToAudioOnlyMode(callback: (isEnabled: boolean) => void): () => void;
|
|
1531
1541
|
subscribeToLiveStream(callback: (status: {
|
|
1532
1542
|
status: "streaming";
|
|
1533
1543
|
} | undefined) => void): () => void;
|
|
@@ -1556,6 +1566,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1556
1566
|
toggleMicrophone(enabled?: boolean): void;
|
|
1557
1567
|
toggleHdMode(enabled?: boolean): void;
|
|
1558
1568
|
toggleLowDataMode(enabled?: boolean): void;
|
|
1569
|
+
toggleAudioOnlyMode(enabled?: boolean, options?: ToggleAudioOnlyModeOptions): void;
|
|
1559
1570
|
toggleWidescreenMode(enabled?: boolean): void;
|
|
1560
1571
|
toggleRaiseHand(enabled?: boolean): void;
|
|
1561
1572
|
askToSpeak(participantId: string): void;
|
|
@@ -1632,5 +1643,5 @@ declare class WherebyClient {
|
|
|
1632
1643
|
destroy(): void;
|
|
1633
1644
|
}
|
|
1634
1645
|
|
|
1635
|
-
export { ACCEPTED_FILE_TYPES, ApiClient, BREAKOUT_CONFIG_CHANGED, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_ENABLED_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, DEFAULT_BREAKOUT_TIMER_DURATION, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_CAPTIONS_STATUS_CHANGED, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LiveCaption, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_ENABLED_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, Organization, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_INTEGRATION_PICKER_MESSAGES, ROOM_JOINED, ROOM_JOINED_ERROR, RUNNING_ROOM_INTEGRATIONS_CHANGED, RoomConnectionClient, RoomIntegrationService, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createBreakoutGroups, createServices, debounce, defaultBreakoutGroupName, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, miro, parseUnverifiedRoomKeyData, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl, youtube };
|
|
1636
|
-
export type { AppConfig, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, FindRoomIntegrationsResponse, FullOrganizationPermissions, GridEvents, GridState, InitialMuteStates, LiveCaptionsState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestScreenshareEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationResponse, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, Screenshare, ScreenshareState, SendFilesOptions, SignalClientEvent, SignalStatusEvent, StartBreakoutSessionOptions, StickyReaction, StickyReactionEvent, StreamState, UpdateBreakoutSessionOptions, WaitingParticipant, WaitingParticipantState, WherebyClientOptions, YouTubeContentMetadata };
|
|
1646
|
+
export { ACCEPTED_FILE_TYPES, AUDIO_ONLY_MODE_CHANGED, ApiClient, BREAKOUT_CONFIG_CHANGED, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_ENABLED_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, DEFAULT_BREAKOUT_TIMER_DURATION, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_CAPTIONS_STATUS_CHANGED, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LiveCaption, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_ENABLED_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, Organization, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_INTEGRATION_PICKER_MESSAGES, ROOM_JOINED, ROOM_JOINED_ERROR, RUNNING_ROOM_INTEGRATIONS_CHANGED, RoomConnectionClient, RoomIntegrationService, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createBreakoutGroups, createServices, debounce, defaultBreakoutGroupName, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, miro, parseUnverifiedRoomKeyData, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl, youtube };
|
|
1647
|
+
export type { AppConfig, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, FindRoomIntegrationsResponse, FullOrganizationPermissions, GridEvents, GridState, InitialMuteStates, LiveCaptionsState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestScreenshareEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationResponse, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, Screenshare, ScreenshareState, SendFilesOptions, SignalClientEvent, SignalStatusEvent, StartBreakoutSessionOptions, StickyReaction, StickyReactionEvent, StreamState, ToggleAudioOnlyModeOptions, UpdateBreakoutSessionOptions, WaitingParticipant, WaitingParticipantState, WherebyClientOptions, YouTubeContentMetadata };
|
package/dist/index.d.mts
CHANGED
|
@@ -833,6 +833,7 @@ type ClientView = {
|
|
|
833
833
|
isPresentation?: boolean;
|
|
834
834
|
isVideoEnabled?: boolean;
|
|
835
835
|
isAudioEnabled?: boolean;
|
|
836
|
+
isAudioOnlyModeEnabled?: boolean;
|
|
836
837
|
breakoutGroup?: string | null;
|
|
837
838
|
breakoutGroupAssigned?: string;
|
|
838
839
|
};
|
|
@@ -1004,6 +1005,10 @@ interface RtcConnectionState {
|
|
|
1004
1005
|
rtcManagerInitialized: boolean;
|
|
1005
1006
|
status: "inactive" | "ready" | "reconnecting";
|
|
1006
1007
|
isAcceptingStreams: boolean;
|
|
1008
|
+
isAudioOnlyModeEnabled: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
interface ToggleAudioOnlyModeOptions {
|
|
1011
|
+
autoDisableLocalCamera?: boolean;
|
|
1007
1012
|
}
|
|
1008
1013
|
|
|
1009
1014
|
interface SignalConnectionState {
|
|
@@ -1428,6 +1433,7 @@ interface RoomConnectionState {
|
|
|
1428
1433
|
cloudRecording?: CloudRecordingState;
|
|
1429
1434
|
breakout: BreakoutState;
|
|
1430
1435
|
events?: NotificationsEventEmitter;
|
|
1436
|
+
isAudioOnlyModeEnabled: boolean;
|
|
1431
1437
|
isCameraEnabled: boolean;
|
|
1432
1438
|
isMicrophoneEnabled: boolean;
|
|
1433
1439
|
liveStream?: LiveStreamState;
|
|
@@ -1450,6 +1456,7 @@ declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
|
1450
1456
|
declare const LIVE_CAPTIONS_STATUS_CHANGED = "live-captions:status-changed";
|
|
1451
1457
|
declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
1452
1458
|
declare const CONNECTION_ERROR_CHANGED = "connection:error-changed";
|
|
1459
|
+
declare const AUDIO_ONLY_MODE_CHANGED = "audio-only-mode:changed";
|
|
1453
1460
|
declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
1454
1461
|
declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
1455
1462
|
declare const LOCAL_SCREENSHARE_CHANGED = "local-screenshare:state-changed";
|
|
@@ -1479,6 +1486,7 @@ type RoomConnectionEvents = {
|
|
|
1479
1486
|
[LIVE_CAPTIONS_STATUS_CHANGED]: [status: LiveCaptionsState | undefined];
|
|
1480
1487
|
[LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
|
|
1481
1488
|
[CONNECTION_ERROR_CHANGED]: [error: string | null];
|
|
1489
|
+
[AUDIO_ONLY_MODE_CHANGED]: [isEnabled: boolean];
|
|
1482
1490
|
[LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
|
|
1483
1491
|
[LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
|
|
1484
1492
|
[LOCAL_SCREENSHARE_CHANGED]: [status: LocalScreenshareState | undefined];
|
|
@@ -1505,6 +1513,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1505
1513
|
private fileUploadsSubscribers;
|
|
1506
1514
|
private cloudRecordingSubscribers;
|
|
1507
1515
|
private connectionErrorSubscribers;
|
|
1516
|
+
private audioOnlyModeSubscribers;
|
|
1508
1517
|
private connectionStatusSubscribers;
|
|
1509
1518
|
private liveStreamSubscribers;
|
|
1510
1519
|
private liveCaptionsSubscribers;
|
|
@@ -1528,6 +1537,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1528
1537
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
1529
1538
|
subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
|
|
1530
1539
|
subscribeToConnectionError(callback: (error: string | null) => void): () => void;
|
|
1540
|
+
subscribeToAudioOnlyMode(callback: (isEnabled: boolean) => void): () => void;
|
|
1531
1541
|
subscribeToLiveStream(callback: (status: {
|
|
1532
1542
|
status: "streaming";
|
|
1533
1543
|
} | undefined) => void): () => void;
|
|
@@ -1556,6 +1566,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1556
1566
|
toggleMicrophone(enabled?: boolean): void;
|
|
1557
1567
|
toggleHdMode(enabled?: boolean): void;
|
|
1558
1568
|
toggleLowDataMode(enabled?: boolean): void;
|
|
1569
|
+
toggleAudioOnlyMode(enabled?: boolean, options?: ToggleAudioOnlyModeOptions): void;
|
|
1559
1570
|
toggleWidescreenMode(enabled?: boolean): void;
|
|
1560
1571
|
toggleRaiseHand(enabled?: boolean): void;
|
|
1561
1572
|
askToSpeak(participantId: string): void;
|
|
@@ -1632,5 +1643,5 @@ declare class WherebyClient {
|
|
|
1632
1643
|
destroy(): void;
|
|
1633
1644
|
}
|
|
1634
1645
|
|
|
1635
|
-
export { ACCEPTED_FILE_TYPES, ApiClient, BREAKOUT_CONFIG_CHANGED, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_ENABLED_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, DEFAULT_BREAKOUT_TIMER_DURATION, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_CAPTIONS_STATUS_CHANGED, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LiveCaption, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_ENABLED_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, Organization, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_INTEGRATION_PICKER_MESSAGES, ROOM_JOINED, ROOM_JOINED_ERROR, RUNNING_ROOM_INTEGRATIONS_CHANGED, RoomConnectionClient, RoomIntegrationService, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createBreakoutGroups, createServices, debounce, defaultBreakoutGroupName, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, miro, parseUnverifiedRoomKeyData, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl, youtube };
|
|
1636
|
-
export type { AppConfig, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, FindRoomIntegrationsResponse, FullOrganizationPermissions, GridEvents, GridState, InitialMuteStates, LiveCaptionsState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestScreenshareEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationResponse, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, Screenshare, ScreenshareState, SendFilesOptions, SignalClientEvent, SignalStatusEvent, StartBreakoutSessionOptions, StickyReaction, StickyReactionEvent, StreamState, UpdateBreakoutSessionOptions, WaitingParticipant, WaitingParticipantState, WherebyClientOptions, YouTubeContentMetadata };
|
|
1646
|
+
export { ACCEPTED_FILE_TYPES, AUDIO_ONLY_MODE_CHANGED, ApiClient, BREAKOUT_CONFIG_CHANGED, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_ENABLED_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, DEFAULT_BREAKOUT_TIMER_DURATION, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_CAPTIONS_STATUS_CHANGED, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LiveCaption, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_ENABLED_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, Organization, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_INTEGRATION_PICKER_MESSAGES, ROOM_JOINED, ROOM_JOINED_ERROR, RUNNING_ROOM_INTEGRATIONS_CHANGED, RoomConnectionClient, RoomIntegrationService, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createBreakoutGroups, createServices, debounce, defaultBreakoutGroupName, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, miro, parseUnverifiedRoomKeyData, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl, youtube };
|
|
1647
|
+
export type { AppConfig, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, FindRoomIntegrationsResponse, FullOrganizationPermissions, GridEvents, GridState, InitialMuteStates, LiveCaptionsState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestScreenshareEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationResponse, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, Screenshare, ScreenshareState, SendFilesOptions, SignalClientEvent, SignalStatusEvent, StartBreakoutSessionOptions, StickyReaction, StickyReactionEvent, StreamState, ToggleAudioOnlyModeOptions, UpdateBreakoutSessionOptions, WaitingParticipant, WaitingParticipantState, WherebyClientOptions, YouTubeContentMetadata };
|
package/dist/index.d.ts
CHANGED
|
@@ -833,6 +833,7 @@ type ClientView = {
|
|
|
833
833
|
isPresentation?: boolean;
|
|
834
834
|
isVideoEnabled?: boolean;
|
|
835
835
|
isAudioEnabled?: boolean;
|
|
836
|
+
isAudioOnlyModeEnabled?: boolean;
|
|
836
837
|
breakoutGroup?: string | null;
|
|
837
838
|
breakoutGroupAssigned?: string;
|
|
838
839
|
};
|
|
@@ -1004,6 +1005,10 @@ interface RtcConnectionState {
|
|
|
1004
1005
|
rtcManagerInitialized: boolean;
|
|
1005
1006
|
status: "inactive" | "ready" | "reconnecting";
|
|
1006
1007
|
isAcceptingStreams: boolean;
|
|
1008
|
+
isAudioOnlyModeEnabled: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
interface ToggleAudioOnlyModeOptions {
|
|
1011
|
+
autoDisableLocalCamera?: boolean;
|
|
1007
1012
|
}
|
|
1008
1013
|
|
|
1009
1014
|
interface SignalConnectionState {
|
|
@@ -1428,6 +1433,7 @@ interface RoomConnectionState {
|
|
|
1428
1433
|
cloudRecording?: CloudRecordingState;
|
|
1429
1434
|
breakout: BreakoutState;
|
|
1430
1435
|
events?: NotificationsEventEmitter;
|
|
1436
|
+
isAudioOnlyModeEnabled: boolean;
|
|
1431
1437
|
isCameraEnabled: boolean;
|
|
1432
1438
|
isMicrophoneEnabled: boolean;
|
|
1433
1439
|
liveStream?: LiveStreamState;
|
|
@@ -1450,6 +1456,7 @@ declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
|
1450
1456
|
declare const LIVE_CAPTIONS_STATUS_CHANGED = "live-captions:status-changed";
|
|
1451
1457
|
declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
1452
1458
|
declare const CONNECTION_ERROR_CHANGED = "connection:error-changed";
|
|
1459
|
+
declare const AUDIO_ONLY_MODE_CHANGED = "audio-only-mode:changed";
|
|
1453
1460
|
declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
1454
1461
|
declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
1455
1462
|
declare const LOCAL_SCREENSHARE_CHANGED = "local-screenshare:state-changed";
|
|
@@ -1479,6 +1486,7 @@ type RoomConnectionEvents = {
|
|
|
1479
1486
|
[LIVE_CAPTIONS_STATUS_CHANGED]: [status: LiveCaptionsState | undefined];
|
|
1480
1487
|
[LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
|
|
1481
1488
|
[CONNECTION_ERROR_CHANGED]: [error: string | null];
|
|
1489
|
+
[AUDIO_ONLY_MODE_CHANGED]: [isEnabled: boolean];
|
|
1482
1490
|
[LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
|
|
1483
1491
|
[LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
|
|
1484
1492
|
[LOCAL_SCREENSHARE_CHANGED]: [status: LocalScreenshareState | undefined];
|
|
@@ -1505,6 +1513,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1505
1513
|
private fileUploadsSubscribers;
|
|
1506
1514
|
private cloudRecordingSubscribers;
|
|
1507
1515
|
private connectionErrorSubscribers;
|
|
1516
|
+
private audioOnlyModeSubscribers;
|
|
1508
1517
|
private connectionStatusSubscribers;
|
|
1509
1518
|
private liveStreamSubscribers;
|
|
1510
1519
|
private liveCaptionsSubscribers;
|
|
@@ -1528,6 +1537,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1528
1537
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
1529
1538
|
subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
|
|
1530
1539
|
subscribeToConnectionError(callback: (error: string | null) => void): () => void;
|
|
1540
|
+
subscribeToAudioOnlyMode(callback: (isEnabled: boolean) => void): () => void;
|
|
1531
1541
|
subscribeToLiveStream(callback: (status: {
|
|
1532
1542
|
status: "streaming";
|
|
1533
1543
|
} | undefined) => void): () => void;
|
|
@@ -1556,6 +1566,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1556
1566
|
toggleMicrophone(enabled?: boolean): void;
|
|
1557
1567
|
toggleHdMode(enabled?: boolean): void;
|
|
1558
1568
|
toggleLowDataMode(enabled?: boolean): void;
|
|
1569
|
+
toggleAudioOnlyMode(enabled?: boolean, options?: ToggleAudioOnlyModeOptions): void;
|
|
1559
1570
|
toggleWidescreenMode(enabled?: boolean): void;
|
|
1560
1571
|
toggleRaiseHand(enabled?: boolean): void;
|
|
1561
1572
|
askToSpeak(participantId: string): void;
|
|
@@ -1632,5 +1643,5 @@ declare class WherebyClient {
|
|
|
1632
1643
|
destroy(): void;
|
|
1633
1644
|
}
|
|
1634
1645
|
|
|
1635
|
-
export { ACCEPTED_FILE_TYPES, ApiClient, BREAKOUT_CONFIG_CHANGED, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_ENABLED_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, DEFAULT_BREAKOUT_TIMER_DURATION, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_CAPTIONS_STATUS_CHANGED, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LiveCaption, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_ENABLED_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, Organization, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_INTEGRATION_PICKER_MESSAGES, ROOM_JOINED, ROOM_JOINED_ERROR, RUNNING_ROOM_INTEGRATIONS_CHANGED, RoomConnectionClient, RoomIntegrationService, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createBreakoutGroups, createServices, debounce, defaultBreakoutGroupName, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, miro, parseUnverifiedRoomKeyData, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl, youtube };
|
|
1636
|
-
export type { AppConfig, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, FindRoomIntegrationsResponse, FullOrganizationPermissions, GridEvents, GridState, InitialMuteStates, LiveCaptionsState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestScreenshareEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationResponse, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, Screenshare, ScreenshareState, SendFilesOptions, SignalClientEvent, SignalStatusEvent, StartBreakoutSessionOptions, StickyReaction, StickyReactionEvent, StreamState, UpdateBreakoutSessionOptions, WaitingParticipant, WaitingParticipantState, WherebyClientOptions, YouTubeContentMetadata };
|
|
1646
|
+
export { ACCEPTED_FILE_TYPES, AUDIO_ONLY_MODE_CHANGED, ApiClient, BREAKOUT_CONFIG_CHANGED, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_ENABLED_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, DEFAULT_BREAKOUT_TIMER_DURATION, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_CAPTIONS_STATUS_CHANGED, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LiveCaption, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_ENABLED_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, Organization, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_INTEGRATION_PICKER_MESSAGES, ROOM_JOINED, ROOM_JOINED_ERROR, RUNNING_ROOM_INTEGRATIONS_CHANGED, RoomConnectionClient, RoomIntegrationService, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createBreakoutGroups, createServices, debounce, defaultBreakoutGroupName, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, miro, parseUnverifiedRoomKeyData, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl, youtube };
|
|
1647
|
+
export type { AppConfig, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, FindRoomIntegrationsResponse, FullOrganizationPermissions, GridEvents, GridState, InitialMuteStates, LiveCaptionsState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestScreenshareEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationResponse, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, Screenshare, ScreenshareState, SendFilesOptions, SignalClientEvent, SignalStatusEvent, StartBreakoutSessionOptions, StickyReaction, StickyReactionEvent, StreamState, ToggleAudioOnlyModeOptions, UpdateBreakoutSessionOptions, WaitingParticipant, WaitingParticipantState, WherebyClientOptions, YouTubeContentMetadata };
|