mediasfu-shared 1.0.1 → 1.0.2
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/LICENSE +21 -21
- package/README.md +103 -222
- package/dist/index.cjs +7500 -2163
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4203 -273
- package/dist/index.js +7521 -2184
- package/dist/index.js.map +1 -1
- package/package.json +85 -78
- package/src/ProducerClient/producerClientEmits/joinRoomClient.ts +57 -0
- package/src/ProducerClient/producerClientEmits/updateRoomParametersClient.ts +401 -0
- package/src/consumers/addVideosGrid.ts +3 -2
- package/src/consumers/changeVids.ts +111 -41
- package/src/consumers/checkPermission.ts +35 -1
- package/src/consumers/connectRecvTransport.ts +42 -1
- package/src/consumers/consumerResume.ts +2 -2
- package/src/consumers/dispStreams.ts +83 -37
- package/src/consumers/frameworkConsumerContract.ts +6 -0
- package/src/consumers/generatePageContent.ts +24 -10
- package/src/consumers/getPipedProducersAlt.ts +112 -16
- package/src/consumers/gridLayout/addVideosGrid.engine.ts +42 -0
- package/src/consumers/gridLayout/prepopulateUserMedia.engine.ts +444 -0
- package/src/consumers/mixStreams.ts +45 -14
- package/src/consumers/onScreenChanges.ts +25 -10
- package/src/consumers/prepopulateUserMedia.ts +3 -2
- package/src/consumers/processConsumerTransports.ts +68 -23
- package/src/consumers/processConsumerTransportsAudio.ts +53 -16
- package/src/consumers/reUpdateInter.ts +61 -21
- package/src/consumers/readjust.ts +30 -14
- package/src/consumers/reorderStreams.ts +76 -42
- package/src/consumers/resumePauseAudioStreams.ts +66 -17
- package/src/consumers/resumePauseStreams.ts +53 -10
- package/src/consumers/socketReceiveMethods/joinConsumeRoom.ts +8 -0
- package/src/consumers/socketReceiveMethods/newPipeProducer.ts +114 -0
- package/src/consumers/socketReceiveMethods/producerClosed.ts +13 -0
- package/src/consumers/streamSuccessScreen.ts +2 -2
- package/src/consumers/streamSuccessVideo.ts +5 -0
- package/src/consumers/translationConsumerSwitch.ts +299 -0
- package/src/index.ts +85 -1
- package/src/methods/coHostMethods/modifyCoHostSettings.ts +9 -9
- package/src/methods/displaySettings/modifyDisplaySettings.ts +5 -0
- package/src/methods/index.ts +66 -0
- package/src/methods/message/sendMessage.ts +12 -29
- package/src/methods/panelists/focusPanelists.ts +83 -0
- package/src/methods/panelists/index.ts +3 -0
- package/src/methods/panelists/launchPanelists.ts +13 -0
- package/src/methods/panelists/updatePanelists.ts +135 -0
- package/src/methods/permissions/index.ts +3 -0
- package/src/methods/permissions/launchPermissions.ts +13 -0
- package/src/methods/permissions/updateParticipantPermission.ts +127 -0
- package/src/methods/permissions/updatePermissionConfig.ts +52 -0
- package/src/methods/polls/pollUpdated.ts +88 -0
- package/src/methods/recording/confirmRecording.ts +15 -12
- package/src/methods/recording/recordResumeTimer.ts +2 -2
- package/src/methods/recording/recordStartTimer.ts +2 -2
- package/src/methods/recording/timeLeftRecording.ts +25 -0
- package/src/methods/requests/hostRequestResponse.ts +153 -0
- package/src/methods/settings/modifySettings.ts +17 -17
- package/src/methods/socketReceive/allMembers.ts +450 -0
- package/src/methods/socketReceive/allMembersRest.ts +480 -0
- package/src/methods/socketReceive/allWaitingRoomMembers.ts +35 -0
- package/src/methods/socketReceive/banParticipant.ts +73 -0
- package/src/methods/socketReceive/controlMediaHost.ts +280 -0
- package/src/methods/socketReceive/disconnect.ts +40 -0
- package/src/methods/socketReceive/disconnectUserSelf.ts +56 -0
- package/src/methods/socketReceive/getDomains.ts +112 -0
- package/src/methods/socketReceive/meetingEnded.ts +49 -0
- package/src/methods/socketReceive/meetingStillThere.ts +26 -0
- package/src/methods/socketReceive/panelistReceiveMethods.ts +195 -0
- package/src/methods/socketReceive/participantRequested.ts +48 -0
- package/src/methods/socketReceive/permissionReceiveMethods.ts +59 -0
- package/src/methods/socketReceive/personJoined.ts +35 -0
- package/src/methods/socketReceive/producerMediaClosed.ts +223 -0
- package/src/methods/socketReceive/producerMediaPaused.ts +267 -0
- package/src/methods/socketReceive/producerMediaResumed.ts +157 -0
- package/src/methods/socketReceive/reInitiateRecording.ts +53 -0
- package/src/methods/socketReceive/receiveMessage.ts +117 -0
- package/src/methods/socketReceive/recordingNotice.ts +286 -0
- package/src/methods/socketReceive/roomRecordParams.ts +122 -0
- package/src/methods/socketReceive/screenProducerId.ts +61 -0
- package/src/methods/socketReceive/startRecords.ts +46 -0
- package/src/methods/socketReceive/stoppedRecording.ts +44 -0
- package/src/methods/socketReceive/translationReceiveMethods.ts +581 -0
- package/src/methods/socketReceive/updateConsumingDomains.ts +128 -0
- package/src/methods/socketReceive/updateMediaSettings.ts +45 -0
- package/src/methods/socketReceive/updatedCoHost.ts +75 -0
- package/src/methods/socketReceive/userWaiting.ts +45 -0
- package/src/methods/stream/clickAudio.ts +380 -0
- package/src/methods/stream/clickChat.ts +36 -0
- package/src/methods/stream/clickScreenShare.ts +173 -0
- package/src/methods/stream/clickVideo.ts +22 -5
- package/src/methods/stream/index.ts +1 -0
- package/src/methods/utils/SoundPlayer.ts +31 -0
- package/src/methods/utils/checkLimitsAndMakeRequest.ts +156 -2
- package/src/methods/utils/createResponseJoinRoom.ts +47 -0
- package/src/methods/utils/createRoomOnMediaSFU.ts +160 -0
- package/src/methods/utils/formatNumber.ts +42 -0
- package/src/methods/utils/generateRandomMessages.ts +70 -0
- package/src/methods/utils/generateRandomParticipants.ts +100 -0
- package/src/methods/utils/generateRandomPolls.ts +43 -0
- package/src/methods/utils/generateRandomRequestList.ts +51 -0
- package/src/methods/utils/generateRandomWaitingRoomList.ts +17 -0
- package/src/methods/utils/getModalPosition.ts +23 -0
- package/src/methods/utils/getOverlayPosition.ts +37 -0
- package/src/methods/utils/initialValuesState.ts +405 -0
- package/src/methods/utils/joinRoomOnMediaSFU.ts +124 -0
- package/src/methods/utils/liveSubtitle.ts +107 -0
- package/src/methods/utils/meetingTimeRemaining.ts +33 -0
- package/src/methods/utils/meetingTimer/startMeetingProgressTimer.ts +72 -0
- package/src/methods/utils/producer/aParams.ts +10 -0
- package/src/methods/utils/producer/hParams.ts +26 -0
- package/src/methods/utils/producer/screenParams.ts +13 -0
- package/src/methods/utils/producer/vParams.ts +26 -0
- package/src/methods/utils/producer/videoCaptureConstraints.ts +65 -0
- package/src/methods/utils/resolveMediaSFURoomApi.ts +16 -0
- package/src/methods/utils/sleep.ts +24 -0
- package/src/methods/utils/translationLanguages.ts +308 -0
- package/src/methods/utils/webrtc.ts +44 -0
- package/src/methods/welcome/handleWelcomeRequest.ts +11 -2
- package/src/methods/welcome/index.ts +5 -1
- package/src/methods/whiteboard/captureCanvasStream.ts +128 -0
- package/src/producers/producerEmits/joinConRoom.ts +2 -2
- package/src/producers/producerEmits/joinLocalRoom.ts +240 -0
- package/src/producers/producerEmits/joinRoom.ts +129 -0
- package/src/types/shared-base-types.ts +14 -3
- package/src/types/types.ts +255 -0
package/src/types/types.ts
CHANGED
|
@@ -57,14 +57,23 @@ export * from '../consumers/socketReceiveMethods/producerClosed';
|
|
|
57
57
|
export * from '../methods/breakoutRooms/breakoutRoomUpdated';
|
|
58
58
|
export * from '../methods/settings/modifySettings';
|
|
59
59
|
export * from '../methods/utils/checkLimitsAndMakeRequest';
|
|
60
|
+
export * from '../methods/requests/hostRequestResponse';
|
|
61
|
+
export * from '../methods/stream/clickAudio';
|
|
62
|
+
export * from '../methods/stream/clickScreenShare';
|
|
60
63
|
export * from '../methods/stream/clickVideo';
|
|
64
|
+
export * from '../methods/recording/timeLeftRecording';
|
|
65
|
+
export * from '../methods/whiteboard/captureCanvasStream';
|
|
61
66
|
// Note: handleCreateRoom, handleJoinRoom, removeParticipants export types that conflict with shared-base-types, so we don't re-export them here
|
|
62
67
|
|
|
63
68
|
// ProducerClient exports
|
|
64
69
|
export * from '../ProducerClient/producerClientEmits/createDeviceClient';
|
|
70
|
+
export * from '../ProducerClient/producerClientEmits/joinRoomClient';
|
|
71
|
+
export * from '../ProducerClient/producerClientEmits/updateRoomParametersClient';
|
|
65
72
|
|
|
66
73
|
// Producers exports
|
|
67
74
|
export * from '../producers/producerEmits/joinConRoom';
|
|
75
|
+
export * from '../producers/producerEmits/joinLocalRoom';
|
|
76
|
+
export * from '../producers/producerEmits/joinRoom';
|
|
68
77
|
|
|
69
78
|
// Socket Manager types (re-export explicitly to avoid function exports)
|
|
70
79
|
export type { ResponseLocalConnection, ResponseLocalConnectionData, ConnectSocketType, ConnectLocalSocketType, DisconnectSocketType } from '../sockets/SocketManager';
|
|
@@ -82,3 +91,249 @@ export * from '../consumers/receiveRoomMessages';
|
|
|
82
91
|
export * from '../consumers/resumeSendTransportAudio';
|
|
83
92
|
export * from '../consumers/updateMiniCardsGrid';
|
|
84
93
|
export * from '../consumers/updateParticipantAudioDecibels';
|
|
94
|
+
export type {
|
|
95
|
+
LiveSubtitle,
|
|
96
|
+
TranslationTranscriptData,
|
|
97
|
+
UpdateLiveSubtitlesOptions,
|
|
98
|
+
} from '../methods/utils/liveSubtitle';
|
|
99
|
+
export type {
|
|
100
|
+
CreateJoinRoomError,
|
|
101
|
+
CreateJoinRoomResponse,
|
|
102
|
+
CreateJoinRoomType,
|
|
103
|
+
JoinRoomOnMediaSFUType,
|
|
104
|
+
} from '../methods/utils/joinRoomOnMediaSFU';
|
|
105
|
+
export type { CreateResponseJoinRoomOptions } from '../methods/utils/createResponseJoinRoom';
|
|
106
|
+
export type {
|
|
107
|
+
SoundPlayerOptions,
|
|
108
|
+
SoundPlayerType,
|
|
109
|
+
} from '../methods/utils/SoundPlayer';
|
|
110
|
+
export type { FormatNumberOptions } from '../methods/utils/formatNumber';
|
|
111
|
+
export type {
|
|
112
|
+
GetOverlayPositionOptions,
|
|
113
|
+
GetOverlayPositionType,
|
|
114
|
+
} from '../methods/utils/getOverlayPosition';
|
|
115
|
+
export type {
|
|
116
|
+
GetModalPositionOptions,
|
|
117
|
+
GetModalPositionType,
|
|
118
|
+
} from '../methods/utils/getModalPosition';
|
|
119
|
+
export type { ClickChatOptions, ClickChatType } from '../methods/stream/clickChat';
|
|
120
|
+
export type { PollUpdatedOptions, PollUpdatedType } from '../methods/polls/pollUpdated';
|
|
121
|
+
export type {
|
|
122
|
+
BulkUpdateParticipantPermissionsOptions,
|
|
123
|
+
PermissionLevel,
|
|
124
|
+
UpdateParticipantPermissionOptions,
|
|
125
|
+
} from '../methods/permissions/updateParticipantPermission';
|
|
126
|
+
export type { SleepOptions, SleepType } from '../methods/utils/sleep';
|
|
127
|
+
export type {
|
|
128
|
+
ValidateAlphanumericOptions,
|
|
129
|
+
ValidateAlphanumericType,
|
|
130
|
+
} from '../methods/utils/validateAlphanumeric';
|
|
131
|
+
export type {
|
|
132
|
+
StartMeetingProgressTimerOptions,
|
|
133
|
+
StartMeetingProgressTimerParameters,
|
|
134
|
+
StartMeetingProgressTimerType,
|
|
135
|
+
} from '../methods/utils/meetingTimer/startMeetingProgressTimer';
|
|
136
|
+
export type {
|
|
137
|
+
MeetingTimeRemainingOptions,
|
|
138
|
+
MeetingTimeRemainingType,
|
|
139
|
+
} from '../methods/utils/meetingTimeRemaining';
|
|
140
|
+
export type {
|
|
141
|
+
AllWaitingRoomMembersOptions,
|
|
142
|
+
AllWaitingRoomMembersType,
|
|
143
|
+
} from '../methods/socketReceive/allWaitingRoomMembers';
|
|
144
|
+
export type {
|
|
145
|
+
AllMembersOptions,
|
|
146
|
+
AllMembersParameters,
|
|
147
|
+
AllMembersType,
|
|
148
|
+
} from '../methods/socketReceive/allMembers';
|
|
149
|
+
export type {
|
|
150
|
+
AllMembersRestOptions,
|
|
151
|
+
AllMembersRestParameters,
|
|
152
|
+
AllMembersRestType,
|
|
153
|
+
} from '../methods/socketReceive/allMembersRest';
|
|
154
|
+
export type {
|
|
155
|
+
BanParticipantOptions,
|
|
156
|
+
BanParticipantParameters,
|
|
157
|
+
BanParticipantType,
|
|
158
|
+
} from '../methods/socketReceive/banParticipant';
|
|
159
|
+
export type {
|
|
160
|
+
ControlMediaHostOptions,
|
|
161
|
+
ControlMediaHostParameters,
|
|
162
|
+
ControlMediaHostType,
|
|
163
|
+
} from '../methods/socketReceive/controlMediaHost';
|
|
164
|
+
export type {
|
|
165
|
+
DisconnectOptions,
|
|
166
|
+
DisconnectType,
|
|
167
|
+
} from '../methods/socketReceive/disconnect';
|
|
168
|
+
export type {
|
|
169
|
+
DisconnectUserSelfOptions,
|
|
170
|
+
DisconnectUserSelfType,
|
|
171
|
+
} from '../methods/socketReceive/disconnectUserSelf';
|
|
172
|
+
export type {
|
|
173
|
+
GetDomainsOptions,
|
|
174
|
+
GetDomainsParameters,
|
|
175
|
+
GetDomainsType,
|
|
176
|
+
} from '../methods/socketReceive/getDomains';
|
|
177
|
+
export type {
|
|
178
|
+
HostRequestResponseOptions,
|
|
179
|
+
HostRequestResponseType,
|
|
180
|
+
} from '../methods/requests/hostRequestResponse';
|
|
181
|
+
export type {
|
|
182
|
+
MeetingEndedOptions,
|
|
183
|
+
MeetingEndedType,
|
|
184
|
+
} from '../methods/socketReceive/meetingEnded';
|
|
185
|
+
export type {
|
|
186
|
+
AddedAsPanelistOptions,
|
|
187
|
+
AddedAsPanelistType,
|
|
188
|
+
ControlMediaData,
|
|
189
|
+
ControlMediaOptions,
|
|
190
|
+
ControlMediaType,
|
|
191
|
+
PanelistData,
|
|
192
|
+
PanelistFocusChangedData,
|
|
193
|
+
PanelistFocusChangedOptions,
|
|
194
|
+
PanelistFocusChangedType,
|
|
195
|
+
PanelistsUpdatedData,
|
|
196
|
+
PanelistsUpdatedOptions,
|
|
197
|
+
PanelistsUpdatedType,
|
|
198
|
+
RemovedFromPanelistsOptions,
|
|
199
|
+
RemovedFromPanelistsType,
|
|
200
|
+
} from '../methods/socketReceive/panelistReceiveMethods';
|
|
201
|
+
export type {
|
|
202
|
+
MeetingStillThereOptions,
|
|
203
|
+
MeetingStillThereType,
|
|
204
|
+
} from '../methods/socketReceive/meetingStillThere';
|
|
205
|
+
export type {
|
|
206
|
+
ParticipantRequestedOptions,
|
|
207
|
+
ParticipantRequestedType,
|
|
208
|
+
} from '../methods/socketReceive/participantRequested';
|
|
209
|
+
export type {
|
|
210
|
+
PermissionConfigUpdatedData,
|
|
211
|
+
PermissionConfigUpdatedOptions,
|
|
212
|
+
PermissionConfigUpdatedType,
|
|
213
|
+
PermissionUpdatedData,
|
|
214
|
+
PermissionUpdatedOptions,
|
|
215
|
+
PermissionUpdatedType,
|
|
216
|
+
} from '../methods/socketReceive/permissionReceiveMethods';
|
|
217
|
+
export type {
|
|
218
|
+
PersonJoinedOptions,
|
|
219
|
+
PersonJoinedType,
|
|
220
|
+
} from '../methods/socketReceive/personJoined';
|
|
221
|
+
export type {
|
|
222
|
+
ProducerMediaClosedOptions,
|
|
223
|
+
ProducerMediaClosedParameters,
|
|
224
|
+
ProducerMediaClosedType,
|
|
225
|
+
} from '../methods/socketReceive/producerMediaClosed';
|
|
226
|
+
export type {
|
|
227
|
+
ProducerMediaPausedOptions,
|
|
228
|
+
ProducerMediaPausedParameters,
|
|
229
|
+
ProducerMediaPausedType,
|
|
230
|
+
} from '../methods/socketReceive/producerMediaPaused';
|
|
231
|
+
export type {
|
|
232
|
+
ProducerMediaResumedOptions,
|
|
233
|
+
ProducerMediaResumedParameters,
|
|
234
|
+
ProducerMediaResumedType,
|
|
235
|
+
} from '../methods/socketReceive/producerMediaResumed';
|
|
236
|
+
export type {
|
|
237
|
+
ReceiveMessageOptions,
|
|
238
|
+
ReceiveMessageType,
|
|
239
|
+
} from '../methods/socketReceive/receiveMessage';
|
|
240
|
+
export type {
|
|
241
|
+
RecordingNoticeOptions,
|
|
242
|
+
RecordingNoticeParameters,
|
|
243
|
+
RecordingNoticeType,
|
|
244
|
+
} from '../methods/socketReceive/recordingNotice';
|
|
245
|
+
export type {
|
|
246
|
+
ReInitiateRecordingOptions,
|
|
247
|
+
ReInitiateRecordingType,
|
|
248
|
+
} from '../methods/socketReceive/reInitiateRecording';
|
|
249
|
+
export type {
|
|
250
|
+
RecordParams,
|
|
251
|
+
RoomRecordParamsOptions,
|
|
252
|
+
RoomRecordParamsParameters,
|
|
253
|
+
RoomRecordParamsType,
|
|
254
|
+
} from '../methods/socketReceive/roomRecordParams';
|
|
255
|
+
export type {
|
|
256
|
+
ScreenProducerIdOptions,
|
|
257
|
+
ScreenProducerIdType,
|
|
258
|
+
} from '../methods/socketReceive/screenProducerId';
|
|
259
|
+
export type {
|
|
260
|
+
StartRecordsOptions,
|
|
261
|
+
StartRecordsType,
|
|
262
|
+
} from '../methods/socketReceive/startRecords';
|
|
263
|
+
export type {
|
|
264
|
+
StoppedRecordingOptions,
|
|
265
|
+
StoppedRecordingType,
|
|
266
|
+
} from '../methods/socketReceive/stoppedRecording';
|
|
267
|
+
export type {
|
|
268
|
+
LanguageEntry,
|
|
269
|
+
LanguageMode,
|
|
270
|
+
TranslationChannelsAvailableData,
|
|
271
|
+
TranslationChannelsAvailableOptions,
|
|
272
|
+
TranslationChannelsAvailableType,
|
|
273
|
+
TranslationConfigUpdatedData,
|
|
274
|
+
TranslationConfigUpdatedOptions,
|
|
275
|
+
TranslationConfigUpdatedType,
|
|
276
|
+
TranslationErrorData,
|
|
277
|
+
TranslationErrorOptions,
|
|
278
|
+
TranslationErrorType,
|
|
279
|
+
TranslationLanguageSetData,
|
|
280
|
+
TranslationLanguageSetOptions,
|
|
281
|
+
TranslationLanguageSetType,
|
|
282
|
+
TranslationMemberStateData,
|
|
283
|
+
TranslationMemberStateOptions,
|
|
284
|
+
TranslationMemberStateType,
|
|
285
|
+
TranslationProducerClosedData,
|
|
286
|
+
TranslationProducerClosedOptions,
|
|
287
|
+
TranslationProducerClosedType,
|
|
288
|
+
TranslationProducerMap,
|
|
289
|
+
TranslationProducerReadyData,
|
|
290
|
+
TranslationProducerReadyOptions,
|
|
291
|
+
TranslationProducerReadyType,
|
|
292
|
+
TranslationRoomConfig,
|
|
293
|
+
TranslationRoomConfigData,
|
|
294
|
+
TranslationRoomConfigOptions,
|
|
295
|
+
TranslationRoomConfigType,
|
|
296
|
+
TranslationSpeakerOutputChangedData,
|
|
297
|
+
TranslationSpeakerOutputChangedOptions,
|
|
298
|
+
TranslationSpeakerOutputChangedType,
|
|
299
|
+
TranslationSubscribedData,
|
|
300
|
+
TranslationSubscribedOptions,
|
|
301
|
+
TranslationSubscribedType,
|
|
302
|
+
TranslationTranscriptOptions,
|
|
303
|
+
TranslationTranscriptType,
|
|
304
|
+
TranslationUnsubscribedData,
|
|
305
|
+
TranslationUnsubscribedOptions,
|
|
306
|
+
TranslationUnsubscribedType,
|
|
307
|
+
} from '../methods/socketReceive/translationReceiveMethods';
|
|
308
|
+
export type {
|
|
309
|
+
TimeLeftRecordingOptions,
|
|
310
|
+
TimeLeftRecordingType,
|
|
311
|
+
} from '../methods/recording/timeLeftRecording';
|
|
312
|
+
export type {
|
|
313
|
+
UpdateMediaSettingsOptions,
|
|
314
|
+
UpdateMediaSettingsType,
|
|
315
|
+
} from '../methods/socketReceive/updateMediaSettings';
|
|
316
|
+
export type {
|
|
317
|
+
UpdateConsumingDomainsOptions,
|
|
318
|
+
UpdateConsumingDomainsParameters,
|
|
319
|
+
UpdateConsumingDomainsType,
|
|
320
|
+
} from '../methods/socketReceive/updateConsumingDomains';
|
|
321
|
+
export type {
|
|
322
|
+
UpdatedCoHostOptions,
|
|
323
|
+
UpdatedCoHostType,
|
|
324
|
+
} from '../methods/socketReceive/updatedCoHost';
|
|
325
|
+
export type {
|
|
326
|
+
UserWaitingOptions,
|
|
327
|
+
UserWaitingType,
|
|
328
|
+
} from '../methods/socketReceive/userWaiting';
|
|
329
|
+
export type {
|
|
330
|
+
LanguageMetadata,
|
|
331
|
+
LanguageOption,
|
|
332
|
+
LanguageRegion,
|
|
333
|
+
TranslationLanguageEntry,
|
|
334
|
+
TranslationVoiceConfig,
|
|
335
|
+
TTSSupport,
|
|
336
|
+
VoiceGender,
|
|
337
|
+
VoiceOption,
|
|
338
|
+
VoiceSelectionPreference,
|
|
339
|
+
} from '../methods/utils/translationLanguages';
|