@whereby.com/core 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +25 -5
- package/dist/index.d.cts +58 -2
- package/dist/index.d.mts +58 -2
- package/dist/index.d.ts +58 -2
- package/dist/index.mjs +24 -6
- package/package.json +1 -10
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ const createReactor = (selectors, callback) => {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const coreVersion = "0.
|
|
48
|
+
const coreVersion = "0.11.1";
|
|
49
49
|
|
|
50
50
|
const initialState$d = {
|
|
51
51
|
isNodeSdk: false,
|
|
@@ -84,6 +84,7 @@ function createSignalEventAction(name) {
|
|
|
84
84
|
}
|
|
85
85
|
const signalEvents = {
|
|
86
86
|
audioEnabled: createSignalEventAction("audioEnabled"),
|
|
87
|
+
audioEnableRequested: createSignalEventAction("audioEnableRequested"),
|
|
87
88
|
chatMessage: createSignalEventAction("chatMessage"),
|
|
88
89
|
clientLeft: createSignalEventAction("clientLeft"),
|
|
89
90
|
clientKicked: createSignalEventAction("clientKicked"),
|
|
@@ -199,6 +200,7 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
199
200
|
socket.on("client_kicked", (payload) => dispatch(signalEvents.clientKicked(payload)));
|
|
200
201
|
socket.on("audio_enabled", (payload) => dispatch(signalEvents.audioEnabled(payload)));
|
|
201
202
|
socket.on("video_enabled", (payload) => dispatch(signalEvents.videoEnabled(payload)));
|
|
203
|
+
socket.on("audio_enable_requested", (payload) => dispatch(signalEvents.audioEnableRequested(payload)));
|
|
202
204
|
socket.on("client_metadata_received", (payload) => dispatch(signalEvents.clientMetadataReceived(payload)));
|
|
203
205
|
socket.on("chat_message", (payload) => dispatch(signalEvents.chatMessage(payload)));
|
|
204
206
|
socket.on("disconnect", () => dispatch(signalEvents.disconnect()));
|
|
@@ -880,6 +882,15 @@ startAppListening({
|
|
|
880
882
|
dispatch(localStreamMetadataUpdated(deviceData));
|
|
881
883
|
},
|
|
882
884
|
});
|
|
885
|
+
startAppListening({
|
|
886
|
+
actionCreator: signalEvents.audioEnableRequested,
|
|
887
|
+
effect: ({ payload }, { dispatch }) => {
|
|
888
|
+
const { enable } = payload;
|
|
889
|
+
if (!enable) {
|
|
890
|
+
dispatch(toggleMicrophoneEnabled({ enabled: false }));
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
});
|
|
883
894
|
|
|
884
895
|
const initialState$a = {
|
|
885
896
|
displayName: "",
|
|
@@ -966,6 +977,7 @@ startAppListening({
|
|
|
966
977
|
|
|
967
978
|
const ACTION_PERMISSIONS_BY_ROLE = {
|
|
968
979
|
canLockRoom: ["host"],
|
|
980
|
+
canRequestAudioEnable: ["host"],
|
|
969
981
|
};
|
|
970
982
|
const initialState$9 = {
|
|
971
983
|
roomKey: null,
|
|
@@ -1005,6 +1017,7 @@ const doLockRoom = createAppAuthorizedThunk((state) => selectIsAuthorizedToLockR
|
|
|
1005
1017
|
const selectAuthorizationRoomKey = (state) => state.authorization.roomKey;
|
|
1006
1018
|
const selectAuthorizationRoomLocked = (state) => state.authorization.roomLocked;
|
|
1007
1019
|
const selectIsAuthorizedToLockRoom = toolkit.createSelector(selectLocalParticipantRole, (localParticipantRole) => ACTION_PERMISSIONS_BY_ROLE.canLockRoom.includes(localParticipantRole));
|
|
1020
|
+
const selectIsAuthorizedToRequestAudioEnable = toolkit.createSelector(selectLocalParticipantRole, (localParticipantRole) => ACTION_PERMISSIONS_BY_ROLE.canRequestAudioEnable.includes(localParticipantRole));
|
|
1008
1021
|
|
|
1009
1022
|
const initialState$8 = {
|
|
1010
1023
|
chatMessages: [],
|
|
@@ -1403,15 +1416,20 @@ const remoteParticipantsSlice = toolkit.createSlice({
|
|
|
1403
1416
|
},
|
|
1404
1417
|
});
|
|
1405
1418
|
const { participantStreamAdded, participantStreamIdAdded, streamStatusUpdated } = remoteParticipantsSlice.actions;
|
|
1419
|
+
const doRequestAudioEnable = createAppAuthorizedThunk((state) => selectIsAuthorizedToRequestAudioEnable(state), (payload) => (_, getState) => {
|
|
1420
|
+
const state = getState();
|
|
1421
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1422
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("request_audio_enable", payload);
|
|
1423
|
+
});
|
|
1406
1424
|
const selectRemoteParticipantsRaw = (state) => state.remoteParticipants;
|
|
1407
1425
|
const selectRemoteParticipants = (state) => state.remoteParticipants.remoteParticipants;
|
|
1408
1426
|
const selectScreenshares = toolkit.createSelector(selectLocalScreenshareStream, selectRemoteParticipants, (localScreenshareStream, remoteParticipants) => {
|
|
1409
1427
|
const screenshares = [];
|
|
1410
1428
|
if (localScreenshareStream) {
|
|
1411
1429
|
screenshares.push({
|
|
1412
|
-
id: localScreenshareStream.id,
|
|
1430
|
+
id: localScreenshareStream.id || "local-screenshare",
|
|
1413
1431
|
participantId: "local",
|
|
1414
|
-
hasAudioTrack: localScreenshareStream.
|
|
1432
|
+
hasAudioTrack: localScreenshareStream.getTracks().some((track) => track.kind === "audio"),
|
|
1415
1433
|
stream: localScreenshareStream,
|
|
1416
1434
|
isLocal: true,
|
|
1417
1435
|
});
|
|
@@ -1419,9 +1437,9 @@ const selectScreenshares = toolkit.createSelector(selectLocalScreenshareStream,
|
|
|
1419
1437
|
for (const participant of remoteParticipants) {
|
|
1420
1438
|
if (participant.presentationStream) {
|
|
1421
1439
|
screenshares.push({
|
|
1422
|
-
id: participant.presentationStream.id
|
|
1440
|
+
id: participant.presentationStream.id || `pres-${participant.id}`,
|
|
1423
1441
|
participantId: participant.id,
|
|
1424
|
-
hasAudioTrack: participant.presentationStream.
|
|
1442
|
+
hasAudioTrack: participant.presentationStream.getTracks().some((track) => track.kind === "audio"),
|
|
1425
1443
|
stream: participant.presentationStream,
|
|
1426
1444
|
isLocal: false,
|
|
1427
1445
|
});
|
|
@@ -3193,6 +3211,7 @@ exports.doKnockRoom = doKnockRoom;
|
|
|
3193
3211
|
exports.doLockRoom = doLockRoom;
|
|
3194
3212
|
exports.doOrganizationFetch = doOrganizationFetch;
|
|
3195
3213
|
exports.doRejectWaitingParticipant = doRejectWaitingParticipant;
|
|
3214
|
+
exports.doRequestAudioEnable = doRequestAudioEnable;
|
|
3196
3215
|
exports.doRtcAnalyticsCustomEventsInitialize = doRtcAnalyticsCustomEventsInitialize;
|
|
3197
3216
|
exports.doRtcManagerCreated = doRtcManagerCreated;
|
|
3198
3217
|
exports.doRtcManagerInitialize = doRtcManagerInitialize;
|
|
@@ -3270,6 +3289,7 @@ exports.selectDeviceId = selectDeviceId;
|
|
|
3270
3289
|
exports.selectHasFetchedDeviceCredentials = selectHasFetchedDeviceCredentials;
|
|
3271
3290
|
exports.selectIsAcceptingStreams = selectIsAcceptingStreams;
|
|
3272
3291
|
exports.selectIsAuthorizedToLockRoom = selectIsAuthorizedToLockRoom;
|
|
3292
|
+
exports.selectIsAuthorizedToRequestAudioEnable = selectIsAuthorizedToRequestAudioEnable;
|
|
3273
3293
|
exports.selectIsCameraEnabled = selectIsCameraEnabled;
|
|
3274
3294
|
exports.selectIsCloudRecording = selectIsCloudRecording;
|
|
3275
3295
|
exports.selectIsLocalMediaStarting = selectIsLocalMediaStarting;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
|
|
|
3
3
|
import * as redux_thunk from 'redux-thunk';
|
|
4
4
|
import * as redux from 'redux';
|
|
5
5
|
import * as _whereby_com_media from '@whereby.com/media';
|
|
6
|
-
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
6
|
+
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
7
7
|
import * as reselect from 'reselect';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
9
|
import { AxiosRequestConfig } from 'axios';
|
|
@@ -597,6 +597,61 @@ declare const selectIsAuthorizedToLockRoom: ((state: {
|
|
|
597
597
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
598
598
|
memoize: typeof reselect.weakMapMemoize;
|
|
599
599
|
};
|
|
600
|
+
declare const selectIsAuthorizedToRequestAudioEnable: ((state: {
|
|
601
|
+
app: AppState;
|
|
602
|
+
authorization: AuthorizationState;
|
|
603
|
+
chat: ChatState;
|
|
604
|
+
cloudRecording: CloudRecordingState;
|
|
605
|
+
deviceCredentials: DeviceCredentialsState;
|
|
606
|
+
localMedia: LocalMediaState;
|
|
607
|
+
localParticipant: LocalParticipantState;
|
|
608
|
+
localScreenshare: LocalScreenshareState;
|
|
609
|
+
organization: OrganizationState;
|
|
610
|
+
remoteParticipants: RemoteParticipantState;
|
|
611
|
+
roomConnection: RoomConnectionState;
|
|
612
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
613
|
+
rtcConnection: RtcConnectionState;
|
|
614
|
+
signalConnection: SignalConnectionState;
|
|
615
|
+
streaming: StreamingState;
|
|
616
|
+
waitingParticipants: WaitingParticipantsState;
|
|
617
|
+
}) => boolean) & {
|
|
618
|
+
clearCache: () => void;
|
|
619
|
+
resultsCount: () => number;
|
|
620
|
+
resetResultsCount: () => void;
|
|
621
|
+
} & {
|
|
622
|
+
resultFunc: (resultFuncArgs_0: RoleName) => boolean;
|
|
623
|
+
memoizedResultFunc: ((resultFuncArgs_0: RoleName) => boolean) & {
|
|
624
|
+
clearCache: () => void;
|
|
625
|
+
resultsCount: () => number;
|
|
626
|
+
resetResultsCount: () => void;
|
|
627
|
+
};
|
|
628
|
+
lastResult: () => boolean;
|
|
629
|
+
dependencies: [(state: {
|
|
630
|
+
app: AppState;
|
|
631
|
+
authorization: AuthorizationState;
|
|
632
|
+
chat: ChatState;
|
|
633
|
+
cloudRecording: CloudRecordingState;
|
|
634
|
+
deviceCredentials: DeviceCredentialsState;
|
|
635
|
+
localMedia: LocalMediaState;
|
|
636
|
+
localParticipant: LocalParticipantState;
|
|
637
|
+
localScreenshare: LocalScreenshareState;
|
|
638
|
+
organization: OrganizationState;
|
|
639
|
+
remoteParticipants: RemoteParticipantState;
|
|
640
|
+
roomConnection: RoomConnectionState;
|
|
641
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
642
|
+
rtcConnection: RtcConnectionState;
|
|
643
|
+
signalConnection: SignalConnectionState;
|
|
644
|
+
streaming: StreamingState;
|
|
645
|
+
waitingParticipants: WaitingParticipantsState;
|
|
646
|
+
}) => RoleName];
|
|
647
|
+
recomputations: () => number;
|
|
648
|
+
resetRecomputations: () => void;
|
|
649
|
+
dependencyRecomputations: () => number;
|
|
650
|
+
resetDependencyRecomputations: () => void;
|
|
651
|
+
} & {
|
|
652
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
653
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
654
|
+
};
|
|
600
655
|
|
|
601
656
|
type HttpClientRequestConfig = AxiosRequestConfig | {
|
|
602
657
|
[key: string]: unknown;
|
|
@@ -2672,6 +2727,7 @@ declare const participantStreamIdAdded: _reduxjs_toolkit.ActionCreatorWithPayloa
|
|
|
2672
2727
|
streamId: string;
|
|
2673
2728
|
}, "remoteParticipants/participantStreamIdAdded">;
|
|
2674
2729
|
declare const streamStatusUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<StreamStatusUpdate[], "remoteParticipants/streamStatusUpdated">;
|
|
2730
|
+
declare const doRequestAudioEnable: (args: AudioEnableRequest) => AppThunk<void>;
|
|
2675
2731
|
declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipantState;
|
|
2676
2732
|
declare const selectRemoteParticipants: (state: RootState) => RemoteParticipant[];
|
|
2677
2733
|
declare const selectScreenshares: ((state: {
|
|
@@ -5423,4 +5479,4 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
|
|
|
5423
5479
|
|
|
5424
5480
|
declare function parseUnverifiedRoomKeyData(roomKey: string): any;
|
|
5425
5481
|
|
|
5426
|
-
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
|
5482
|
+
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
|
|
|
3
3
|
import * as redux_thunk from 'redux-thunk';
|
|
4
4
|
import * as redux from 'redux';
|
|
5
5
|
import * as _whereby_com_media from '@whereby.com/media';
|
|
6
|
-
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
6
|
+
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
7
7
|
import * as reselect from 'reselect';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
9
|
import { AxiosRequestConfig } from 'axios';
|
|
@@ -597,6 +597,61 @@ declare const selectIsAuthorizedToLockRoom: ((state: {
|
|
|
597
597
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
598
598
|
memoize: typeof reselect.weakMapMemoize;
|
|
599
599
|
};
|
|
600
|
+
declare const selectIsAuthorizedToRequestAudioEnable: ((state: {
|
|
601
|
+
app: AppState;
|
|
602
|
+
authorization: AuthorizationState;
|
|
603
|
+
chat: ChatState;
|
|
604
|
+
cloudRecording: CloudRecordingState;
|
|
605
|
+
deviceCredentials: DeviceCredentialsState;
|
|
606
|
+
localMedia: LocalMediaState;
|
|
607
|
+
localParticipant: LocalParticipantState;
|
|
608
|
+
localScreenshare: LocalScreenshareState;
|
|
609
|
+
organization: OrganizationState;
|
|
610
|
+
remoteParticipants: RemoteParticipantState;
|
|
611
|
+
roomConnection: RoomConnectionState;
|
|
612
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
613
|
+
rtcConnection: RtcConnectionState;
|
|
614
|
+
signalConnection: SignalConnectionState;
|
|
615
|
+
streaming: StreamingState;
|
|
616
|
+
waitingParticipants: WaitingParticipantsState;
|
|
617
|
+
}) => boolean) & {
|
|
618
|
+
clearCache: () => void;
|
|
619
|
+
resultsCount: () => number;
|
|
620
|
+
resetResultsCount: () => void;
|
|
621
|
+
} & {
|
|
622
|
+
resultFunc: (resultFuncArgs_0: RoleName) => boolean;
|
|
623
|
+
memoizedResultFunc: ((resultFuncArgs_0: RoleName) => boolean) & {
|
|
624
|
+
clearCache: () => void;
|
|
625
|
+
resultsCount: () => number;
|
|
626
|
+
resetResultsCount: () => void;
|
|
627
|
+
};
|
|
628
|
+
lastResult: () => boolean;
|
|
629
|
+
dependencies: [(state: {
|
|
630
|
+
app: AppState;
|
|
631
|
+
authorization: AuthorizationState;
|
|
632
|
+
chat: ChatState;
|
|
633
|
+
cloudRecording: CloudRecordingState;
|
|
634
|
+
deviceCredentials: DeviceCredentialsState;
|
|
635
|
+
localMedia: LocalMediaState;
|
|
636
|
+
localParticipant: LocalParticipantState;
|
|
637
|
+
localScreenshare: LocalScreenshareState;
|
|
638
|
+
organization: OrganizationState;
|
|
639
|
+
remoteParticipants: RemoteParticipantState;
|
|
640
|
+
roomConnection: RoomConnectionState;
|
|
641
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
642
|
+
rtcConnection: RtcConnectionState;
|
|
643
|
+
signalConnection: SignalConnectionState;
|
|
644
|
+
streaming: StreamingState;
|
|
645
|
+
waitingParticipants: WaitingParticipantsState;
|
|
646
|
+
}) => RoleName];
|
|
647
|
+
recomputations: () => number;
|
|
648
|
+
resetRecomputations: () => void;
|
|
649
|
+
dependencyRecomputations: () => number;
|
|
650
|
+
resetDependencyRecomputations: () => void;
|
|
651
|
+
} & {
|
|
652
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
653
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
654
|
+
};
|
|
600
655
|
|
|
601
656
|
type HttpClientRequestConfig = AxiosRequestConfig | {
|
|
602
657
|
[key: string]: unknown;
|
|
@@ -2672,6 +2727,7 @@ declare const participantStreamIdAdded: _reduxjs_toolkit.ActionCreatorWithPayloa
|
|
|
2672
2727
|
streamId: string;
|
|
2673
2728
|
}, "remoteParticipants/participantStreamIdAdded">;
|
|
2674
2729
|
declare const streamStatusUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<StreamStatusUpdate[], "remoteParticipants/streamStatusUpdated">;
|
|
2730
|
+
declare const doRequestAudioEnable: (args: AudioEnableRequest) => AppThunk<void>;
|
|
2675
2731
|
declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipantState;
|
|
2676
2732
|
declare const selectRemoteParticipants: (state: RootState) => RemoteParticipant[];
|
|
2677
2733
|
declare const selectScreenshares: ((state: {
|
|
@@ -5423,4 +5479,4 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
|
|
|
5423
5479
|
|
|
5424
5480
|
declare function parseUnverifiedRoomKeyData(roomKey: string): any;
|
|
5425
5481
|
|
|
5426
|
-
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
|
5482
|
+
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
|
|
|
3
3
|
import * as redux_thunk from 'redux-thunk';
|
|
4
4
|
import * as redux from 'redux';
|
|
5
5
|
import * as _whereby_com_media from '@whereby.com/media';
|
|
6
|
-
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
6
|
+
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
7
7
|
import * as reselect from 'reselect';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
9
|
import { AxiosRequestConfig } from 'axios';
|
|
@@ -597,6 +597,61 @@ declare const selectIsAuthorizedToLockRoom: ((state: {
|
|
|
597
597
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
598
598
|
memoize: typeof reselect.weakMapMemoize;
|
|
599
599
|
};
|
|
600
|
+
declare const selectIsAuthorizedToRequestAudioEnable: ((state: {
|
|
601
|
+
app: AppState;
|
|
602
|
+
authorization: AuthorizationState;
|
|
603
|
+
chat: ChatState;
|
|
604
|
+
cloudRecording: CloudRecordingState;
|
|
605
|
+
deviceCredentials: DeviceCredentialsState;
|
|
606
|
+
localMedia: LocalMediaState;
|
|
607
|
+
localParticipant: LocalParticipantState;
|
|
608
|
+
localScreenshare: LocalScreenshareState;
|
|
609
|
+
organization: OrganizationState;
|
|
610
|
+
remoteParticipants: RemoteParticipantState;
|
|
611
|
+
roomConnection: RoomConnectionState;
|
|
612
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
613
|
+
rtcConnection: RtcConnectionState;
|
|
614
|
+
signalConnection: SignalConnectionState;
|
|
615
|
+
streaming: StreamingState;
|
|
616
|
+
waitingParticipants: WaitingParticipantsState;
|
|
617
|
+
}) => boolean) & {
|
|
618
|
+
clearCache: () => void;
|
|
619
|
+
resultsCount: () => number;
|
|
620
|
+
resetResultsCount: () => void;
|
|
621
|
+
} & {
|
|
622
|
+
resultFunc: (resultFuncArgs_0: RoleName) => boolean;
|
|
623
|
+
memoizedResultFunc: ((resultFuncArgs_0: RoleName) => boolean) & {
|
|
624
|
+
clearCache: () => void;
|
|
625
|
+
resultsCount: () => number;
|
|
626
|
+
resetResultsCount: () => void;
|
|
627
|
+
};
|
|
628
|
+
lastResult: () => boolean;
|
|
629
|
+
dependencies: [(state: {
|
|
630
|
+
app: AppState;
|
|
631
|
+
authorization: AuthorizationState;
|
|
632
|
+
chat: ChatState;
|
|
633
|
+
cloudRecording: CloudRecordingState;
|
|
634
|
+
deviceCredentials: DeviceCredentialsState;
|
|
635
|
+
localMedia: LocalMediaState;
|
|
636
|
+
localParticipant: LocalParticipantState;
|
|
637
|
+
localScreenshare: LocalScreenshareState;
|
|
638
|
+
organization: OrganizationState;
|
|
639
|
+
remoteParticipants: RemoteParticipantState;
|
|
640
|
+
roomConnection: RoomConnectionState;
|
|
641
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
642
|
+
rtcConnection: RtcConnectionState;
|
|
643
|
+
signalConnection: SignalConnectionState;
|
|
644
|
+
streaming: StreamingState;
|
|
645
|
+
waitingParticipants: WaitingParticipantsState;
|
|
646
|
+
}) => RoleName];
|
|
647
|
+
recomputations: () => number;
|
|
648
|
+
resetRecomputations: () => void;
|
|
649
|
+
dependencyRecomputations: () => number;
|
|
650
|
+
resetDependencyRecomputations: () => void;
|
|
651
|
+
} & {
|
|
652
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
653
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
654
|
+
};
|
|
600
655
|
|
|
601
656
|
type HttpClientRequestConfig = AxiosRequestConfig | {
|
|
602
657
|
[key: string]: unknown;
|
|
@@ -2672,6 +2727,7 @@ declare const participantStreamIdAdded: _reduxjs_toolkit.ActionCreatorWithPayloa
|
|
|
2672
2727
|
streamId: string;
|
|
2673
2728
|
}, "remoteParticipants/participantStreamIdAdded">;
|
|
2674
2729
|
declare const streamStatusUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<StreamStatusUpdate[], "remoteParticipants/streamStatusUpdated">;
|
|
2730
|
+
declare const doRequestAudioEnable: (args: AudioEnableRequest) => AppThunk<void>;
|
|
2675
2731
|
declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipantState;
|
|
2676
2732
|
declare const selectRemoteParticipants: (state: RootState) => RemoteParticipant[];
|
|
2677
2733
|
declare const selectScreenshares: ((state: {
|
|
@@ -5423,4 +5479,4 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
|
|
|
5423
5479
|
|
|
5424
5480
|
declare function parseUnverifiedRoomKeyData(roomKey: string): any;
|
|
5425
5481
|
|
|
5426
|
-
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
|
5482
|
+
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ const createReactor = (selectors, callback) => {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const coreVersion = "0.
|
|
46
|
+
const coreVersion = "0.11.1";
|
|
47
47
|
|
|
48
48
|
const initialState$d = {
|
|
49
49
|
isNodeSdk: false,
|
|
@@ -82,6 +82,7 @@ function createSignalEventAction(name) {
|
|
|
82
82
|
}
|
|
83
83
|
const signalEvents = {
|
|
84
84
|
audioEnabled: createSignalEventAction("audioEnabled"),
|
|
85
|
+
audioEnableRequested: createSignalEventAction("audioEnableRequested"),
|
|
85
86
|
chatMessage: createSignalEventAction("chatMessage"),
|
|
86
87
|
clientLeft: createSignalEventAction("clientLeft"),
|
|
87
88
|
clientKicked: createSignalEventAction("clientKicked"),
|
|
@@ -197,6 +198,7 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
197
198
|
socket.on("client_kicked", (payload) => dispatch(signalEvents.clientKicked(payload)));
|
|
198
199
|
socket.on("audio_enabled", (payload) => dispatch(signalEvents.audioEnabled(payload)));
|
|
199
200
|
socket.on("video_enabled", (payload) => dispatch(signalEvents.videoEnabled(payload)));
|
|
201
|
+
socket.on("audio_enable_requested", (payload) => dispatch(signalEvents.audioEnableRequested(payload)));
|
|
200
202
|
socket.on("client_metadata_received", (payload) => dispatch(signalEvents.clientMetadataReceived(payload)));
|
|
201
203
|
socket.on("chat_message", (payload) => dispatch(signalEvents.chatMessage(payload)));
|
|
202
204
|
socket.on("disconnect", () => dispatch(signalEvents.disconnect()));
|
|
@@ -878,6 +880,15 @@ startAppListening({
|
|
|
878
880
|
dispatch(localStreamMetadataUpdated(deviceData));
|
|
879
881
|
},
|
|
880
882
|
});
|
|
883
|
+
startAppListening({
|
|
884
|
+
actionCreator: signalEvents.audioEnableRequested,
|
|
885
|
+
effect: ({ payload }, { dispatch }) => {
|
|
886
|
+
const { enable } = payload;
|
|
887
|
+
if (!enable) {
|
|
888
|
+
dispatch(toggleMicrophoneEnabled({ enabled: false }));
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
});
|
|
881
892
|
|
|
882
893
|
const initialState$a = {
|
|
883
894
|
displayName: "",
|
|
@@ -964,6 +975,7 @@ startAppListening({
|
|
|
964
975
|
|
|
965
976
|
const ACTION_PERMISSIONS_BY_ROLE = {
|
|
966
977
|
canLockRoom: ["host"],
|
|
978
|
+
canRequestAudioEnable: ["host"],
|
|
967
979
|
};
|
|
968
980
|
const initialState$9 = {
|
|
969
981
|
roomKey: null,
|
|
@@ -1003,6 +1015,7 @@ const doLockRoom = createAppAuthorizedThunk((state) => selectIsAuthorizedToLockR
|
|
|
1003
1015
|
const selectAuthorizationRoomKey = (state) => state.authorization.roomKey;
|
|
1004
1016
|
const selectAuthorizationRoomLocked = (state) => state.authorization.roomLocked;
|
|
1005
1017
|
const selectIsAuthorizedToLockRoom = createSelector(selectLocalParticipantRole, (localParticipantRole) => ACTION_PERMISSIONS_BY_ROLE.canLockRoom.includes(localParticipantRole));
|
|
1018
|
+
const selectIsAuthorizedToRequestAudioEnable = createSelector(selectLocalParticipantRole, (localParticipantRole) => ACTION_PERMISSIONS_BY_ROLE.canRequestAudioEnable.includes(localParticipantRole));
|
|
1006
1019
|
|
|
1007
1020
|
const initialState$8 = {
|
|
1008
1021
|
chatMessages: [],
|
|
@@ -1401,15 +1414,20 @@ const remoteParticipantsSlice = createSlice({
|
|
|
1401
1414
|
},
|
|
1402
1415
|
});
|
|
1403
1416
|
const { participantStreamAdded, participantStreamIdAdded, streamStatusUpdated } = remoteParticipantsSlice.actions;
|
|
1417
|
+
const doRequestAudioEnable = createAppAuthorizedThunk((state) => selectIsAuthorizedToRequestAudioEnable(state), (payload) => (_, getState) => {
|
|
1418
|
+
const state = getState();
|
|
1419
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1420
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("request_audio_enable", payload);
|
|
1421
|
+
});
|
|
1404
1422
|
const selectRemoteParticipantsRaw = (state) => state.remoteParticipants;
|
|
1405
1423
|
const selectRemoteParticipants = (state) => state.remoteParticipants.remoteParticipants;
|
|
1406
1424
|
const selectScreenshares = createSelector(selectLocalScreenshareStream, selectRemoteParticipants, (localScreenshareStream, remoteParticipants) => {
|
|
1407
1425
|
const screenshares = [];
|
|
1408
1426
|
if (localScreenshareStream) {
|
|
1409
1427
|
screenshares.push({
|
|
1410
|
-
id: localScreenshareStream.id,
|
|
1428
|
+
id: localScreenshareStream.id || "local-screenshare",
|
|
1411
1429
|
participantId: "local",
|
|
1412
|
-
hasAudioTrack: localScreenshareStream.
|
|
1430
|
+
hasAudioTrack: localScreenshareStream.getTracks().some((track) => track.kind === "audio"),
|
|
1413
1431
|
stream: localScreenshareStream,
|
|
1414
1432
|
isLocal: true,
|
|
1415
1433
|
});
|
|
@@ -1417,9 +1435,9 @@ const selectScreenshares = createSelector(selectLocalScreenshareStream, selectRe
|
|
|
1417
1435
|
for (const participant of remoteParticipants) {
|
|
1418
1436
|
if (participant.presentationStream) {
|
|
1419
1437
|
screenshares.push({
|
|
1420
|
-
id: participant.presentationStream.id
|
|
1438
|
+
id: participant.presentationStream.id || `pres-${participant.id}`,
|
|
1421
1439
|
participantId: participant.id,
|
|
1422
|
-
hasAudioTrack: participant.presentationStream.
|
|
1440
|
+
hasAudioTrack: participant.presentationStream.getTracks().some((track) => track.kind === "audio"),
|
|
1423
1441
|
stream: participant.presentationStream,
|
|
1424
1442
|
isLocal: false,
|
|
1425
1443
|
});
|
|
@@ -3150,4 +3168,4 @@ function createServices() {
|
|
|
3150
3168
|
};
|
|
3151
3169
|
}
|
|
3152
3170
|
|
|
3153
|
-
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
|
3171
|
+
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@whereby.com/core",
|
|
3
3
|
"description": "Core library for whereby.com sdk",
|
|
4
4
|
"author": "Whereby AS",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.11.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "rimraf dist && rollup -c rollup.config.js",
|
|
@@ -38,21 +38,12 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
42
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
43
|
-
"@rollup/plugin-replace": "^5.0.5",
|
|
44
41
|
"@types/btoa": "^1.2.3",
|
|
45
42
|
"@types/node": "^20.11.19",
|
|
46
43
|
"@types/uuid": "^9.0.7",
|
|
47
44
|
"deep-object-diff": "^1.1.9",
|
|
48
45
|
"dotenv": "^16.4.5",
|
|
49
46
|
"dotenv-run-script": "^0.4.1",
|
|
50
|
-
"rimraf": "^5.0.5",
|
|
51
|
-
"rollup": "^4.12.0",
|
|
52
|
-
"rollup-plugin-dts": "^6.1.0",
|
|
53
|
-
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
54
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
55
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
56
47
|
"tslib": "^2.4.1",
|
|
57
48
|
"uuid": "^9.0.1",
|
|
58
49
|
"yalc": "^1.0.0-pre.53"
|