@signalwire/js 3.29.2 → 4.0.0-beta.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/base-A5AZTrAd.d.cts +23 -0
- package/dist/base-A5AZTrAd.d.cts.map +1 -0
- package/dist/base-aVtoG8Wk.d.mts +23 -0
- package/dist/base-aVtoG8Wk.d.mts.map +1 -0
- package/dist/browser.mjs +16625 -0
- package/dist/browser.mjs.map +1 -0
- package/dist/browser.umd.js +16646 -0
- package/dist/browser.umd.js.map +1 -0
- package/dist/index.cjs +6210 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2690 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +2690 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6194 -0
- package/dist/index.mjs.map +1 -0
- package/dist/operators/index.cjs +6 -0
- package/dist/operators/index.d.cts +109 -0
- package/dist/operators/index.d.cts.map +1 -0
- package/dist/operators/index.d.mts +109 -0
- package/dist/operators/index.d.mts.map +1 -0
- package/dist/operators/index.mjs +3 -0
- package/dist/operators-BHQMSEzq.mjs +371 -0
- package/dist/operators-BHQMSEzq.mjs.map +1 -0
- package/dist/operators-DT4UB24-.cjs +596 -0
- package/dist/operators-DT4UB24-.cjs.map +1 -0
- package/package.json +73 -37
- package/README.md +0 -40
- package/dist/core/src/BaseClient.d.ts +0 -19
- package/dist/core/src/BaseClient.d.ts.map +0 -1
- package/dist/core/src/BaseComponent.d.ts +0 -101
- package/dist/core/src/BaseComponent.d.ts.map +0 -1
- package/dist/core/src/BaseComponent.test.d.ts +0 -2
- package/dist/core/src/BaseComponent.test.d.ts.map +0 -1
- package/dist/core/src/BaseConsumer.d.ts +0 -18
- package/dist/core/src/BaseConsumer.d.ts.map +0 -1
- package/dist/core/src/BaseConsumer.test.d.ts +0 -2
- package/dist/core/src/BaseConsumer.test.d.ts.map +0 -1
- package/dist/core/src/BaseJWTSession.d.ts +0 -47
- package/dist/core/src/BaseJWTSession.d.ts.map +0 -1
- package/dist/core/src/BaseJWTSession.test.d.ts +0 -2
- package/dist/core/src/BaseJWTSession.test.d.ts.map +0 -1
- package/dist/core/src/BaseSession.d.ts +0 -117
- package/dist/core/src/BaseSession.d.ts.map +0 -1
- package/dist/core/src/BaseSession.test.d.ts +0 -2
- package/dist/core/src/BaseSession.test.d.ts.map +0 -1
- package/dist/core/src/CustomErrors.d.ts +0 -17
- package/dist/core/src/CustomErrors.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCConnect.d.ts +0 -42
- package/dist/core/src/RPCMessages/RPCConnect.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCDisconnect.d.ts +0 -8
- package/dist/core/src/RPCMessages/RPCDisconnect.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCEventAck.d.ts +0 -8
- package/dist/core/src/RPCMessages/RPCEventAck.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCExecute.d.ts +0 -16
- package/dist/core/src/RPCMessages/RPCExecute.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCPing.d.ts +0 -16
- package/dist/core/src/RPCMessages/RPCPing.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCReauthenticate.d.ts +0 -13
- package/dist/core/src/RPCMessages/RPCReauthenticate.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/VertoMessages.d.ts +0 -84
- package/dist/core/src/RPCMessages/VertoMessages.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/helpers.d.ts +0 -31
- package/dist/core/src/RPCMessages/helpers.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/index.d.ts +0 -9
- package/dist/core/src/RPCMessages/index.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/index.test.d.ts +0 -2
- package/dist/core/src/RPCMessages/index.test.d.ts.map +0 -1
- package/dist/core/src/chat/BaseChat.d.ts +0 -23
- package/dist/core/src/chat/BaseChat.d.ts.map +0 -1
- package/dist/core/src/chat/ChatMember.d.ts +0 -15
- package/dist/core/src/chat/ChatMember.d.ts.map +0 -1
- package/dist/core/src/chat/ChatMessage.d.ts +0 -10
- package/dist/core/src/chat/ChatMessage.d.ts.map +0 -1
- package/dist/core/src/chat/applyCommonMethods.d.ts +0 -22
- package/dist/core/src/chat/applyCommonMethods.d.ts.map +0 -1
- package/dist/core/src/chat/index.d.ts +0 -6
- package/dist/core/src/chat/index.d.ts.map +0 -1
- package/dist/core/src/chat/methods.d.ts +0 -31
- package/dist/core/src/chat/methods.d.ts.map +0 -1
- package/dist/core/src/chat/utils/index.d.ts +0 -3
- package/dist/core/src/chat/utils/index.d.ts.map +0 -1
- package/dist/core/src/chat/utils/toInternalChatChannels.d.ts +0 -3
- package/dist/core/src/chat/utils/toInternalChatChannels.d.ts.map +0 -1
- package/dist/core/src/chat/utils/toInternalChatChannels.test.d.ts +0 -2
- package/dist/core/src/chat/utils/toInternalChatChannels.test.d.ts.map +0 -1
- package/dist/core/src/chat/workers/chatWorker.d.ts +0 -4
- package/dist/core/src/chat/workers/chatWorker.d.ts.map +0 -1
- package/dist/core/src/chat/workers/index.d.ts +0 -2
- package/dist/core/src/chat/workers/index.d.ts.map +0 -1
- package/dist/core/src/index.d.ts +0 -45
- package/dist/core/src/index.d.ts.map +0 -1
- package/dist/core/src/index.test.d.ts +0 -1
- package/dist/core/src/index.test.d.ts.map +0 -1
- package/dist/core/src/memberPosition/index.d.ts +0 -2
- package/dist/core/src/memberPosition/index.d.ts.map +0 -1
- package/dist/core/src/memberPosition/workers.d.ts +0 -13
- package/dist/core/src/memberPosition/workers.d.ts.map +0 -1
- package/dist/core/src/memberPosition/workers.test.d.ts +0 -2
- package/dist/core/src/memberPosition/workers.test.d.ts.map +0 -1
- package/dist/core/src/pubSub/BasePubSub.d.ts +0 -43
- package/dist/core/src/pubSub/BasePubSub.d.ts.map +0 -1
- package/dist/core/src/pubSub/PubSubMessage.d.ts +0 -19
- package/dist/core/src/pubSub/PubSubMessage.d.ts.map +0 -1
- package/dist/core/src/pubSub/index.d.ts +0 -3
- package/dist/core/src/pubSub/index.d.ts.map +0 -1
- package/dist/core/src/pubSub/workers/index.d.ts +0 -2
- package/dist/core/src/pubSub/workers/index.d.ts.map +0 -1
- package/dist/core/src/pubSub/workers/pubSubWorker.d.ts +0 -4
- package/dist/core/src/pubSub/workers/pubSubWorker.d.ts.map +0 -1
- package/dist/core/src/redux/actions.d.ts +0 -25
- package/dist/core/src/redux/actions.d.ts.map +0 -1
- package/dist/core/src/redux/connect.d.ts +0 -23
- package/dist/core/src/redux/connect.d.ts.map +0 -1
- package/dist/core/src/redux/connect.test.d.ts +0 -2
- package/dist/core/src/redux/connect.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSaga.d.ts +0 -4
- package/dist/core/src/redux/features/component/componentSaga.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSaga.test.d.ts +0 -2
- package/dist/core/src/redux/features/component/componentSaga.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSelectors.d.ts +0 -7
- package/dist/core/src/redux/features/component/componentSelectors.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSelectors.test.d.ts +0 -2
- package/dist/core/src/redux/features/component/componentSelectors.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSlice.d.ts +0 -2319
- package/dist/core/src/redux/features/component/componentSlice.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSlice.test.d.ts +0 -2
- package/dist/core/src/redux/features/component/componentSlice.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/index.d.ts +0 -3
- package/dist/core/src/redux/features/index.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSaga.d.ts +0 -11
- package/dist/core/src/redux/features/session/sessionSaga.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSelectors.d.ts +0 -9
- package/dist/core/src/redux/features/session/sessionSelectors.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSlice.d.ts +0 -521
- package/dist/core/src/redux/features/session/sessionSlice.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSlice.test.d.ts +0 -2
- package/dist/core/src/redux/features/session/sessionSlice.test.d.ts.map +0 -1
- package/dist/core/src/redux/index.d.ts +0 -31
- package/dist/core/src/redux/index.d.ts.map +0 -1
- package/dist/core/src/redux/interfaces.d.ts +0 -87
- package/dist/core/src/redux/interfaces.d.ts.map +0 -1
- package/dist/core/src/redux/rootReducer.d.ts +0 -457
- package/dist/core/src/redux/rootReducer.d.ts.map +0 -1
- package/dist/core/src/redux/rootSaga.d.ts +0 -40
- package/dist/core/src/redux/rootSaga.d.ts.map +0 -1
- package/dist/core/src/redux/rootSaga.test.d.ts +0 -2
- package/dist/core/src/redux/rootSaga.test.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/configureStore.d.ts +0 -77
- package/dist/core/src/redux/toolkit/configureStore.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/createAction.d.ts +0 -180
- package/dist/core/src/redux/toolkit/createAction.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/createReducer.d.ts +0 -42
- package/dist/core/src/redux/toolkit/createReducer.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/createSlice.d.ts +0 -142
- package/dist/core/src/redux/toolkit/createSlice.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts +0 -185
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts +0 -12
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/index.d.ts +0 -13
- package/dist/core/src/redux/toolkit/index.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts +0 -12
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts +0 -38
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts +0 -51
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/utils.d.ts +0 -11
- package/dist/core/src/redux/toolkit/utils.d.ts.map +0 -1
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts +0 -9
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts.map +0 -1
- package/dist/core/src/redux/utils/createDestroyableSlice.test.d.ts +0 -2
- package/dist/core/src/redux/utils/createDestroyableSlice.test.d.ts.map +0 -1
- package/dist/core/src/redux/utils/sagaHelpers.d.ts +0 -5
- package/dist/core/src/redux/utils/sagaHelpers.d.ts.map +0 -1
- package/dist/core/src/redux/utils/useInstanceMap.d.ts +0 -3
- package/dist/core/src/redux/utils/useInstanceMap.d.ts.map +0 -1
- package/dist/core/src/redux/utils/useSession.d.ts +0 -16
- package/dist/core/src/redux/utils/useSession.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionPlayback.d.ts +0 -40
- package/dist/core/src/rooms/RoomSessionPlayback.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionPlayback.test.d.ts +0 -2
- package/dist/core/src/rooms/RoomSessionPlayback.test.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionRecording.d.ts +0 -30
- package/dist/core/src/rooms/RoomSessionRecording.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionRecording.test.d.ts +0 -2
- package/dist/core/src/rooms/RoomSessionRecording.test.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionStream.d.ts +0 -29
- package/dist/core/src/rooms/RoomSessionStream.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionStream.test.d.ts +0 -2
- package/dist/core/src/rooms/RoomSessionStream.test.d.ts.map +0 -1
- package/dist/core/src/rooms/index.d.ts +0 -11
- package/dist/core/src/rooms/index.d.ts.map +0 -1
- package/dist/core/src/rooms/methods.d.ts +0 -179
- package/dist/core/src/rooms/methods.d.ts.map +0 -1
- package/dist/core/src/rooms/methods.test.d.ts +0 -2
- package/dist/core/src/rooms/methods.test.d.ts.map +0 -1
- package/dist/core/src/setupTests.d.ts +0 -1
- package/dist/core/src/setupTests.d.ts.map +0 -1
- package/dist/core/src/testUtils.d.ts +0 -54
- package/dist/core/src/testUtils.d.ts.map +0 -1
- package/dist/core/src/types/cantina.d.ts +0 -82
- package/dist/core/src/types/cantina.d.ts.map +0 -1
- package/dist/core/src/types/chat.d.ts +0 -270
- package/dist/core/src/types/chat.d.ts.map +0 -1
- package/dist/core/src/types/common.d.ts +0 -34
- package/dist/core/src/types/common.d.ts.map +0 -1
- package/dist/core/src/types/conversation.d.ts +0 -33
- package/dist/core/src/types/conversation.d.ts.map +0 -1
- package/dist/core/src/types/fabric.d.ts +0 -15
- package/dist/core/src/types/fabric.d.ts.map +0 -1
- package/dist/core/src/types/fabricLayout.d.ts +0 -25
- package/dist/core/src/types/fabricLayout.d.ts.map +0 -1
- package/dist/core/src/types/fabricMember.d.ts +0 -148
- package/dist/core/src/types/fabricMember.d.ts.map +0 -1
- package/dist/core/src/types/fabricRoomSession.d.ts +0 -631
- package/dist/core/src/types/fabricRoomSession.d.ts.map +0 -1
- package/dist/core/src/types/index.d.ts +0 -276
- package/dist/core/src/types/index.d.ts.map +0 -1
- package/dist/core/src/types/messaging.d.ts +0 -90
- package/dist/core/src/types/messaging.d.ts.map +0 -1
- package/dist/core/src/types/pubSub.d.ts +0 -123
- package/dist/core/src/types/pubSub.d.ts.map +0 -1
- package/dist/core/src/types/task.d.ts +0 -36
- package/dist/core/src/types/task.d.ts.map +0 -1
- package/dist/core/src/types/utils.d.ts +0 -71
- package/dist/core/src/types/utils.d.ts.map +0 -1
- package/dist/core/src/types/video.d.ts +0 -62
- package/dist/core/src/types/video.d.ts.map +0 -1
- package/dist/core/src/types/videoLayout.d.ts +0 -75
- package/dist/core/src/types/videoLayout.d.ts.map +0 -1
- package/dist/core/src/types/videoMember.d.ts +0 -384
- package/dist/core/src/types/videoMember.d.ts.map +0 -1
- package/dist/core/src/types/videoPlayback.d.ts +0 -123
- package/dist/core/src/types/videoPlayback.d.ts.map +0 -1
- package/dist/core/src/types/videoRecording.d.ts +0 -114
- package/dist/core/src/types/videoRecording.d.ts.map +0 -1
- package/dist/core/src/types/videoRoomDevice.d.ts +0 -23
- package/dist/core/src/types/videoRoomDevice.d.ts.map +0 -1
- package/dist/core/src/types/videoRoomSession.d.ts +0 -921
- package/dist/core/src/types/videoRoomSession.d.ts.map +0 -1
- package/dist/core/src/types/videoStream.d.ts +0 -104
- package/dist/core/src/types/videoStream.d.ts.map +0 -1
- package/dist/core/src/types/voice.d.ts +0 -15
- package/dist/core/src/types/voice.d.ts.map +0 -1
- package/dist/core/src/types/voiceCall.d.ts +0 -253
- package/dist/core/src/types/voiceCall.d.ts.map +0 -1
- package/dist/core/src/types/voiceCollect.d.ts +0 -166
- package/dist/core/src/types/voiceCollect.d.ts.map +0 -1
- package/dist/core/src/types/voiceConnect.d.ts +0 -77
- package/dist/core/src/types/voiceConnect.d.ts.map +0 -1
- package/dist/core/src/types/voiceDetect.d.ts +0 -127
- package/dist/core/src/types/voiceDetect.d.ts.map +0 -1
- package/dist/core/src/types/voicePlayback.d.ts +0 -141
- package/dist/core/src/types/voicePlayback.d.ts.map +0 -1
- package/dist/core/src/types/voicePrompt.d.ts +0 -105
- package/dist/core/src/types/voicePrompt.d.ts.map +0 -1
- package/dist/core/src/types/voiceRecording.d.ts +0 -107
- package/dist/core/src/types/voiceRecording.d.ts.map +0 -1
- package/dist/core/src/types/voiceSendDigits.d.ts +0 -21
- package/dist/core/src/types/voiceSendDigits.d.ts.map +0 -1
- package/dist/core/src/types/voiceTap.d.ts +0 -116
- package/dist/core/src/types/voiceTap.d.ts.map +0 -1
- package/dist/core/src/utils/EventEmitter.d.ts +0 -9
- package/dist/core/src/utils/EventEmitter.d.ts.map +0 -1
- package/dist/core/src/utils/EventEmitter.test.d.ts +0 -2
- package/dist/core/src/utils/EventEmitter.test.d.ts.map +0 -1
- package/dist/core/src/utils/SWCloseEvent.d.ts +0 -18
- package/dist/core/src/utils/SWCloseEvent.d.ts.map +0 -1
- package/dist/core/src/utils/asyncRetry.d.ts +0 -18
- package/dist/core/src/utils/asyncRetry.d.ts.map +0 -1
- package/dist/core/src/utils/asyncRetry.test.d.ts +0 -2
- package/dist/core/src/utils/asyncRetry.test.d.ts.map +0 -1
- package/dist/core/src/utils/common.d.ts +0 -9
- package/dist/core/src/utils/common.d.ts.map +0 -1
- package/dist/core/src/utils/constants.d.ts +0 -44
- package/dist/core/src/utils/constants.d.ts.map +0 -1
- package/dist/core/src/utils/debounce.d.ts +0 -8
- package/dist/core/src/utils/debounce.d.ts.map +0 -1
- package/dist/core/src/utils/eventUtils.d.ts +0 -2
- package/dist/core/src/utils/eventUtils.d.ts.map +0 -1
- package/dist/core/src/utils/extendComponent.d.ts +0 -4
- package/dist/core/src/utils/extendComponent.d.ts.map +0 -1
- package/dist/core/src/utils/extendComponent.test.d.ts +0 -2
- package/dist/core/src/utils/extendComponent.test.d.ts.map +0 -1
- package/dist/core/src/utils/index.d.ts +0 -47
- package/dist/core/src/utils/index.d.ts.map +0 -1
- package/dist/core/src/utils/index.test.d.ts +0 -2
- package/dist/core/src/utils/index.test.d.ts.map +0 -1
- package/dist/core/src/utils/interfaces.d.ts +0 -296
- package/dist/core/src/utils/interfaces.d.ts.map +0 -1
- package/dist/core/src/utils/logger.d.ts +0 -6
- package/dist/core/src/utils/logger.d.ts.map +0 -1
- package/dist/core/src/utils/logger.test.d.ts +0 -2
- package/dist/core/src/utils/logger.test.d.ts.map +0 -1
- package/dist/core/src/utils/parseRPCResponse.d.ts +0 -10
- package/dist/core/src/utils/parseRPCResponse.d.ts.map +0 -1
- package/dist/core/src/utils/parseRPCResponse.test.d.ts +0 -2
- package/dist/core/src/utils/parseRPCResponse.test.d.ts.map +0 -1
- package/dist/core/src/utils/storage/index.d.ts +0 -11
- package/dist/core/src/utils/storage/index.d.ts.map +0 -1
- package/dist/core/src/utils/storage/index.native.d.ts +0 -11
- package/dist/core/src/utils/storage/index.native.d.ts.map +0 -1
- package/dist/core/src/utils/toExternalJSON.d.ts +0 -34
- package/dist/core/src/utils/toExternalJSON.d.ts.map +0 -1
- package/dist/core/src/utils/toExternalJSON.test.d.ts +0 -2
- package/dist/core/src/utils/toExternalJSON.test.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalAction.d.ts +0 -7
- package/dist/core/src/utils/toInternalAction.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalAction.test.d.ts +0 -2
- package/dist/core/src/utils/toInternalAction.test.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalEventName.d.ts +0 -8
- package/dist/core/src/utils/toInternalEventName.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalEventName.test.d.ts +0 -2
- package/dist/core/src/utils/toInternalEventName.test.d.ts.map +0 -1
- package/dist/core/src/utils/toSnakeCaseKeys.d.ts +0 -7
- package/dist/core/src/utils/toSnakeCaseKeys.d.ts.map +0 -1
- package/dist/core/src/utils/toSnakeCaseKeys.test.d.ts +0 -2
- package/dist/core/src/utils/toSnakeCaseKeys.test.d.ts.map +0 -1
- package/dist/core/src/workers/executeActionWorker.d.ts +0 -7
- package/dist/core/src/workers/executeActionWorker.d.ts.map +0 -1
- package/dist/core/src/workers/index.d.ts +0 -2
- package/dist/core/src/workers/index.d.ts.map +0 -1
- package/dist/index.esm.js +0 -4673
- package/dist/index.esm.js.map +0 -7
- package/dist/index.js +0 -4655
- package/dist/index.js.map +0 -7
- package/dist/index.umd.js +0 -31
- package/dist/index.umd.js.map +0 -1
- package/dist/js/src/BaseRoomSession.d.ts +0 -52
- package/dist/js/src/BaseRoomSession.d.ts.map +0 -1
- package/dist/js/src/Client.d.ts +0 -38
- package/dist/js/src/Client.d.ts.map +0 -1
- package/dist/js/src/JWTSession.d.ts +0 -31
- package/dist/js/src/JWTSession.d.ts.map +0 -1
- package/dist/js/src/RoomSessionDevice.d.ts +0 -30
- package/dist/js/src/RoomSessionDevice.d.ts.map +0 -1
- package/dist/js/src/RoomSessionScreenShare.d.ts +0 -26
- package/dist/js/src/RoomSessionScreenShare.d.ts.map +0 -1
- package/dist/js/src/VideoOverlays.d.ts +0 -42
- package/dist/js/src/VideoOverlays.d.ts.map +0 -1
- package/dist/js/src/buildVideoElement.d.ts +0 -18
- package/dist/js/src/buildVideoElement.d.ts.map +0 -1
- package/dist/js/src/cantina/VideoManager.d.ts +0 -16
- package/dist/js/src/cantina/VideoManager.d.ts.map +0 -1
- package/dist/js/src/cantina/index.d.ts +0 -2
- package/dist/js/src/cantina/index.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/index.d.ts +0 -2
- package/dist/js/src/cantina/workers/index.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/videoManagerRoomWorker.d.ts +0 -4
- package/dist/js/src/cantina/workers/videoManagerRoomWorker.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/videoManagerRoomsWorker.d.ts +0 -4
- package/dist/js/src/cantina/workers/videoManagerRoomsWorker.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/videoManagerWorker.d.ts +0 -7
- package/dist/js/src/cantina/workers/videoManagerWorker.d.ts.map +0 -1
- package/dist/js/src/chat/Client.d.ts +0 -46
- package/dist/js/src/chat/Client.d.ts.map +0 -1
- package/dist/js/src/chat/index.d.ts +0 -5
- package/dist/js/src/chat/index.d.ts.map +0 -1
- package/dist/js/src/createClient.d.ts +0 -26
- package/dist/js/src/createClient.d.ts.map +0 -1
- package/dist/js/src/createRoomObject.d.ts +0 -38
- package/dist/js/src/createRoomObject.d.ts.map +0 -1
- package/dist/js/src/fabric/FabricRoomSession.d.ts +0 -80
- package/dist/js/src/fabric/FabricRoomSession.d.ts.map +0 -1
- package/dist/js/src/fabric/FabricRoomSessionMember.d.ts +0 -46
- package/dist/js/src/fabric/FabricRoomSessionMember.d.ts.map +0 -1
- package/dist/js/src/fabric/HTTPClient.d.ts +0 -16
- package/dist/js/src/fabric/HTTPClient.d.ts.map +0 -1
- package/dist/js/src/fabric/IncomingCallManager.d.ts +0 -19
- package/dist/js/src/fabric/IncomingCallManager.d.ts.map +0 -1
- package/dist/js/src/fabric/SATSession.d.ts +0 -25
- package/dist/js/src/fabric/SATSession.d.ts.map +0 -1
- package/dist/js/src/fabric/SignalWire.d.ts +0 -3
- package/dist/js/src/fabric/SignalWire.d.ts.map +0 -1
- package/dist/js/src/fabric/WSClient.d.ts +0 -33
- package/dist/js/src/fabric/WSClient.d.ts.map +0 -1
- package/dist/js/src/fabric/createHttpClient.d.ts +0 -22
- package/dist/js/src/fabric/createHttpClient.d.ts.map +0 -1
- package/dist/js/src/fabric/createWSClient.d.ts +0 -38
- package/dist/js/src/fabric/createWSClient.d.ts.map +0 -1
- package/dist/js/src/fabric/index.d.ts +0 -15
- package/dist/js/src/fabric/index.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/address.d.ts +0 -37
- package/dist/js/src/fabric/interfaces/address.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/capabilities.d.ts +0 -29
- package/dist/js/src/fabric/interfaces/capabilities.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/conversation.d.ts +0 -105
- package/dist/js/src/fabric/interfaces/conversation.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/device.d.ts +0 -18
- package/dist/js/src/fabric/interfaces/device.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/httpClient.d.ts +0 -41
- package/dist/js/src/fabric/interfaces/httpClient.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/incomingCallManager.d.ts +0 -30
- package/dist/js/src/fabric/interfaces/incomingCallManager.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/index.d.ts +0 -71
- package/dist/js/src/fabric/interfaces/index.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/wsClient.d.ts +0 -132
- package/dist/js/src/fabric/interfaces/wsClient.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/capabilitiesHelpers.d.ts +0 -28
- package/dist/js/src/fabric/utils/capabilitiesHelpers.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/constants.d.ts +0 -5
- package/dist/js/src/fabric/utils/constants.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/eventMappers.d.ts +0 -151
- package/dist/js/src/fabric/utils/eventMappers.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/typeGuard.d.ts +0 -6
- package/dist/js/src/fabric/utils/typeGuard.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/validationProxy.d.ts +0 -13
- package/dist/js/src/fabric/utils/validationProxy.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/validators.d.ts +0 -20
- package/dist/js/src/fabric/utils/validators.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/callJoinWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/callJoinWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/callLeftWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/callLeftWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/callSegmentWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/callSegmentWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/fabricMemberWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/fabricMemberWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/fabricWorker.d.ts +0 -7
- package/dist/js/src/fabric/workers/fabricWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/index.d.ts +0 -3
- package/dist/js/src/fabric/workers/index.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/wsClientWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/wsClientWorker.d.ts.map +0 -1
- package/dist/js/src/features/actions.d.ts +0 -2
- package/dist/js/src/features/actions.d.ts.map +0 -1
- package/dist/js/src/features/mediaElements/mediaElementsSagas.d.ts +0 -7
- package/dist/js/src/features/mediaElements/mediaElementsSagas.d.ts.map +0 -1
- package/dist/js/src/index.d.ts +0 -87
- package/dist/js/src/index.d.ts.map +0 -1
- package/dist/js/src/joinRoom.d.ts +0 -24
- package/dist/js/src/joinRoom.d.ts.map +0 -1
- package/dist/js/src/pubSub/Client.d.ts +0 -46
- package/dist/js/src/pubSub/Client.d.ts.map +0 -1
- package/dist/js/src/pubSub/index.d.ts +0 -6
- package/dist/js/src/pubSub/index.d.ts.map +0 -1
- package/dist/js/src/setupTests.d.ts +0 -2
- package/dist/js/src/setupTests.d.ts.map +0 -1
- package/dist/js/src/testUtils.d.ts +0 -77
- package/dist/js/src/testUtils.d.ts.map +0 -1
- package/dist/js/src/utils/CloseEvent.d.ts +0 -7
- package/dist/js/src/utils/CloseEvent.d.ts.map +0 -1
- package/dist/js/src/utils/audioElement.d.ts +0 -6
- package/dist/js/src/utils/audioElement.d.ts.map +0 -1
- package/dist/js/src/utils/constants.d.ts +0 -2
- package/dist/js/src/utils/constants.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/base.d.ts +0 -55
- package/dist/js/src/utils/interfaces/base.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/fabric.d.ts +0 -71
- package/dist/js/src/utils/interfaces/fabric.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/index.d.ts +0 -4
- package/dist/js/src/utils/interfaces/index.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/video.d.ts +0 -307
- package/dist/js/src/utils/interfaces/video.d.ts.map +0 -1
- package/dist/js/src/utils/makeQueryParamsUrl.d.ts +0 -9
- package/dist/js/src/utils/makeQueryParamsUrl.d.ts.map +0 -1
- package/dist/js/src/utils/paginatedResult.d.ts +0 -12
- package/dist/js/src/utils/paginatedResult.d.ts.map +0 -1
- package/dist/js/src/utils/roomSession.d.ts +0 -26
- package/dist/js/src/utils/roomSession.d.ts.map +0 -1
- package/dist/js/src/utils/storage.d.ts +0 -10
- package/dist/js/src/utils/storage.d.ts.map +0 -1
- package/dist/js/src/utils/videoElement.d.ts +0 -35
- package/dist/js/src/utils/videoElement.d.ts.map +0 -1
- package/dist/js/src/video/RoomSession.d.ts +0 -38
- package/dist/js/src/video/RoomSession.d.ts.map +0 -1
- package/dist/js/src/video/VideoRoomSession.d.ts +0 -57
- package/dist/js/src/video/VideoRoomSession.d.ts.map +0 -1
- package/dist/js/src/video/index.d.ts +0 -16
- package/dist/js/src/video/index.d.ts.map +0 -1
- package/dist/js/src/video/workers/childMemberJoinedWorker.d.ts +0 -10
- package/dist/js/src/video/workers/childMemberJoinedWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/index.d.ts +0 -7
- package/dist/js/src/video/workers/index.d.ts.map +0 -1
- package/dist/js/src/video/workers/memberListUpdatedWorker.d.ts +0 -14
- package/dist/js/src/video/workers/memberListUpdatedWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoPlaybackWorker.d.ts +0 -4
- package/dist/js/src/video/workers/videoPlaybackWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoRecordWorker.d.ts +0 -4
- package/dist/js/src/video/workers/videoRecordWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoStreamWorker.d.ts +0 -4
- package/dist/js/src/video/workers/videoStreamWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoWorker.d.ts +0 -7
- package/dist/js/src/video/workers/videoWorker.d.ts.map +0 -1
- package/dist/js/src/webrtc.d.ts +0 -3
- package/dist/js/src/webrtc.d.ts.map +0 -1
- package/dist/js/tsconfig.build.tsbuildinfo +0 -1
- package/dist/webrtc/src/BaseConnection.d.ts +0 -232
- package/dist/webrtc/src/BaseConnection.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeer.d.ts +0 -134
- package/dist/webrtc/src/RTCPeer.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeer.test.d.ts +0 -2
- package/dist/webrtc/src/RTCPeer.test.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeerConnectionManager.d.ts +0 -63
- package/dist/webrtc/src/RTCPeerConnectionManager.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeerConnectionManager.test.d.ts +0 -2
- package/dist/webrtc/src/RTCPeerConnectionManager.test.d.ts.map +0 -1
- package/dist/webrtc/src/connectionPoolManager.d.ts +0 -14
- package/dist/webrtc/src/connectionPoolManager.d.ts.map +0 -1
- package/dist/webrtc/src/index.d.ts +0 -7
- package/dist/webrtc/src/index.d.ts.map +0 -1
- package/dist/webrtc/src/index.test.d.ts +0 -1
- package/dist/webrtc/src/index.test.d.ts.map +0 -1
- package/dist/webrtc/src/setupTests.d.ts +0 -2
- package/dist/webrtc/src/setupTests.d.ts.map +0 -1
- package/dist/webrtc/src/utils/constants.d.ts +0 -7
- package/dist/webrtc/src/utils/constants.d.ts.map +0 -1
- package/dist/webrtc/src/utils/deviceHelpers.d.ts +0 -319
- package/dist/webrtc/src/utils/deviceHelpers.d.ts.map +0 -1
- package/dist/webrtc/src/utils/deviceHelpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/deviceHelpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/utils/enumerateDevices.d.ts +0 -25
- package/dist/webrtc/src/utils/enumerateDevices.d.ts.map +0 -1
- package/dist/webrtc/src/utils/getDisplayMedia.d.ts +0 -17
- package/dist/webrtc/src/utils/getDisplayMedia.d.ts.map +0 -1
- package/dist/webrtc/src/utils/getUserMedia.d.ts +0 -35
- package/dist/webrtc/src/utils/getUserMedia.d.ts.map +0 -1
- package/dist/webrtc/src/utils/helpers.d.ts +0 -18
- package/dist/webrtc/src/utils/helpers.d.ts.map +0 -1
- package/dist/webrtc/src/utils/helpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/helpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/utils/index.d.ts +0 -8
- package/dist/webrtc/src/utils/index.d.ts.map +0 -1
- package/dist/webrtc/src/utils/interfaces.d.ts +0 -139
- package/dist/webrtc/src/utils/interfaces.d.ts.map +0 -1
- package/dist/webrtc/src/utils/mockTracks.d.ts +0 -26
- package/dist/webrtc/src/utils/mockTracks.d.ts.map +0 -1
- package/dist/webrtc/src/utils/permissions.d.ts +0 -48
- package/dist/webrtc/src/utils/permissions.d.ts.map +0 -1
- package/dist/webrtc/src/utils/primitives.d.ts +0 -54
- package/dist/webrtc/src/utils/primitives.d.ts.map +0 -1
- package/dist/webrtc/src/utils/primitives.native.d.ts +0 -36
- package/dist/webrtc/src/utils/primitives.native.d.ts.map +0 -1
- package/dist/webrtc/src/utils/requestPermissions.d.ts +0 -27
- package/dist/webrtc/src/utils/requestPermissions.d.ts.map +0 -1
- package/dist/webrtc/src/utils/sdpHelpers.d.ts +0 -61
- package/dist/webrtc/src/utils/sdpHelpers.d.ts.map +0 -1
- package/dist/webrtc/src/utils/sdpHelpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/sdpHelpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/utils/watchRTCPeerMediaPackets.d.ts +0 -7
- package/dist/webrtc/src/utils/watchRTCPeerMediaPackets.d.ts.map +0 -1
- package/dist/webrtc/src/utils/webrtcHelpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/webrtcHelpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/webrtcMocks.d.ts +0 -110
- package/dist/webrtc/src/webrtcMocks.d.ts.map +0 -1
- package/dist/webrtc/src/workers/connectionPoolWorker.d.ts +0 -7
- package/dist/webrtc/src/workers/connectionPoolWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/index.d.ts +0 -7
- package/dist/webrtc/src/workers/index.d.ts.map +0 -1
- package/dist/webrtc/src/workers/promoteDemoteWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/promoteDemoteWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/roomSubscribedWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/roomSubscribedWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/sessionAuthWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/sessionAuthWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/sessionConnectionPoolWorker.d.ts +0 -7
- package/dist/webrtc/src/workers/sessionConnectionPoolWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/vertoEventWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/vertoEventWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/vertoEventWorker.test.d.ts +0 -2
- package/dist/webrtc/src/workers/vertoEventWorker.test.d.ts.map +0 -1
- package/src/BaseRoomSession.ts +0 -302
- package/src/Client.ts +0 -193
- package/src/JWTSession.test.ts +0 -60
- package/src/JWTSession.ts +0 -146
- package/src/RoomSessionDevice.test.ts +0 -25
- package/src/RoomSessionDevice.ts +0 -62
- package/src/RoomSessionScreenShare.test.ts +0 -25
- package/src/RoomSessionScreenShare.ts +0 -58
- package/src/VideoOverlays.ts +0 -171
- package/src/buildVideoElement.test.ts +0 -933
- package/src/buildVideoElement.ts +0 -290
- package/src/cantina/VideoManager.test.ts +0 -95
- package/src/cantina/VideoManager.ts +0 -72
- package/src/cantina/index.ts +0 -1
- package/src/cantina/workers/index.ts +0 -1
- package/src/cantina/workers/videoManagerRoomWorker.ts +0 -28
- package/src/cantina/workers/videoManagerRoomsWorker.ts +0 -34
- package/src/cantina/workers/videoManagerWorker.ts +0 -64
- package/src/chat/Client.test.ts +0 -688
- package/src/chat/Client.ts +0 -94
- package/src/chat/index.ts +0 -31
- package/src/createClient.test.ts +0 -124
- package/src/createClient.ts +0 -48
- package/src/createRoomObject.ts +0 -149
- package/src/fabric/FabricRoomSession.test.ts +0 -695
- package/src/fabric/FabricRoomSession.ts +0 -446
- package/src/fabric/FabricRoomSessionMember.ts +0 -188
- package/src/fabric/HTTPClient.test.ts +0 -28
- package/src/fabric/HTTPClient.ts +0 -154
- package/src/fabric/IncomingCallManager.test.ts +0 -295
- package/src/fabric/IncomingCallManager.ts +0 -92
- package/src/fabric/SATSession.test.ts +0 -65
- package/src/fabric/SATSession.ts +0 -102
- package/src/fabric/SignalWire.test.ts +0 -115
- package/src/fabric/SignalWire.ts +0 -101
- package/src/fabric/WSClient.ts +0 -430
- package/src/fabric/createHttpClient.ts +0 -188
- package/src/fabric/createWSClient.ts +0 -12
- package/src/fabric/index.ts +0 -30
- package/src/fabric/interfaces/address.ts +0 -46
- package/src/fabric/interfaces/capabilities.ts +0 -30
- package/src/fabric/interfaces/conversation.ts +0 -145
- package/src/fabric/interfaces/device.ts +0 -21
- package/src/fabric/interfaces/httpClient.ts +0 -50
- package/src/fabric/interfaces/incomingCallManager.ts +0 -36
- package/src/fabric/interfaces/index.ts +0 -118
- package/src/fabric/interfaces/wsClient.ts +0 -154
- package/src/fabric/utils/capabilitiesHelpers.test.ts +0 -201
- package/src/fabric/utils/capabilitiesHelpers.ts +0 -208
- package/src/fabric/utils/constants.ts +0 -4
- package/src/fabric/utils/eventMappers.ts +0 -184
- package/src/fabric/utils/typeGuard.ts +0 -31
- package/src/fabric/utils/validationProxy.ts +0 -83
- package/src/fabric/utils/validators.ts +0 -242
- package/src/fabric/workers/callJoinWorker.ts +0 -88
- package/src/fabric/workers/callLeftWorker.ts +0 -32
- package/src/fabric/workers/callSegmentWorker.ts +0 -154
- package/src/fabric/workers/fabricMemberWorker.ts +0 -62
- package/src/fabric/workers/fabricWorker.ts +0 -100
- package/src/fabric/workers/index.ts +0 -2
- package/src/fabric/workers/wsClientWorker.ts +0 -60
- package/src/features/actions.ts +0 -5
- package/src/features/mediaElements/mediaElementsSagas.ts +0 -129
- package/src/index.test.ts +0 -5
- package/src/index.ts +0 -153
- package/src/joinRoom.ts +0 -29
- package/src/pubSub/Client.test.ts +0 -245
- package/src/pubSub/Client.ts +0 -90
- package/src/pubSub/index.ts +0 -10
- package/src/setupTests.ts +0 -122
- package/src/testUtils.ts +0 -259
- package/src/utils/CloseEvent.ts +0 -6
- package/src/utils/audioElement.ts +0 -21
- package/src/utils/constants.ts +0 -7
- package/src/utils/interfaces/base.ts +0 -55
- package/src/utils/interfaces/fabric.ts +0 -156
- package/src/utils/interfaces/index.ts +0 -3
- package/src/utils/interfaces/video.ts +0 -440
- package/src/utils/makeQueryParamsUrl.ts +0 -14
- package/src/utils/paginatedResult.ts +0 -35
- package/src/utils/roomSession.test.ts +0 -140
- package/src/utils/roomSession.ts +0 -85
- package/src/utils/storage.test.ts +0 -24
- package/src/utils/storage.ts +0 -37
- package/src/utils/videoElement.ts +0 -342
- package/src/video/RoomSession.test.ts +0 -31
- package/src/video/RoomSession.ts +0 -290
- package/src/video/VideoRoomSession.test.ts +0 -672
- package/src/video/VideoRoomSession.ts +0 -304
- package/src/video/index.ts +0 -43
- package/src/video/workers/childMemberJoinedWorker.test.ts +0 -99
- package/src/video/workers/childMemberJoinedWorker.ts +0 -75
- package/src/video/workers/index.ts +0 -6
- package/src/video/workers/memberListUpdatedWorker.ts +0 -217
- package/src/video/workers/videoPlaybackWorker.ts +0 -54
- package/src/video/workers/videoRecordWorker.ts +0 -54
- package/src/video/workers/videoStreamWorker.ts +0 -48
- package/src/video/workers/videoWorker.ts +0 -113
- package/src/webrtc.ts +0 -33
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FabricAction,
|
|
3
|
-
CallJoinedEvent,
|
|
4
|
-
SDKActions,
|
|
5
|
-
SagaIterator,
|
|
6
|
-
getLogger,
|
|
7
|
-
sagaEffects,
|
|
8
|
-
} from '@signalwire/core'
|
|
9
|
-
import { callLeftWorker } from './callLeftWorker'
|
|
10
|
-
import { callJoinWorker } from './callJoinWorker'
|
|
11
|
-
import { FabricWorkerParams } from './fabricWorker'
|
|
12
|
-
import {
|
|
13
|
-
mapFabricLayoutActionToVideoLayoutAction,
|
|
14
|
-
mapFabricMemberActionToVideoMemberJoinAndLeftAction,
|
|
15
|
-
mapFabricMemberActionToVideoMemberUpdatedAction,
|
|
16
|
-
} from '../utils/eventMappers'
|
|
17
|
-
import { fabricMemberWorker } from './fabricMemberWorker'
|
|
18
|
-
|
|
19
|
-
export const callSegmentWorker = function* (
|
|
20
|
-
options: FabricWorkerParams<CallJoinedEvent>
|
|
21
|
-
): SagaIterator {
|
|
22
|
-
const {
|
|
23
|
-
action,
|
|
24
|
-
channels: { swEventChannel },
|
|
25
|
-
instance: cfRoomSession,
|
|
26
|
-
} = options
|
|
27
|
-
const segmentCallId = action.payload.call_id
|
|
28
|
-
const segmentRooSessionId = action.payload.room_session_id
|
|
29
|
-
|
|
30
|
-
getLogger().debug(
|
|
31
|
-
`callSegmentWorker started for: callId ${segmentCallId}, roomSessionId ${segmentRooSessionId}`
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
// Handles the `call.joined` event before the worker loop
|
|
35
|
-
yield sagaEffects.fork(callJoinWorker, {
|
|
36
|
-
...options,
|
|
37
|
-
action,
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
function* worker(action: FabricAction) {
|
|
41
|
-
const { type, payload } = action
|
|
42
|
-
|
|
43
|
-
switch (type) {
|
|
44
|
-
case 'call.joined':
|
|
45
|
-
/** NOOP since this event is handled by the {@link fabricWorker} */
|
|
46
|
-
break
|
|
47
|
-
case 'call.left':
|
|
48
|
-
// Wait for the `callLeftWorker` to finish and then stop this particular segment worker
|
|
49
|
-
yield sagaEffects.call(callLeftWorker, {
|
|
50
|
-
...options,
|
|
51
|
-
action,
|
|
52
|
-
})
|
|
53
|
-
return true
|
|
54
|
-
case 'call.updated':
|
|
55
|
-
cfRoomSession.emit(type, payload)
|
|
56
|
-
cfRoomSession.emit('room.updated', payload)
|
|
57
|
-
break
|
|
58
|
-
case 'call.play':
|
|
59
|
-
cfRoomSession.emit(type, payload)
|
|
60
|
-
break
|
|
61
|
-
case 'call.connect':
|
|
62
|
-
cfRoomSession.emit(type, payload)
|
|
63
|
-
break
|
|
64
|
-
case 'call.room':
|
|
65
|
-
cfRoomSession.emit(type, payload)
|
|
66
|
-
break
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The Core module includes a generic worker, {@link memberPositionWorker},
|
|
70
|
-
* which listens for member & layout events to add a "current_position" parameter
|
|
71
|
-
* and handle member "updated" parameter.
|
|
72
|
-
* This worker in CF SDK is initialized by the {@link callJoinWorker} worker.
|
|
73
|
-
*
|
|
74
|
-
* To ensure compatibility, we map these events to Video SDK events and
|
|
75
|
-
* re-publish them on the channel so that they can be processed by the
|
|
76
|
-
* generic worker. Note that the generic worker only dispatches "member.updated"
|
|
77
|
-
* and "member.updated.*" events.
|
|
78
|
-
*
|
|
79
|
-
* Additionally, the "member.joined" event is monitored by another worker,
|
|
80
|
-
* {@link childMemberJoinedWorker}, specifically for the screen share API.
|
|
81
|
-
*/
|
|
82
|
-
case 'member.joined':
|
|
83
|
-
case 'member.left': {
|
|
84
|
-
yield sagaEffects.fork(fabricMemberWorker, {
|
|
85
|
-
...options,
|
|
86
|
-
action,
|
|
87
|
-
})
|
|
88
|
-
const videoAction =
|
|
89
|
-
mapFabricMemberActionToVideoMemberJoinAndLeftAction(action)
|
|
90
|
-
yield sagaEffects.put(swEventChannel, videoAction)
|
|
91
|
-
break
|
|
92
|
-
}
|
|
93
|
-
case 'member.updated': {
|
|
94
|
-
const videoAction =
|
|
95
|
-
mapFabricMemberActionToVideoMemberUpdatedAction(action)
|
|
96
|
-
yield sagaEffects.put(swEventChannel, videoAction)
|
|
97
|
-
break
|
|
98
|
-
}
|
|
99
|
-
case 'layout.changed': {
|
|
100
|
-
// We need to update the layout event which is needed for rootElement.
|
|
101
|
-
cfRoomSession.currentLayoutEvent = action.payload
|
|
102
|
-
cfRoomSession.emit(type, payload)
|
|
103
|
-
const videoAction = mapFabricLayoutActionToVideoLayoutAction(action)
|
|
104
|
-
yield sagaEffects.put(swEventChannel, videoAction)
|
|
105
|
-
break
|
|
106
|
-
}
|
|
107
|
-
case 'member.talking': {
|
|
108
|
-
yield sagaEffects.fork(fabricMemberWorker, {
|
|
109
|
-
...options,
|
|
110
|
-
action,
|
|
111
|
-
})
|
|
112
|
-
break
|
|
113
|
-
}
|
|
114
|
-
default: {
|
|
115
|
-
getLogger().warn('Got an unknown fabric event', action)
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return false
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const isSegmentEvent = (action: SDKActions) => {
|
|
123
|
-
const { type, payload } = action as FabricAction
|
|
124
|
-
const shouldWatch =
|
|
125
|
-
type.startsWith('call.') ||
|
|
126
|
-
type.startsWith('member.') ||
|
|
127
|
-
type.startsWith('layout.')
|
|
128
|
-
const hasSegmentCallId =
|
|
129
|
-
'call_id' in payload && segmentCallId === payload.call_id
|
|
130
|
-
const hasSegmentRoomSessionId =
|
|
131
|
-
segmentRooSessionId === payload.room_session_id
|
|
132
|
-
|
|
133
|
-
if (shouldWatch && (hasSegmentCallId || hasSegmentRoomSessionId)) {
|
|
134
|
-
return true
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return false
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
while (true) {
|
|
141
|
-
const action: FabricAction = yield sagaEffects.take(
|
|
142
|
-
swEventChannel,
|
|
143
|
-
isSegmentEvent
|
|
144
|
-
)
|
|
145
|
-
const task = yield sagaEffects.fork(worker, action)
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Wait for `worker` to finish and get its return value
|
|
149
|
-
* Stop the `callSegmentWorker' if the returned value is true
|
|
150
|
-
*/
|
|
151
|
-
const shouldStop = yield sagaEffects.join(task)
|
|
152
|
-
if (shouldStop) return
|
|
153
|
-
}
|
|
154
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FabricMemberEvent,
|
|
3
|
-
FabricMemberUpdatedEventParams,
|
|
4
|
-
MemberUpdatedEventNames,
|
|
5
|
-
SagaIterator,
|
|
6
|
-
fromSnakeToCamelCase,
|
|
7
|
-
getLogger,
|
|
8
|
-
} from '@signalwire/core'
|
|
9
|
-
import { FabricWorkerParams } from './fabricWorker'
|
|
10
|
-
import {
|
|
11
|
-
createFabricRoomSessionMemberObject,
|
|
12
|
-
FabricRoomSessionMember,
|
|
13
|
-
} from '../FabricRoomSessionMember'
|
|
14
|
-
|
|
15
|
-
export const fabricMemberWorker = function* (
|
|
16
|
-
options: FabricWorkerParams<FabricMemberEvent>
|
|
17
|
-
): SagaIterator {
|
|
18
|
-
getLogger().trace('fabricMemberWorker started')
|
|
19
|
-
const {
|
|
20
|
-
instance: roomSession,
|
|
21
|
-
action: { type, payload },
|
|
22
|
-
instanceMap: { get, set, remove },
|
|
23
|
-
} = options
|
|
24
|
-
|
|
25
|
-
const memberId = payload.member.member_id
|
|
26
|
-
let memberInstance = get<FabricRoomSessionMember>(memberId)
|
|
27
|
-
if (!memberInstance && type !== 'member.talking') {
|
|
28
|
-
memberInstance = createFabricRoomSessionMemberObject({
|
|
29
|
-
store: roomSession.store,
|
|
30
|
-
payload: payload,
|
|
31
|
-
})
|
|
32
|
-
}
|
|
33
|
-
if (memberInstance) {
|
|
34
|
-
memberInstance.setPayload(payload)
|
|
35
|
-
}
|
|
36
|
-
set<FabricRoomSessionMember>(memberId, memberInstance)
|
|
37
|
-
|
|
38
|
-
if (type.startsWith('member.updated.')) {
|
|
39
|
-
const clientType = fromSnakeToCamelCase(type) as MemberUpdatedEventNames
|
|
40
|
-
roomSession.emit(clientType, payload as FabricMemberUpdatedEventParams)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
switch (type) {
|
|
44
|
-
case 'member.joined':
|
|
45
|
-
roomSession.emit(type, payload)
|
|
46
|
-
break
|
|
47
|
-
case 'member.updated':
|
|
48
|
-
roomSession.emit(type, payload)
|
|
49
|
-
break
|
|
50
|
-
case 'member.left':
|
|
51
|
-
roomSession.emit(type, payload)
|
|
52
|
-
remove<FabricRoomSessionMember>(memberId)
|
|
53
|
-
break
|
|
54
|
-
case 'member.talking':
|
|
55
|
-
roomSession.emit(type, payload)
|
|
56
|
-
break
|
|
57
|
-
default:
|
|
58
|
-
break
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
getLogger().trace('fabricMemberWorker ended')
|
|
62
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SDKWorker,
|
|
3
|
-
SagaIterator,
|
|
4
|
-
getLogger,
|
|
5
|
-
sagaEffects,
|
|
6
|
-
SDKWorkerParams,
|
|
7
|
-
SDKActions,
|
|
8
|
-
FabricAction,
|
|
9
|
-
MapToPubSubShape,
|
|
10
|
-
} from '@signalwire/core'
|
|
11
|
-
import { FabricRoomSessionConnection } from '../FabricRoomSession'
|
|
12
|
-
import { createFabricRoomSessionMemberObject } from '../FabricRoomSessionMember'
|
|
13
|
-
import { callSegmentWorker } from './callSegmentWorker'
|
|
14
|
-
|
|
15
|
-
export type FabricWorkerParams<T> =
|
|
16
|
-
SDKWorkerParams<FabricRoomSessionConnection> & {
|
|
17
|
-
action: MapToPubSubShape<T>
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const fabricWorker: SDKWorker<FabricRoomSessionConnection> = function* (
|
|
21
|
-
options
|
|
22
|
-
): SagaIterator {
|
|
23
|
-
getLogger().trace('fabricWorker started')
|
|
24
|
-
const {
|
|
25
|
-
channels: { swEventChannel },
|
|
26
|
-
instance: cfRoomSession,
|
|
27
|
-
} = options
|
|
28
|
-
|
|
29
|
-
function* worker(action: FabricAction) {
|
|
30
|
-
const { type, payload } = action
|
|
31
|
-
|
|
32
|
-
switch (type) {
|
|
33
|
-
case 'call.joined': {
|
|
34
|
-
// since we depend on `cfRoomSession.selfMember` on the take logic
|
|
35
|
-
// we need to make sure we update the `cfRoomSession.selfMember`
|
|
36
|
-
// in this worker or have a race condition.
|
|
37
|
-
if (!cfRoomSession.selfMember) {
|
|
38
|
-
const memberInstance = createFabricRoomSessionMemberObject({
|
|
39
|
-
store: cfRoomSession.store,
|
|
40
|
-
payload: {
|
|
41
|
-
member: action.payload.room_session.members.find(
|
|
42
|
-
(m) => m.member_id === action.payload.member_id
|
|
43
|
-
)!,
|
|
44
|
-
room_id: action.payload.room_id,
|
|
45
|
-
room_session_id: action.payload.room_session_id,
|
|
46
|
-
},
|
|
47
|
-
})
|
|
48
|
-
cfRoomSession.selfMember = memberInstance
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Segment worker for each call_id
|
|
52
|
-
yield sagaEffects.fork(callSegmentWorker, {
|
|
53
|
-
...options,
|
|
54
|
-
instance: cfRoomSession,
|
|
55
|
-
action,
|
|
56
|
-
})
|
|
57
|
-
break
|
|
58
|
-
}
|
|
59
|
-
case 'call.state':
|
|
60
|
-
cfRoomSession.emit(type, payload)
|
|
61
|
-
break
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
let firstCallJoinedReceived = false
|
|
66
|
-
const isFirstCallJoinedorCallStateEvent = (action: SDKActions) => {
|
|
67
|
-
if (action.type === 'call.state') {
|
|
68
|
-
return true
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (action.type !== 'call.joined') {
|
|
72
|
-
return false
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// If this is the first call.joined event, verify the call origin ID
|
|
76
|
-
if (!firstCallJoinedReceived) {
|
|
77
|
-
const callId = action.payload.call_id
|
|
78
|
-
const originCallId = action.payload.origin_call_id
|
|
79
|
-
if (callId === originCallId) {
|
|
80
|
-
firstCallJoinedReceived = true
|
|
81
|
-
return true
|
|
82
|
-
}
|
|
83
|
-
return false // Discard all the call.joined event until the first call.joined is received
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// If first call.joined event already received, only check the action type
|
|
87
|
-
return true
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
while (true) {
|
|
91
|
-
const action: FabricAction = yield sagaEffects.take(
|
|
92
|
-
swEventChannel,
|
|
93
|
-
isFirstCallJoinedorCallStateEvent
|
|
94
|
-
)
|
|
95
|
-
|
|
96
|
-
yield sagaEffects.fork(worker, action)
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
getLogger().trace('fabricWorker ended')
|
|
100
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getLogger,
|
|
3
|
-
sagaEffects,
|
|
4
|
-
SagaIterator,
|
|
5
|
-
SDKWorker,
|
|
6
|
-
SDKActions,
|
|
7
|
-
MapToPubSubShape,
|
|
8
|
-
WebRTCMessageParams,
|
|
9
|
-
} from '@signalwire/core'
|
|
10
|
-
import { WSClient } from '../WSClient'
|
|
11
|
-
|
|
12
|
-
export const wsClientWorker: SDKWorker<WSClient> = function* (
|
|
13
|
-
options
|
|
14
|
-
): SagaIterator {
|
|
15
|
-
getLogger().debug('wsClientWorker started')
|
|
16
|
-
const { channels, initialState, instance: client } = options
|
|
17
|
-
const { swEventChannel } = channels
|
|
18
|
-
const { handleIncomingInvite } = initialState
|
|
19
|
-
|
|
20
|
-
function* fireHoseWorker(action: SDKActions) {
|
|
21
|
-
// @ts-expect-error Emit all events - This is for internal usage
|
|
22
|
-
client.emit(action.type, action.payload)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function* vertoInviteWorker(action: MapToPubSubShape<WebRTCMessageParams>) {
|
|
26
|
-
// Invoke WSClient function to build and answer the invite
|
|
27
|
-
handleIncomingInvite(action.payload.params)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const isVertoInvite = (action: SDKActions) => {
|
|
31
|
-
if (action.type === 'webrtc.message') {
|
|
32
|
-
return action.payload.method === 'verto.invite'
|
|
33
|
-
}
|
|
34
|
-
return false
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
try {
|
|
38
|
-
while (true) {
|
|
39
|
-
// Take all actions from the channel
|
|
40
|
-
const action: SDKActions = yield sagaEffects.take(
|
|
41
|
-
swEventChannel,
|
|
42
|
-
() => true
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
// Fire all the events with fireHoseWorker
|
|
46
|
-
yield sagaEffects.fork(fireHoseWorker, action)
|
|
47
|
-
|
|
48
|
-
// If the event is verto.invite, handle that with vertoInviteWorker
|
|
49
|
-
if (isVertoInvite(action)) {
|
|
50
|
-
getLogger().debug('Receiving a call over WebSocket', action)
|
|
51
|
-
yield sagaEffects.fork(
|
|
52
|
-
vertoInviteWorker,
|
|
53
|
-
action as MapToPubSubShape<WebRTCMessageParams>
|
|
54
|
-
)
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
} finally {
|
|
58
|
-
getLogger().trace('wsClientWorker ended')
|
|
59
|
-
}
|
|
60
|
-
}
|
package/src/features/actions.ts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getLogger,
|
|
3
|
-
CustomSagaParams,
|
|
4
|
-
actions,
|
|
5
|
-
sagaEffects,
|
|
6
|
-
LOCAL_EVENT_PREFIX,
|
|
7
|
-
} from '@signalwire/core'
|
|
8
|
-
import type { SagaIterator, Task } from '@signalwire/core'
|
|
9
|
-
import { setMediaElementSinkId } from '@signalwire/webrtc'
|
|
10
|
-
import { setAudioMediaTrack } from '../../utils/audioElement'
|
|
11
|
-
import { audioSetSpeakerAction } from '../actions'
|
|
12
|
-
import { VideoRoomSessionConnection } from '../../video/VideoRoomSession'
|
|
13
|
-
|
|
14
|
-
export const makeAudioElementSaga = ({ speakerId }: { speakerId?: string }) => {
|
|
15
|
-
return function* audioElementSaga({
|
|
16
|
-
instance: room,
|
|
17
|
-
runSaga,
|
|
18
|
-
}: CustomSagaParams<VideoRoomSessionConnection>): SagaIterator {
|
|
19
|
-
if (typeof Audio === 'undefined') {
|
|
20
|
-
getLogger().warn('`Audio` is not supported on this environment.')
|
|
21
|
-
return
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
const audioEl = room.getAudioEl()
|
|
26
|
-
let audioTask: Task | undefined
|
|
27
|
-
|
|
28
|
-
const trackHandler = function (event: RTCTrackEvent) {
|
|
29
|
-
switch (event.track.kind) {
|
|
30
|
-
case 'audio': {
|
|
31
|
-
audioTask = runSaga(audioElementSetupWorker, {
|
|
32
|
-
track: event.track,
|
|
33
|
-
element: audioEl,
|
|
34
|
-
speakerId,
|
|
35
|
-
room,
|
|
36
|
-
})
|
|
37
|
-
break
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Using `on` instead of `once` (or `off` within trackHandler) because
|
|
43
|
-
* there are cases (promote/demote) where we need to handle multiple `track`
|
|
44
|
-
* events and update the audioEl with the new track.
|
|
45
|
-
*/
|
|
46
|
-
room.on('track', trackHandler)
|
|
47
|
-
|
|
48
|
-
room.once('destroy', () => {
|
|
49
|
-
audioTask?.cancel()
|
|
50
|
-
})
|
|
51
|
-
} catch (error) {
|
|
52
|
-
getLogger().error('audioElementSaga', error)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function* audioElementActionsWatcher({
|
|
58
|
-
element,
|
|
59
|
-
room,
|
|
60
|
-
}: {
|
|
61
|
-
element: HTMLAudioElement
|
|
62
|
-
room: VideoRoomSessionConnection
|
|
63
|
-
}): SagaIterator {
|
|
64
|
-
// TODO: For now we're handling individual actions but in the future
|
|
65
|
-
// we might want to have a single action per custom saga and use it
|
|
66
|
-
// in a similar fashion to `executeAction`
|
|
67
|
-
const setSpeakerActionType = actions.getCustomSagaActionType(
|
|
68
|
-
room.__uuid,
|
|
69
|
-
audioSetSpeakerAction
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
while (true) {
|
|
73
|
-
const action = yield sagaEffects.take([setSpeakerActionType])
|
|
74
|
-
|
|
75
|
-
try {
|
|
76
|
-
switch (action.type) {
|
|
77
|
-
case setSpeakerActionType:
|
|
78
|
-
const response = yield sagaEffects.call(
|
|
79
|
-
setMediaElementSinkId,
|
|
80
|
-
element,
|
|
81
|
-
action.payload
|
|
82
|
-
)
|
|
83
|
-
|
|
84
|
-
room.emit(
|
|
85
|
-
// @ts-expect-error
|
|
86
|
-
`${LOCAL_EVENT_PREFIX}.speaker.updated`,
|
|
87
|
-
action.payload
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
room.settleCustomSagaTrigger({
|
|
91
|
-
dispatchId: action.dispatchId,
|
|
92
|
-
payload: response,
|
|
93
|
-
kind: 'resolve',
|
|
94
|
-
})
|
|
95
|
-
break
|
|
96
|
-
}
|
|
97
|
-
} catch (error) {
|
|
98
|
-
room.settleCustomSagaTrigger({
|
|
99
|
-
dispatchId: action.dispatchId,
|
|
100
|
-
payload: error,
|
|
101
|
-
kind: 'reject',
|
|
102
|
-
})
|
|
103
|
-
getLogger().error(error)
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function* audioElementSetupWorker({
|
|
109
|
-
track,
|
|
110
|
-
element,
|
|
111
|
-
speakerId,
|
|
112
|
-
room,
|
|
113
|
-
}: {
|
|
114
|
-
track: MediaStreamTrack
|
|
115
|
-
element: HTMLAudioElement
|
|
116
|
-
speakerId?: string
|
|
117
|
-
room: VideoRoomSessionConnection
|
|
118
|
-
}): SagaIterator {
|
|
119
|
-
setAudioMediaTrack({ track, element })
|
|
120
|
-
if (speakerId) {
|
|
121
|
-
// Catch no-op since setMediaElementSinkId already provides logs
|
|
122
|
-
setMediaElementSinkId(element, speakerId).catch(() => {})
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
yield sagaEffects.fork(audioElementActionsWatcher, {
|
|
126
|
-
element,
|
|
127
|
-
room,
|
|
128
|
-
})
|
|
129
|
-
}
|
package/src/index.test.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Welcome to the technical documentation for the JavaScript SDK.
|
|
3
|
-
*
|
|
4
|
-
* At the outer level, when you import the SignalWire JS library you get access
|
|
5
|
-
* to three different namespaces:
|
|
6
|
-
*
|
|
7
|
-
* - {@link Video}
|
|
8
|
-
* - {@link Chat}
|
|
9
|
-
* - {@link WebRTC}
|
|
10
|
-
*
|
|
11
|
-
* Video gives you access to the classes and methods that let you
|
|
12
|
-
* interface with the backend Video APIs. Chat gives you access to the classes and functions that you need to create a real-time chat application. WebRTC
|
|
13
|
-
* contains several functions that are useful for interacting with the hardware of the user's device.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* Don't know where to start? Create an instance of
|
|
17
|
-
* {@link Video.RoomSession} to join a room, use the {@link Chat.Client} constructor to start a chat application, or take a look at [Getting Started
|
|
18
|
-
* with the SignalWire Video
|
|
19
|
-
* API](https://developer.signalwire.com/apis/docs/getting-started-with-the-signalwire-video-api-1).
|
|
20
|
-
*
|
|
21
|
-
* @module
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
import type {
|
|
25
|
-
VideoRoomSessionEventNames,
|
|
26
|
-
RoomStarted,
|
|
27
|
-
RoomSubscribed,
|
|
28
|
-
RoomUpdated,
|
|
29
|
-
RoomEnded,
|
|
30
|
-
VideoMemberEntity,
|
|
31
|
-
} from '@signalwire/core'
|
|
32
|
-
|
|
33
|
-
/** @ignore @deprecated */
|
|
34
|
-
export type RoomStartedEventName = RoomStarted
|
|
35
|
-
/** @ignore @deprecated */
|
|
36
|
-
export type RoomEndedEventName = RoomEnded
|
|
37
|
-
/** @ignore @deprecated */
|
|
38
|
-
export type RoomSubscribedEventName = RoomSubscribed
|
|
39
|
-
/** @ignore @deprecated */
|
|
40
|
-
export type RoomUpdatedEventName = RoomUpdated
|
|
41
|
-
/** @ignore @deprecated */
|
|
42
|
-
export type RoomEvent = VideoRoomSessionEventNames
|
|
43
|
-
/** @ignore @deprecated */
|
|
44
|
-
export type RoomMember = VideoMemberEntity & { type: 'member' }
|
|
45
|
-
/** @ignore @deprecated */
|
|
46
|
-
export type RoomScreenShare = VideoMemberEntity & { type: 'screen' }
|
|
47
|
-
/** @ignore @deprecated */
|
|
48
|
-
export type RoomDevice = VideoMemberEntity & { type: 'device' }
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The Chat namespace contains the classes and functions that you need to
|
|
52
|
-
* create a real-time chat application.
|
|
53
|
-
*/
|
|
54
|
-
export * as Chat from './chat'
|
|
55
|
-
|
|
56
|
-
export * as PubSub from './pubSub'
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* The Fabric namespace contains the classes and functions that you need to
|
|
60
|
-
* create a unified communication application that includes Audio/Video calling
|
|
61
|
-
* with Chat/Messaging capabilties.
|
|
62
|
-
*/
|
|
63
|
-
export * as Fabric from './fabric'
|
|
64
|
-
export { SignalWire } from './fabric'
|
|
65
|
-
export * from './fabric'
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* The Video namespace contains the classes and functions that you need to
|
|
69
|
-
* create a video conferencing application.
|
|
70
|
-
*/
|
|
71
|
-
export * as Video from './video'
|
|
72
|
-
export { VideoRoomSession } from './video'
|
|
73
|
-
export { RoomSessionScreenShare } from './RoomSessionScreenShare'
|
|
74
|
-
export { RoomSessionDevice } from './RoomSessionDevice'
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The WebRTC namespace includes functions that give you access to the input and
|
|
78
|
-
* output media devices available on the user's machine. For example, you can
|
|
79
|
-
* use these functions to request permission and get access to the media stream
|
|
80
|
-
* from a webcam, from a microphone, or from a screen sharing.
|
|
81
|
-
*/
|
|
82
|
-
export * as WebRTC from './webrtc'
|
|
83
|
-
|
|
84
|
-
export type {
|
|
85
|
-
BaseComponentOptions,
|
|
86
|
-
BaseConnectionState,
|
|
87
|
-
ClientEvents,
|
|
88
|
-
EmitterContract,
|
|
89
|
-
RTCTrackEventName,
|
|
90
|
-
UserOptions,
|
|
91
|
-
SessionStatus,
|
|
92
|
-
SessionEvents,
|
|
93
|
-
VideoLayout,
|
|
94
|
-
InternalVideoLayout,
|
|
95
|
-
VideoLayoutEventNames,
|
|
96
|
-
VideoLayoutChangedEventParams,
|
|
97
|
-
VideoRoomSessionEventNames,
|
|
98
|
-
VideoRoomEventParams,
|
|
99
|
-
VideoRoomSubscribedEventParams,
|
|
100
|
-
VideoMemberEntity,
|
|
101
|
-
VideoMemberEventNames,
|
|
102
|
-
MemberTalkingEventNames,
|
|
103
|
-
VideoMemberTalkingEventParams,
|
|
104
|
-
InternalVideoMemberEntity,
|
|
105
|
-
InternalVideoLayoutLayer,
|
|
106
|
-
VideoPosition,
|
|
107
|
-
VideoPositions,
|
|
108
|
-
/**
|
|
109
|
-
* Call Fabric types
|
|
110
|
-
*/
|
|
111
|
-
CallUpdatedEventParams,
|
|
112
|
-
CallLeftEventParams,
|
|
113
|
-
CallStateEventParams,
|
|
114
|
-
CallPlayEventParams,
|
|
115
|
-
CallConnectEventParams,
|
|
116
|
-
CallRoomEventParams,
|
|
117
|
-
FabricRoomEventParams,
|
|
118
|
-
FabricLayoutChangedEventParams,
|
|
119
|
-
FabricMemberJoinedEventParams,
|
|
120
|
-
FabricMemberUpdatedEventParams,
|
|
121
|
-
FabricMemberLeftEventParams,
|
|
122
|
-
FabricMemberTalkingEventParams,
|
|
123
|
-
FabricMemberEventParams,
|
|
124
|
-
FabricMemberEntity,
|
|
125
|
-
InternalFabricMemberEntity,
|
|
126
|
-
ConversationMessageEventName,
|
|
127
|
-
ConversationMessageEvent,
|
|
128
|
-
ConversationEventParams,
|
|
129
|
-
ConversationEvent,
|
|
130
|
-
SetAudioFlagsParams,
|
|
131
|
-
} from '@signalwire/core'
|
|
132
|
-
|
|
133
|
-
export type {
|
|
134
|
-
BaseConnectionOptions,
|
|
135
|
-
ConnectionOptions,
|
|
136
|
-
} from '@signalwire/webrtc'
|
|
137
|
-
|
|
138
|
-
export type {
|
|
139
|
-
CallJoinedEventParams,
|
|
140
|
-
RoomSessionObjectEventsHandlerMap,
|
|
141
|
-
RoomSessionObjectEvents,
|
|
142
|
-
// Just to keep backwards compatibility.
|
|
143
|
-
RoomSessionObjectEventsHandlerMap as RoomObjectEventsHandlerMap,
|
|
144
|
-
RoomSessionObjectEvents as RoomObjectEvents,
|
|
145
|
-
RoomEventNames,
|
|
146
|
-
StartScreenShareOptions,
|
|
147
|
-
} from './utils/interfaces'
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Build Video Element
|
|
151
|
-
*/
|
|
152
|
-
export { buildVideoElement } from './buildVideoElement'
|
|
153
|
-
export { LocalVideoOverlay, OverlayMap, UserOverlay } from './VideoOverlays'
|
package/src/joinRoom.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CreateRoomObjectOptions, createRoomObject } from './createRoomObject'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Using Video.joinRoom() you can automatically join a room.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* With an HTMLDivElement with id="root" in the DOM.
|
|
8
|
-
* ```js
|
|
9
|
-
* // <div id="root"></div>
|
|
10
|
-
*
|
|
11
|
-
* try {
|
|
12
|
-
* const roomObj = await Video.joinRoom({
|
|
13
|
-
* token: '<YourJWT>',
|
|
14
|
-
* rootElementId: 'root',
|
|
15
|
-
* })
|
|
16
|
-
*
|
|
17
|
-
* // You have joined the room..
|
|
18
|
-
* } catch (error) {
|
|
19
|
-
* console.error('Error', error)
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
22
|
-
* @deprecated Use {@link RoomSession} instead.
|
|
23
|
-
*/
|
|
24
|
-
export const joinRoom = (roomOptions: CreateRoomObjectOptions) => {
|
|
25
|
-
return createRoomObject({
|
|
26
|
-
...roomOptions,
|
|
27
|
-
autoJoin: true,
|
|
28
|
-
})
|
|
29
|
-
}
|