@whereby.com/core 0.7.0 → 0.9.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/cjs/index.cjs +3188 -0
- package/dist/cjs/utils.cjs +113 -0
- package/dist/index.d.ts +1555 -543
- package/dist/index.mjs +2999 -0
- package/dist/utils.d.ts +0 -10
- package/dist/{utils.js → utils.mjs} +20 -3
- package/package.json +10 -10
- package/dist/debounce-B-cWYxqK.js +0 -20
- package/dist/index.js +0 -9579
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,11 @@ 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 reselect from 'reselect';
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
6
|
+
import * as _whereby_com_media from '@whereby.com/media';
|
|
7
|
+
import { ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
|
-
import { getDeviceData } from '@whereby/jslib-media/src/webrtc/MediaDevices';
|
|
10
|
-
import RtcManagerDispatcher, { RtcStreamAddedPayload, RtcEvents, RtcManagerCreatedPayload } from '@whereby/jslib-media/src/webrtc/RtcManagerDispatcher';
|
|
11
|
-
import RtcManager from '@whereby/jslib-media/src/webrtc/RtcManager';
|
|
12
9
|
import { AxiosRequestConfig } from 'axios';
|
|
13
|
-
import EventEmitter from 'events';
|
|
10
|
+
import EventEmitter$1 from 'events';
|
|
14
11
|
|
|
15
12
|
type Json = string | number | boolean | null | Array<Json> | {
|
|
16
13
|
[key: string]: Json;
|
|
@@ -202,6 +199,7 @@ interface RemoteParticipant {
|
|
|
202
199
|
presentationStream: (MediaStream & {
|
|
203
200
|
inboundId?: string;
|
|
204
201
|
}) | null;
|
|
202
|
+
externalId: string | null;
|
|
205
203
|
}
|
|
206
204
|
declare class LocalParticipant extends RoomParticipant {
|
|
207
205
|
readonly isLocalParticipant = true;
|
|
@@ -219,31 +217,19 @@ interface Screenshare {
|
|
|
219
217
|
isLocal: boolean;
|
|
220
218
|
}
|
|
221
219
|
|
|
222
|
-
/**
|
|
223
|
-
* Reducer
|
|
224
|
-
*/
|
|
225
220
|
interface WaitingParticipantsState {
|
|
226
221
|
waitingParticipants: WaitingParticipant[];
|
|
227
222
|
}
|
|
228
223
|
declare const waitingParticipantsSlice: _reduxjs_toolkit.Slice<WaitingParticipantsState, {}, "waitingParticipants", "waitingParticipants", _reduxjs_toolkit.SliceSelectors<WaitingParticipantsState>>;
|
|
229
|
-
/**
|
|
230
|
-
* Action creators
|
|
231
|
-
*/
|
|
232
224
|
declare const doAcceptWaitingParticipant: (args: {
|
|
233
225
|
participantId: string;
|
|
234
226
|
}) => AppThunk<void>;
|
|
235
227
|
declare const doRejectWaitingParticipant: (args: {
|
|
236
228
|
participantId: string;
|
|
237
229
|
}) => AppThunk<void>;
|
|
238
|
-
/**
|
|
239
|
-
* Selectors
|
|
240
|
-
*/
|
|
241
230
|
declare const selectWaitingParticipantsRaw: (state: RootState) => WaitingParticipantsState;
|
|
242
231
|
declare const selectWaitingParticipants: (state: RootState) => WaitingParticipant[];
|
|
243
232
|
|
|
244
|
-
/**
|
|
245
|
-
* Reducer
|
|
246
|
-
*/
|
|
247
233
|
interface StreamingState {
|
|
248
234
|
isStreaming: boolean;
|
|
249
235
|
error: unknown;
|
|
@@ -269,14 +255,8 @@ declare const streamingSlice: _reduxjs_toolkit.Slice<StreamingState, {
|
|
|
269
255
|
startedAt?: number | undefined;
|
|
270
256
|
};
|
|
271
257
|
}, "streaming", "streaming", _reduxjs_toolkit.SliceSelectors<StreamingState>>;
|
|
272
|
-
/**
|
|
273
|
-
* Action creators
|
|
274
|
-
*/
|
|
275
258
|
declare const doHandleStreamingStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"streaming/doHandleStreamingStarted">;
|
|
276
259
|
declare const doHandleStreamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<"streaming/doHandleStreamingStopped">;
|
|
277
|
-
/**
|
|
278
|
-
* Selectors
|
|
279
|
-
*/
|
|
280
260
|
declare const selectStreamingRaw: (state: RootState) => StreamingState;
|
|
281
261
|
|
|
282
262
|
type RtcAnalyticsCustomEvent = {
|
|
@@ -288,9 +268,6 @@ type RtcAnalyticsCustomEvent = {
|
|
|
288
268
|
declare const rtcAnalyticsCustomEvents: {
|
|
289
269
|
[key: string]: RtcAnalyticsCustomEvent;
|
|
290
270
|
};
|
|
291
|
-
/**
|
|
292
|
-
* Reducer
|
|
293
|
-
*/
|
|
294
271
|
interface rtcAnalyticsState {
|
|
295
272
|
reportedValues: {
|
|
296
273
|
[key: string]: unknown;
|
|
@@ -311,9 +288,6 @@ declare const rtcAnalyticsSlice: _reduxjs_toolkit.Slice<rtcAnalyticsState, {
|
|
|
311
288
|
};
|
|
312
289
|
}, "rtcAnalytics", "rtcAnalytics", _reduxjs_toolkit.SliceSelectors<rtcAnalyticsState>>;
|
|
313
290
|
declare const doRtcAnalyticsCustomEventsInitialize: (args: void) => AppThunk<void>;
|
|
314
|
-
/**
|
|
315
|
-
* Action creators
|
|
316
|
-
*/
|
|
317
291
|
declare const updateReportedValues: ActionCreatorWithPayload<{
|
|
318
292
|
rtcEventName: string;
|
|
319
293
|
value: unknown;
|
|
@@ -324,9 +298,6 @@ interface LocalScreenshareState {
|
|
|
324
298
|
stream: MediaStream | null;
|
|
325
299
|
error: unknown | null;
|
|
326
300
|
}
|
|
327
|
-
/**
|
|
328
|
-
* Reducer
|
|
329
|
-
*/
|
|
330
301
|
declare const localScreenshareSlice: _reduxjs_toolkit.Slice<LocalScreenshareState, {
|
|
331
302
|
stopScreenshare(state: {
|
|
332
303
|
status: "" | "starting" | "active";
|
|
@@ -361,9 +332,6 @@ declare const localScreenshareSlice: _reduxjs_toolkit.Slice<LocalScreenshareStat
|
|
|
361
332
|
error: unknown | null;
|
|
362
333
|
};
|
|
363
334
|
}, "localScreenshare", "localScreenshare", _reduxjs_toolkit.SliceSelectors<LocalScreenshareState>>;
|
|
364
|
-
/**
|
|
365
|
-
* Action creators
|
|
366
|
-
*/
|
|
367
335
|
declare const stopScreenshare: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
368
336
|
stream: MediaStream;
|
|
369
337
|
}, "localScreenshare/stopScreenshare">;
|
|
@@ -371,9 +339,6 @@ declare const doStartScreenshare: _reduxjs_toolkit.AsyncThunk<{
|
|
|
371
339
|
stream: MediaStream;
|
|
372
340
|
}, undefined, ThunkConfig>;
|
|
373
341
|
declare const doStopScreenshare: (args: void) => AppThunk<void>;
|
|
374
|
-
/**
|
|
375
|
-
* Selectors
|
|
376
|
-
*/
|
|
377
342
|
declare const selectLocalScreenshareRaw: (state: RootState) => LocalScreenshareState;
|
|
378
343
|
declare const selectLocalScreenshareStatus: (state: RootState) => "" | "starting" | "active";
|
|
379
344
|
declare const selectLocalScreenshareStream: (state: RootState) => MediaStream | null;
|
|
@@ -443,9 +408,6 @@ declare const selectLocalParticipantClientClaim: (state: RootState) => string |
|
|
|
443
408
|
declare const selectLocalParticipantRole: (state: RootState) => string;
|
|
444
409
|
declare const selectLocalParticipantIsScreenSharing: (state: RootState) => boolean;
|
|
445
410
|
|
|
446
|
-
/**
|
|
447
|
-
* Reducer
|
|
448
|
-
*/
|
|
449
411
|
interface CloudRecordingState {
|
|
450
412
|
isRecording: boolean;
|
|
451
413
|
error: unknown;
|
|
@@ -466,15 +428,9 @@ declare const cloudRecordingSlice: _reduxjs_toolkit.Slice<CloudRecordingState, {
|
|
|
466
428
|
startedAt?: number | undefined;
|
|
467
429
|
};
|
|
468
430
|
}, "cloudRecording", "cloudRecording", _reduxjs_toolkit.SliceSelectors<CloudRecordingState>>;
|
|
469
|
-
/**
|
|
470
|
-
* Action creators
|
|
471
|
-
*/
|
|
472
431
|
declare const recordingRequestStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"cloudRecording/recordingRequestStarted">;
|
|
473
432
|
declare const doStartCloudRecording: (args: void) => AppThunk<void>;
|
|
474
433
|
declare const doStopCloudRecording: (args: void) => AppThunk<void>;
|
|
475
|
-
/**
|
|
476
|
-
* Selectors
|
|
477
|
-
*/
|
|
478
434
|
declare const selectCloudRecordingRaw: (state: RootState) => CloudRecordingState;
|
|
479
435
|
declare const selectCloudRecordingStatus: (state: RootState) => "error" | "recording" | "requested" | undefined;
|
|
480
436
|
declare const selectCloudRecordingStartedAt: (state: RootState) => number | undefined;
|
|
@@ -482,28 +438,16 @@ declare const selectCloudRecordingError: (state: RootState) => unknown;
|
|
|
482
438
|
declare const selectIsCloudRecording: (state: RootState) => boolean;
|
|
483
439
|
|
|
484
440
|
type ChatMessage = Pick<ChatMessage$1, "senderId" | "timestamp" | "text">;
|
|
485
|
-
/**
|
|
486
|
-
* Reducer
|
|
487
|
-
*/
|
|
488
441
|
interface ChatState {
|
|
489
442
|
chatMessages: ChatMessage[];
|
|
490
443
|
}
|
|
491
444
|
declare const chatSlice: _reduxjs_toolkit.Slice<ChatState, {}, "chat", "chat", _reduxjs_toolkit.SliceSelectors<ChatState>>;
|
|
492
|
-
/**
|
|
493
|
-
* Action creators
|
|
494
|
-
*/
|
|
495
445
|
declare const doSendChatMessage: (args: {
|
|
496
446
|
text: string;
|
|
497
447
|
}) => AppThunk<void>;
|
|
498
|
-
/**
|
|
499
|
-
* Selectors
|
|
500
|
-
*/
|
|
501
448
|
declare const selectChatRaw: (state: RootState) => ChatState;
|
|
502
449
|
declare const selectChatMessages: (state: RootState) => ChatMessage[];
|
|
503
450
|
|
|
504
|
-
/**
|
|
505
|
-
* Reducer
|
|
506
|
-
*/
|
|
507
451
|
interface AppState {
|
|
508
452
|
isNodeSdk: boolean;
|
|
509
453
|
wantsToJoin: boolean;
|
|
@@ -511,7 +455,7 @@ interface AppState {
|
|
|
511
455
|
roomName: string | null;
|
|
512
456
|
roomKey: string | null;
|
|
513
457
|
displayName: string | null;
|
|
514
|
-
|
|
458
|
+
userAgent: string | null;
|
|
515
459
|
externalId: string | null;
|
|
516
460
|
}
|
|
517
461
|
declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
@@ -522,7 +466,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
522
466
|
roomName: string | null;
|
|
523
467
|
roomKey: string | null;
|
|
524
468
|
displayName: string | null;
|
|
525
|
-
|
|
469
|
+
userAgent: string | null;
|
|
526
470
|
externalId: string | null;
|
|
527
471
|
}, action: PayloadAction<{
|
|
528
472
|
isNodeSdk?: boolean;
|
|
@@ -530,7 +474,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
530
474
|
localMediaOptions?: LocalMediaOptions;
|
|
531
475
|
roomKey: string | null;
|
|
532
476
|
roomUrl: string;
|
|
533
|
-
|
|
477
|
+
userAgent?: string;
|
|
534
478
|
externalId: string | null;
|
|
535
479
|
}>) => {
|
|
536
480
|
roomName: string;
|
|
@@ -540,7 +484,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
540
484
|
localMediaOptions?: LocalMediaOptions | undefined;
|
|
541
485
|
roomKey: string | null;
|
|
542
486
|
roomUrl: string;
|
|
543
|
-
|
|
487
|
+
userAgent: string | null;
|
|
544
488
|
externalId: string | null;
|
|
545
489
|
};
|
|
546
490
|
appLeft: (state: {
|
|
@@ -550,7 +494,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
550
494
|
roomName: string | null;
|
|
551
495
|
roomKey: string | null;
|
|
552
496
|
displayName: string | null;
|
|
553
|
-
|
|
497
|
+
userAgent: string | null;
|
|
554
498
|
externalId: string | null;
|
|
555
499
|
}) => {
|
|
556
500
|
wantsToJoin: false;
|
|
@@ -559,7 +503,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
559
503
|
roomName: string | null;
|
|
560
504
|
roomKey: string | null;
|
|
561
505
|
displayName: string | null;
|
|
562
|
-
|
|
506
|
+
userAgent: string | null;
|
|
563
507
|
externalId: string | null;
|
|
564
508
|
};
|
|
565
509
|
setRoomKey: (state: {
|
|
@@ -569,7 +513,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
569
513
|
roomName: string | null;
|
|
570
514
|
roomKey: string | null;
|
|
571
515
|
displayName: string | null;
|
|
572
|
-
|
|
516
|
+
userAgent: string | null;
|
|
573
517
|
externalId: string | null;
|
|
574
518
|
}, action: PayloadAction<string>) => {
|
|
575
519
|
roomKey: string;
|
|
@@ -578,34 +522,28 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
578
522
|
roomUrl: string | null;
|
|
579
523
|
roomName: string | null;
|
|
580
524
|
displayName: string | null;
|
|
581
|
-
|
|
525
|
+
userAgent: string | null;
|
|
582
526
|
externalId: string | null;
|
|
583
527
|
};
|
|
584
528
|
}, "app", "app", _reduxjs_toolkit.SliceSelectors<AppState>>;
|
|
585
|
-
/**
|
|
586
|
-
* Action creators
|
|
587
|
-
*/
|
|
588
529
|
declare const doAppJoin: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
589
530
|
isNodeSdk?: boolean | undefined;
|
|
590
531
|
displayName: string;
|
|
591
532
|
localMediaOptions?: LocalMediaOptions | undefined;
|
|
592
533
|
roomKey: string | null;
|
|
593
534
|
roomUrl: string;
|
|
594
|
-
|
|
535
|
+
userAgent?: string | undefined;
|
|
595
536
|
externalId: string | null;
|
|
596
537
|
}, "app/doAppJoin">;
|
|
597
538
|
declare const appLeft: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/appLeft">;
|
|
598
539
|
declare const setRoomKey: _reduxjs_toolkit.ActionCreatorWithPayload<string, "app/setRoomKey">;
|
|
599
|
-
/**
|
|
600
|
-
* Selectors
|
|
601
|
-
*/
|
|
602
540
|
declare const selectAppRaw: (state: RootState) => AppState;
|
|
603
541
|
declare const selectAppWantsToJoin: (state: RootState) => boolean;
|
|
604
542
|
declare const selectAppRoomName: (state: RootState) => string | null;
|
|
605
543
|
declare const selectAppRoomUrl: (state: RootState) => string | null;
|
|
606
544
|
declare const selectAppRoomKey: (state: RootState) => string | null;
|
|
607
545
|
declare const selectAppDisplayName: (state: RootState) => string | null;
|
|
608
|
-
declare const
|
|
546
|
+
declare const selectAppUserAgent: (state: RootState) => string | null;
|
|
609
547
|
declare const selectAppExternalId: (state: RootState) => string | null;
|
|
610
548
|
declare const selectAppIsNodeSdk: (state: RootState) => boolean;
|
|
611
549
|
|
|
@@ -615,53 +553,21 @@ type HttpClientRequestConfig = AxiosRequestConfig | {
|
|
|
615
553
|
interface IHttpClient {
|
|
616
554
|
request(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
617
555
|
}
|
|
618
|
-
/**
|
|
619
|
-
* Class used for making http calls. This is just a pure
|
|
620
|
-
* wrapper around the http lib that we decide to use,
|
|
621
|
-
* so that we can switch implementations.
|
|
622
|
-
*/
|
|
623
556
|
declare class HttpClient implements IHttpClient {
|
|
624
557
|
_baseUrl: string;
|
|
625
|
-
/**
|
|
626
|
-
* Creates an HttpClient instance.
|
|
627
|
-
*
|
|
628
|
-
* @param {string} [baseUrl] - The base URL where all requests are made.
|
|
629
|
-
*/
|
|
630
558
|
constructor({ baseUrl }: {
|
|
631
559
|
baseUrl: string;
|
|
632
560
|
});
|
|
633
561
|
private _requestAxios;
|
|
634
|
-
/**
|
|
635
|
-
* Wrapper for the axios API
|
|
636
|
-
*
|
|
637
|
-
* @param {string} url - Required. URL (appended to base URL) where API call will be made
|
|
638
|
-
* @param {object} options - Required. Contains the data needed for the fetch API
|
|
639
|
-
* @return {Promise<Response>} - A promise which will return a Response object (https://developer.mozilla.org/en-US/docs/Web/API/Response)
|
|
640
|
-
*/
|
|
641
562
|
request(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
642
563
|
}
|
|
643
564
|
|
|
644
|
-
/**
|
|
645
|
-
* ApiClient for doing multipart/form-data requests.
|
|
646
|
-
*/
|
|
647
565
|
declare class MultipartHttpClient implements IHttpClient {
|
|
648
566
|
_httpClient: IHttpClient;
|
|
649
567
|
constructor({ httpClient }: {
|
|
650
568
|
httpClient: IHttpClient;
|
|
651
569
|
});
|
|
652
|
-
/**
|
|
653
|
-
* Convert the provided object to a FormData object containing the same keys and values.
|
|
654
|
-
* @param {object} data - the data to convert.
|
|
655
|
-
* @returns {FormData}
|
|
656
|
-
*/
|
|
657
570
|
static dataToFormData(data: Record<string, string>): FormData;
|
|
658
|
-
/**
|
|
659
|
-
* Request a resource using multipart/form-data encoding.
|
|
660
|
-
*
|
|
661
|
-
* @param {string} url - the url to request
|
|
662
|
-
* @param {object} options - Required. Contains the data needed for the fetch API
|
|
663
|
-
* @return {Promise<Response>} - A promise which will return a Response object (https://developer.mozilla.org/en-US/docs/Web/API/Response)
|
|
664
|
-
*/
|
|
665
571
|
request(url: string, options?: HttpClientRequestConfig): Promise<Response>;
|
|
666
572
|
}
|
|
667
573
|
|
|
@@ -695,40 +601,19 @@ interface ApiClientOptions {
|
|
|
695
601
|
baseUrl?: string;
|
|
696
602
|
fetchDeviceCredentials?: AuthenticatedHttpClientOptions["fetchDeviceCredentials"];
|
|
697
603
|
}
|
|
698
|
-
/**
|
|
699
|
-
* Class used for all Whereby API calls.
|
|
700
|
-
*/
|
|
701
604
|
declare class ApiClient {
|
|
702
605
|
authenticatedHttpClient: AuthenticatedHttpClient;
|
|
703
606
|
authenticatedFormDataHttpClient: MultipartHttpClient;
|
|
704
|
-
/**
|
|
705
|
-
* Create an ApiClient instance.
|
|
706
|
-
*/
|
|
707
607
|
constructor({ baseUrl, fetchDeviceCredentials, }?: ApiClientOptions);
|
|
708
|
-
/**
|
|
709
|
-
* Wrapper for the fetch API
|
|
710
|
-
*/
|
|
711
608
|
request(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
712
|
-
/**
|
|
713
|
-
* Performs a multipart request where data is multipart/form-data encoded.
|
|
714
|
-
*/
|
|
715
609
|
requestMultipart(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
716
610
|
}
|
|
717
611
|
|
|
718
|
-
/**
|
|
719
|
-
* Related to device calls needed to obtain credentials
|
|
720
|
-
*/
|
|
721
612
|
declare class DeviceService {
|
|
722
613
|
_apiClient: ApiClient;
|
|
723
614
|
constructor({ apiClient }: {
|
|
724
615
|
apiClient: ApiClient;
|
|
725
616
|
});
|
|
726
|
-
/**
|
|
727
|
-
* Get's the device credentials needed for most of the other API services
|
|
728
|
-
*
|
|
729
|
-
* @return {Promise} A promise which is fulfilled or failed based on the
|
|
730
|
-
* response.
|
|
731
|
-
*/
|
|
732
617
|
getCredentials(): Promise<Credentials | null>;
|
|
733
618
|
}
|
|
734
619
|
|
|
@@ -737,15 +622,10 @@ interface AbstractStore {
|
|
|
737
622
|
save(value: Json): Promise<void>;
|
|
738
623
|
}
|
|
739
624
|
|
|
740
|
-
declare class CredentialsService extends EventEmitter {
|
|
625
|
+
declare class CredentialsService extends EventEmitter$1 {
|
|
741
626
|
_deviceService: DeviceService;
|
|
742
627
|
_credentialsStore: AbstractStore;
|
|
743
628
|
credentialsPromise?: Promise<Credentials | null>;
|
|
744
|
-
/**
|
|
745
|
-
* Service to manage Whereby's Rest API credentials.
|
|
746
|
-
*
|
|
747
|
-
* @param {ObjectStore} credentialsStore - Store to manage the credentials.
|
|
748
|
-
*/
|
|
749
629
|
constructor({ deviceService, credentialsStore, }: {
|
|
750
630
|
deviceService: DeviceService;
|
|
751
631
|
credentialsStore: AbstractStore;
|
|
@@ -755,55 +635,17 @@ declare class CredentialsService extends EventEmitter {
|
|
|
755
635
|
storeName?: string;
|
|
756
636
|
storeType?: "localStorage" | "chromeStorage";
|
|
757
637
|
}): CredentialsService;
|
|
758
|
-
/**
|
|
759
|
-
* Contacts the REST API to get new credentials. DO NOT USE directly, call getCredentials() instead.
|
|
760
|
-
*
|
|
761
|
-
* @see getCredentials
|
|
762
|
-
* @returns {Promise.<Credentials>} - Promise that resolves with the credentials.
|
|
763
|
-
*/
|
|
764
638
|
_fetchNewCredentialsFromApi(): Promise<Credentials | null>;
|
|
765
|
-
/**
|
|
766
|
-
* Returns the current credentials without triggering an API request to get new ones.
|
|
767
|
-
* If no credentials are currently available it will return null.
|
|
768
|
-
*
|
|
769
|
-
* @returns {?Credentials} - The credentials currently in use, null otherwise.
|
|
770
|
-
*/
|
|
771
639
|
getCurrentCredentials(): Promise<Credentials | null>;
|
|
772
|
-
/**
|
|
773
|
-
* Returns a promise that will contain the credentials for this client.
|
|
774
|
-
* If no credentials are available in local storage, new ones will be fetched from the server.
|
|
775
|
-
*
|
|
776
|
-
* @returns {Promise.<Credentials>} - Promise that resolves with the credentials.
|
|
777
|
-
*/
|
|
778
640
|
getCredentials(): Promise<Credentials | null>;
|
|
779
|
-
/**
|
|
780
|
-
* Saves new credentials which replace the existing ones and abort any pending request to get new ones.
|
|
781
|
-
*
|
|
782
|
-
* @param {Credentials} credentials - New credentials to store.
|
|
783
|
-
*/
|
|
784
641
|
saveCredentials(credentials: Credentials): Promise<Credentials>;
|
|
785
|
-
/**
|
|
786
|
-
* It will set the userId for the current credentials.
|
|
787
|
-
*
|
|
788
|
-
* @param userId - The user id to set.
|
|
789
|
-
*/
|
|
790
642
|
setUserId(userId: string | null): Promise<void>;
|
|
791
643
|
}
|
|
792
644
|
|
|
793
645
|
type FetchOrganizationFunction = () => Promise<Organization | undefined>;
|
|
794
|
-
/**
|
|
795
|
-
* Class used for all Whereby organization API calls.
|
|
796
|
-
*/
|
|
797
646
|
declare class OrganizationApiClient {
|
|
798
647
|
private _apiClient;
|
|
799
648
|
private _fetchOrganization;
|
|
800
|
-
/**
|
|
801
|
-
* Create an OrganizationApiClient instance.
|
|
802
|
-
*
|
|
803
|
-
* @param {Object} options - The options for the OrganizationApiClient.
|
|
804
|
-
* @param {ApiClient} [options.apiClient] - The apiClient to use.
|
|
805
|
-
* @param {Function} [options.fetchOrganization] - function that returns a promise with the organization.
|
|
806
|
-
*/
|
|
807
649
|
constructor({ apiClient, fetchOrganization, }: {
|
|
808
650
|
apiClient: ApiClient;
|
|
809
651
|
fetchOrganization?: FetchOrganizationFunction;
|
|
@@ -824,9 +666,6 @@ declare class OrganizationService {
|
|
|
824
666
|
constructor({ apiClient }: {
|
|
825
667
|
apiClient: ApiClient;
|
|
826
668
|
});
|
|
827
|
-
/**
|
|
828
|
-
* Creates an organization.
|
|
829
|
-
*/
|
|
830
669
|
createOrganization({ organizationName, subdomain, owner, }: {
|
|
831
670
|
organizationName: string;
|
|
832
671
|
subdomain: string;
|
|
@@ -841,23 +680,8 @@ declare class OrganizationService {
|
|
|
841
680
|
consents?: ReadonlyArray<ConsentGrantRequest>;
|
|
842
681
|
};
|
|
843
682
|
}): Promise<string>;
|
|
844
|
-
/**
|
|
845
|
-
* Retrieves the organization based on the subdomain.
|
|
846
|
-
*/
|
|
847
683
|
getOrganizationBySubdomain(subdomain: string): Promise<Organization | null>;
|
|
848
|
-
/**
|
|
849
|
-
* Retrieves the organization based on the organizationId.
|
|
850
|
-
*
|
|
851
|
-
* Note: This endpoint should only be used to retrieve an organization when the device is linked
|
|
852
|
-
* to a user in that organization. Use getOrganizationBySubdomain instead if you just want the information
|
|
853
|
-
* about an organization that is mapped to a given subdomain.
|
|
854
|
-
*/
|
|
855
684
|
getOrganizationByOrganizationId(organizationId: string): Promise<Organization | null>;
|
|
856
|
-
/**
|
|
857
|
-
* Retrieves the organizations that contain a user
|
|
858
|
-
* matching provided the email+code or phoneNumber+code
|
|
859
|
-
* combination.
|
|
860
|
-
*/
|
|
861
685
|
getOrganizationsByContactPoint(options: {
|
|
862
686
|
email: string;
|
|
863
687
|
code: string;
|
|
@@ -865,37 +689,17 @@ declare class OrganizationService {
|
|
|
865
689
|
phoneNumber: string;
|
|
866
690
|
code: string;
|
|
867
691
|
}): Promise<ReadonlyArray<Organization>>;
|
|
868
|
-
/**
|
|
869
|
-
* Retrieves the organizations that contain a user
|
|
870
|
-
* matching provided the idToken
|
|
871
|
-
*/
|
|
872
692
|
getOrganizationsByIdToken({ idToken }: {
|
|
873
693
|
idToken: string;
|
|
874
694
|
}): Promise<ReadonlyArray<Organization>>;
|
|
875
|
-
/**
|
|
876
|
-
* Retrieves the organizations containing a user
|
|
877
|
-
* with either the email or phoneNumber matching the logged in user.
|
|
878
|
-
*
|
|
879
|
-
* This is useful for showing the possible organization that the current
|
|
880
|
-
* user could log in to.
|
|
881
|
-
*/
|
|
882
695
|
getOrganizationsByLoggedInUser(): Promise<ReadonlyArray<Organization>>;
|
|
883
|
-
/**
|
|
884
|
-
* Checks if a subdomain is available and verifies its format.
|
|
885
|
-
*/
|
|
886
696
|
getSubdomainAvailability(subdomain: string): Promise<{
|
|
887
697
|
status: string;
|
|
888
698
|
}>;
|
|
889
|
-
/**
|
|
890
|
-
* Updates preferences of the organization.
|
|
891
|
-
*/
|
|
892
699
|
updatePreferences({ organizationId, preferences, }: {
|
|
893
700
|
organizationId: string;
|
|
894
701
|
preferences: OrganizationPreferences;
|
|
895
702
|
}): Promise<undefined>;
|
|
896
|
-
/**
|
|
897
|
-
* Delete organization
|
|
898
|
-
*/
|
|
899
703
|
deleteOrganization({ organizationId }: {
|
|
900
704
|
organizationId: string;
|
|
901
705
|
}): Promise<undefined>;
|
|
@@ -918,105 +722,37 @@ declare class Room {
|
|
|
918
722
|
constructor(properties?: {});
|
|
919
723
|
}
|
|
920
724
|
|
|
921
|
-
/**
|
|
922
|
-
* Service for talking to the Room related APIs
|
|
923
|
-
*/
|
|
924
725
|
declare class RoomService {
|
|
925
|
-
/**
|
|
926
|
-
* @param {object} organizationApiClient (required)
|
|
927
|
-
*/
|
|
928
726
|
constructor({ organizationApiClient }: {
|
|
929
727
|
organizationApiClient: any;
|
|
930
728
|
});
|
|
931
|
-
/**
|
|
932
|
-
* Gets the list of visited rooms
|
|
933
|
-
*
|
|
934
|
-
* @param {Object} args
|
|
935
|
-
* @param {Array<string>} [types=["team"]] - The type of rooms that should be fetched.
|
|
936
|
-
* @param {Array<string>} [fields=["meeting"]] - The fields of room that should be fetched.
|
|
937
|
-
* @returns {Promise<array>} - It will resolve with an array.
|
|
938
|
-
*/
|
|
939
729
|
getRooms({ types, fields }?: {
|
|
940
730
|
types: any;
|
|
941
731
|
fields?: never[] | undefined;
|
|
942
732
|
}): any;
|
|
943
|
-
/**
|
|
944
|
-
* Gets the specified room.
|
|
945
|
-
*
|
|
946
|
-
* Currently information is implicitly alluded to via the servers
|
|
947
|
-
* `/room/roomName` response. This method patches the data
|
|
948
|
-
* tempoarily, until the day it comes back from the server.
|
|
949
|
-
*
|
|
950
|
-
* @returns {Promise<Room>} - It will resolve with the Room.
|
|
951
|
-
*/
|
|
952
733
|
getRoom({ roomName, fields }: {
|
|
953
734
|
roomName: string;
|
|
954
735
|
fields?: Array<string>;
|
|
955
736
|
}): Promise<Room>;
|
|
956
|
-
/**
|
|
957
|
-
* Claims the specified room.
|
|
958
|
-
*
|
|
959
|
-
* @param {Object} args
|
|
960
|
-
* @param {String} args.roomName - The roomName to claim
|
|
961
|
-
* @param {String} args.type - The type of room to claim
|
|
962
|
-
* @param {String} args.mode - The optional mode of room to claim
|
|
963
|
-
* @param {[Boolean]} args.isLocked - The optional lock status of room to claim
|
|
964
|
-
* @returns {Promise} - It will resolve with undefined.
|
|
965
|
-
*/
|
|
966
737
|
claimRoom({ roomName, type, mode, isLocked }: {
|
|
967
738
|
roomName: any;
|
|
968
739
|
type: any;
|
|
969
740
|
mode: any;
|
|
970
741
|
isLocked: any;
|
|
971
742
|
}): any;
|
|
972
|
-
/**
|
|
973
|
-
* Unclaims the specified room.
|
|
974
|
-
*
|
|
975
|
-
* @param {string} roomName - the room name to unclaim.
|
|
976
|
-
* @returns {Promise.<undefined>} - It will resolve with undefined.
|
|
977
|
-
*/
|
|
978
743
|
unclaimRoom(roomName: any): any;
|
|
979
|
-
/**
|
|
980
|
-
* Changes the name of the room
|
|
981
|
-
*
|
|
982
|
-
* @param {Object} args
|
|
983
|
-
* @param {string} args.roomName - The name of the room to rename
|
|
984
|
-
* @param {string} args.newRoomName - The new name
|
|
985
|
-
* @returns {Promise<undefined>} - It will resolve if the room was renamed, reject for all other cases
|
|
986
|
-
*/
|
|
987
744
|
renameRoom({ roomName, newRoomName }: {
|
|
988
745
|
roomName: any;
|
|
989
746
|
newRoomName: any;
|
|
990
747
|
}): any;
|
|
991
|
-
/**
|
|
992
|
-
* Changes the room mode (experimental)
|
|
993
|
-
*
|
|
994
|
-
* @param {string} roomName - The name of the room to change mode of
|
|
995
|
-
* @param {string} mode - The name of mode to set, currently only "group" is supported
|
|
996
|
-
* @returns {Promise<undefined>} - It will resolve if mode was changed, rejects for all other cases
|
|
997
|
-
*/
|
|
998
748
|
changeMode({ roomName, mode }: {
|
|
999
749
|
roomName: any;
|
|
1000
750
|
mode: any;
|
|
1001
751
|
}): any;
|
|
1002
|
-
/**
|
|
1003
|
-
* Updates the room prefs
|
|
1004
|
-
*
|
|
1005
|
-
* @param {string} roomName - The name of the room to change mode of
|
|
1006
|
-
* @param {object} preferences - The prefs you want to update and their values
|
|
1007
|
-
* @returns {Promise<undefined>} - It will resolve if updated, rejects for all other cases
|
|
1008
|
-
*/
|
|
1009
752
|
updatePreferences({ roomName, preferences }: {
|
|
1010
753
|
roomName: any;
|
|
1011
754
|
preferences: any;
|
|
1012
755
|
}): any;
|
|
1013
|
-
/**
|
|
1014
|
-
* Updates the protected room prefs
|
|
1015
|
-
*
|
|
1016
|
-
* @param {string} roomName - The name of the room to change mode of
|
|
1017
|
-
* @param {object} preferences - The protected prefs you want to update and their values
|
|
1018
|
-
* @returns {Promise<undefined>} - It will resolve if updated, rejects for all other cases
|
|
1019
|
-
*/
|
|
1020
756
|
updateProtectedPreferences({ roomName, preferences }: {
|
|
1021
757
|
roomName: any;
|
|
1022
758
|
preferences: any;
|
|
@@ -1024,70 +760,31 @@ declare class RoomService {
|
|
|
1024
760
|
getRoomPermissions(roomName: any, { roomKey }?: {
|
|
1025
761
|
roomKey: any;
|
|
1026
762
|
}): any;
|
|
1027
|
-
/**
|
|
1028
|
-
* Gets the specified room metrics
|
|
1029
|
-
*
|
|
1030
|
-
* @param {Object} args
|
|
1031
|
-
* @param {string} args.roomName - The name of the room to get metrics from.
|
|
1032
|
-
* @param {string} args.metrics - Comma-separated list of metrics to include.
|
|
1033
|
-
* @param {string} args.from (optional) - Start time (inclusive) to count from in
|
|
1034
|
-
* ISO format. Defaults to counting from the start of time.
|
|
1035
|
-
* @param {string} args.to (optional) - End time (exclusive) to count up to in
|
|
1036
|
-
* ISO format. Defaults to counting up to the current time.
|
|
1037
|
-
* @returns {Promise<Object>} - It will resolve with the requested metrics.
|
|
1038
|
-
*/
|
|
1039
763
|
getRoomMetrics({ roomName, metrics, from, to }: {
|
|
1040
764
|
roomName: any;
|
|
1041
765
|
metrics: any;
|
|
1042
766
|
from: any;
|
|
1043
767
|
to: any;
|
|
1044
768
|
}): any;
|
|
1045
|
-
/**
|
|
1046
|
-
* Changes the room type
|
|
1047
|
-
*
|
|
1048
|
-
* @param {Object} args
|
|
1049
|
-
* @param {string} args.roomName - The name of the room to change mode of
|
|
1050
|
-
* @param {"personal" | "personal_xl"} args.type - Room type that should be set
|
|
1051
|
-
* @returns {Promise<undefined>} - It will resolve if type was changed, rejects for all other cases
|
|
1052
|
-
*/
|
|
1053
769
|
changeType({ roomName, type }: {
|
|
1054
770
|
roomName: any;
|
|
1055
771
|
type: any;
|
|
1056
772
|
}): any;
|
|
1057
|
-
/** Gets a Forest campaign social image
|
|
1058
|
-
*
|
|
1059
|
-
* @param {Object} args
|
|
1060
|
-
* @param {string} args.roomName - The name of the room to get metrics from.
|
|
1061
|
-
* @param {number} args.count - Number to be displayed in the image as tree count.
|
|
1062
|
-
* @returns {Promise<string>} - It will resolve with the image url.
|
|
1063
|
-
*/
|
|
1064
773
|
getForestSocialImage({ roomName, count }: {
|
|
1065
774
|
roomName: any;
|
|
1066
775
|
count: any;
|
|
1067
776
|
}): any;
|
|
1068
777
|
}
|
|
1069
778
|
|
|
1070
|
-
/**
|
|
1071
|
-
* Reducer
|
|
1072
|
-
*/
|
|
1073
779
|
interface DeviceCredentialsState {
|
|
1074
780
|
isFetching: boolean;
|
|
1075
781
|
data?: Credentials | null;
|
|
1076
782
|
}
|
|
1077
783
|
declare const deviceCredentialsSlice: _reduxjs_toolkit.Slice<DeviceCredentialsState, {}, "deviceCredentials", "deviceCredentials", _reduxjs_toolkit.SliceSelectors<DeviceCredentialsState>>;
|
|
1078
|
-
/**
|
|
1079
|
-
* Action creators
|
|
1080
|
-
*/
|
|
1081
784
|
declare const doGetDeviceCredentials: _reduxjs_toolkit.AsyncThunk<Credentials | null | undefined, undefined, ThunkConfig>;
|
|
1082
|
-
/**
|
|
1083
|
-
* Selectors
|
|
1084
|
-
*/
|
|
1085
785
|
declare const selectDeviceCredentialsRaw: (state: RootState) => DeviceCredentialsState;
|
|
1086
786
|
declare const selectHasFetchedDeviceCredentials: (state: RootState) => boolean;
|
|
1087
787
|
declare const selectDeviceId: (state: RootState) => string | undefined;
|
|
1088
|
-
/**
|
|
1089
|
-
* Reactors
|
|
1090
|
-
*/
|
|
1091
788
|
declare const selectShouldFetchDeviceCredentials: ((state: {
|
|
1092
789
|
app: AppState;
|
|
1093
790
|
chat: ChatState;
|
|
@@ -1150,9 +847,6 @@ type LocalMediaOptions = {
|
|
|
1150
847
|
audio: boolean;
|
|
1151
848
|
video: boolean;
|
|
1152
849
|
};
|
|
1153
|
-
/**
|
|
1154
|
-
* Reducer
|
|
1155
|
-
*/
|
|
1156
850
|
interface LocalMediaState {
|
|
1157
851
|
busyDeviceIds: string[];
|
|
1158
852
|
cameraDeviceError?: unknown;
|
|
@@ -2110,9 +1804,6 @@ declare const localMediaSlice: _reduxjs_toolkit.Slice<LocalMediaState, {
|
|
|
2110
1804
|
onDeviceChange?: (() => void) | undefined;
|
|
2111
1805
|
};
|
|
2112
1806
|
}, "localMedia", "localMedia", _reduxjs_toolkit.SliceSelectors<LocalMediaState>>;
|
|
2113
|
-
/**
|
|
2114
|
-
* Action creators
|
|
2115
|
-
*/
|
|
2116
1807
|
declare const deviceBusy: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
2117
1808
|
deviceId: string;
|
|
2118
1809
|
}, "localMedia/deviceBusy">;
|
|
@@ -2135,18 +1826,7 @@ declare const setLocalMediaStream: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
|
2135
1826
|
stream: MediaStream;
|
|
2136
1827
|
}, "localMedia/setLocalMediaStream">;
|
|
2137
1828
|
declare const localMediaStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<"localMedia/localMediaStopped">;
|
|
2138
|
-
declare const localStreamMetadataUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<
|
|
2139
|
-
audio: {
|
|
2140
|
-
deviceId: string;
|
|
2141
|
-
label: string;
|
|
2142
|
-
kind: string;
|
|
2143
|
-
};
|
|
2144
|
-
video: {
|
|
2145
|
-
deviceId: string;
|
|
2146
|
-
label: string;
|
|
2147
|
-
kind: string;
|
|
2148
|
-
};
|
|
2149
|
-
}, "localMedia/localStreamMetadataUpdated">;
|
|
1829
|
+
declare const localStreamMetadataUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<_whereby_com_media.GetDeviceDataResult, "localMedia/localStreamMetadataUpdated">;
|
|
2150
1830
|
declare const doToggleCamera: _reduxjs_toolkit.AsyncThunk<undefined, undefined, ThunkConfig>;
|
|
2151
1831
|
declare const doSetDevice: _reduxjs_toolkit.AsyncThunk<{
|
|
2152
1832
|
replacedTracks: MediaStreamTrack[] | undefined;
|
|
@@ -2168,9 +1848,6 @@ declare const doStartLocalMedia: _reduxjs_toolkit.AsyncThunk<{
|
|
|
2168
1848
|
onDeviceChange: DebouncedFunction;
|
|
2169
1849
|
}, LocalMediaOptions | MediaStream, ThunkConfig>;
|
|
2170
1850
|
declare const doStopLocalMedia: (args: void) => AppThunk<void>;
|
|
2171
|
-
/**
|
|
2172
|
-
* Selectors
|
|
2173
|
-
*/
|
|
2174
1851
|
declare const selectBusyDeviceIds: (state: RootState) => string[];
|
|
2175
1852
|
declare const selectCameraDeviceError: (state: RootState) => unknown;
|
|
2176
1853
|
declare const selectCurrentCameraDeviceId: (state: RootState) => string | undefined;
|
|
@@ -2454,9 +2131,6 @@ declare const selectSpeakerDevices: ((state: {
|
|
|
2454
2131
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
2455
2132
|
memoize: typeof reselect.weakMapMemoize;
|
|
2456
2133
|
};
|
|
2457
|
-
/**
|
|
2458
|
-
* Reactors
|
|
2459
|
-
*/
|
|
2460
2134
|
declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
2461
2135
|
app: AppState;
|
|
2462
2136
|
chat: ChatState;
|
|
@@ -2580,27 +2254,15 @@ declare const selectLocalMediaShouldStop: ((state: {
|
|
|
2580
2254
|
memoize: typeof reselect.weakMapMemoize;
|
|
2581
2255
|
};
|
|
2582
2256
|
|
|
2583
|
-
/**
|
|
2584
|
-
* Reducer
|
|
2585
|
-
*/
|
|
2586
2257
|
interface OrganizationState {
|
|
2587
2258
|
data: Organization | null | undefined;
|
|
2588
2259
|
isFetching: boolean;
|
|
2589
2260
|
error: unknown;
|
|
2590
2261
|
}
|
|
2591
2262
|
declare const organizationSlice: _reduxjs_toolkit.Slice<OrganizationState, {}, "organization", "organization", _reduxjs_toolkit.SliceSelectors<OrganizationState>>;
|
|
2592
|
-
/**
|
|
2593
|
-
* Action creators
|
|
2594
|
-
*/
|
|
2595
2263
|
declare const doOrganizationFetch: _reduxjs_toolkit.AsyncThunk<Organization | undefined, undefined, ThunkConfig>;
|
|
2596
|
-
/**
|
|
2597
|
-
* Selectors
|
|
2598
|
-
*/
|
|
2599
2264
|
declare const selectOrganizationRaw: (state: RootState) => OrganizationState;
|
|
2600
2265
|
declare const selectOrganizationId: (state: RootState) => string | undefined;
|
|
2601
|
-
/**
|
|
2602
|
-
* Reducers
|
|
2603
|
-
*/
|
|
2604
2266
|
declare const selectShouldFetchOrganization: ((state: {
|
|
2605
2267
|
app: AppState;
|
|
2606
2268
|
chat: ChatState;
|
|
@@ -2677,9 +2339,6 @@ interface StreamStatusUpdate {
|
|
|
2677
2339
|
state: StreamState;
|
|
2678
2340
|
}
|
|
2679
2341
|
|
|
2680
|
-
/**
|
|
2681
|
-
* Reducer
|
|
2682
|
-
*/
|
|
2683
2342
|
interface RemoteParticipantState {
|
|
2684
2343
|
remoteParticipants: RemoteParticipant[];
|
|
2685
2344
|
}
|
|
@@ -2742,6 +2401,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2742
2401
|
dispatchEvent: (event: Event) => boolean;
|
|
2743
2402
|
inboundId?: string | undefined;
|
|
2744
2403
|
} | null;
|
|
2404
|
+
externalId: string | null;
|
|
2745
2405
|
}[];
|
|
2746
2406
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
2747
2407
|
remoteParticipants: {
|
|
@@ -2801,6 +2461,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2801
2461
|
dispatchEvent: (event: Event) => boolean;
|
|
2802
2462
|
inboundId?: string | undefined;
|
|
2803
2463
|
} | null;
|
|
2464
|
+
externalId: string | null;
|
|
2804
2465
|
}[];
|
|
2805
2466
|
};
|
|
2806
2467
|
participantStreamAdded: (state: {
|
|
@@ -2861,6 +2522,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2861
2522
|
dispatchEvent: (event: Event) => boolean;
|
|
2862
2523
|
inboundId?: string | undefined;
|
|
2863
2524
|
} | null;
|
|
2525
|
+
externalId: string | null;
|
|
2864
2526
|
}[];
|
|
2865
2527
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
2866
2528
|
participantStreamIdAdded: (state: {
|
|
@@ -2921,24 +2583,19 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2921
2583
|
dispatchEvent: (event: Event) => boolean;
|
|
2922
2584
|
inboundId?: string | undefined;
|
|
2923
2585
|
} | null;
|
|
2586
|
+
externalId: string | null;
|
|
2924
2587
|
}[];
|
|
2925
2588
|
}, action: PayloadAction<{
|
|
2926
2589
|
clientId: string;
|
|
2927
2590
|
streamId: string;
|
|
2928
2591
|
}>) => RemoteParticipantState;
|
|
2929
2592
|
}, "remoteParticipants", "remoteParticipants", _reduxjs_toolkit.SliceSelectors<RemoteParticipantState>>;
|
|
2930
|
-
/**
|
|
2931
|
-
* Action creators
|
|
2932
|
-
*/
|
|
2933
2593
|
declare const participantStreamAdded: _reduxjs_toolkit.ActionCreatorWithPayload<RtcStreamAddedPayload, "remoteParticipants/participantStreamAdded">;
|
|
2934
2594
|
declare const participantStreamIdAdded: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
2935
2595
|
clientId: string;
|
|
2936
2596
|
streamId: string;
|
|
2937
2597
|
}, "remoteParticipants/participantStreamIdAdded">;
|
|
2938
2598
|
declare const streamStatusUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<StreamStatusUpdate[], "remoteParticipants/streamStatusUpdated">;
|
|
2939
|
-
/**
|
|
2940
|
-
* Selectors
|
|
2941
|
-
*/
|
|
2942
2599
|
declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipantState;
|
|
2943
2600
|
declare const selectRemoteParticipants: (state: RootState) => RemoteParticipant[];
|
|
2944
2601
|
declare const selectScreenshares: ((state: {
|
|
@@ -2996,9 +2653,6 @@ declare const selectScreenshares: ((state: {
|
|
|
2996
2653
|
};
|
|
2997
2654
|
|
|
2998
2655
|
type ConnectionStatus = "initializing" | "connecting" | "connected" | "reconnect" | "room_locked" | "knocking" | "disconnecting" | "disconnected" | "knock_rejected" | "kicked";
|
|
2999
|
-
/**
|
|
3000
|
-
* Reducer
|
|
3001
|
-
*/
|
|
3002
2656
|
interface RoomConnectionState {
|
|
3003
2657
|
session: {
|
|
3004
2658
|
createdAt: string;
|
|
@@ -3026,9 +2680,6 @@ declare const roomConnectionSlice: _reduxjs_toolkit.Slice<RoomConnectionState, {
|
|
|
3026
2680
|
}, "roomConnection", "roomConnection", _reduxjs_toolkit.SliceSelectors<RoomConnectionState>>;
|
|
3027
2681
|
declare const doKnockRoom: (args: void) => AppThunk<void>;
|
|
3028
2682
|
declare const doConnectRoom: (args: void) => AppThunk<void>;
|
|
3029
|
-
/**
|
|
3030
|
-
* Selectors
|
|
3031
|
-
*/
|
|
3032
2683
|
declare const selectRoomConnectionRaw: (state: RootState) => RoomConnectionState;
|
|
3033
2684
|
declare const selectRoomConnectionSession: (state: RootState) => {
|
|
3034
2685
|
createdAt: string;
|
|
@@ -3037,9 +2688,6 @@ declare const selectRoomConnectionSession: (state: RootState) => {
|
|
|
3037
2688
|
declare const selectRoomConnectionSessionId: (state: RootState) => string | undefined;
|
|
3038
2689
|
declare const selectRoomConnectionStatus: (state: RootState) => ConnectionStatus;
|
|
3039
2690
|
declare const selectRoomConnectionError: (state: RootState) => string | null;
|
|
3040
|
-
/**
|
|
3041
|
-
* Reactors
|
|
3042
|
-
*/
|
|
3043
2691
|
declare const selectShouldConnectRoom: ((state: {
|
|
3044
2692
|
app: AppState;
|
|
3045
2693
|
chat: ChatState;
|
|
@@ -3145,9 +2793,6 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
3145
2793
|
declare const createWebRtcEmitter: (dispatch: AppDispatch) => {
|
|
3146
2794
|
emit: (eventName: keyof RtcEvents, data: RtcEvents[keyof RtcEvents]) => void;
|
|
3147
2795
|
};
|
|
3148
|
-
/**
|
|
3149
|
-
* Reducer
|
|
3150
|
-
*/
|
|
3151
2796
|
interface StreamResolutionUpdate {
|
|
3152
2797
|
streamId: string;
|
|
3153
2798
|
width: number;
|
|
@@ -3178,16 +2823,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3178
2823
|
};
|
|
3179
2824
|
};
|
|
3180
2825
|
rtcManager: {
|
|
3181
|
-
acceptNewStream: ({ activeBreakout
|
|
3182
|
-
activeBreakout:
|
|
3183
|
-
clientId:
|
|
3184
|
-
shouldAddLocalVideo:
|
|
3185
|
-
streamId:
|
|
2826
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2827
|
+
activeBreakout: boolean;
|
|
2828
|
+
clientId: string;
|
|
2829
|
+
shouldAddLocalVideo: boolean;
|
|
2830
|
+
streamId: string;
|
|
3186
2831
|
}) => void;
|
|
3187
2832
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3188
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
2833
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3189
2834
|
disconnectAll: () => void;
|
|
3190
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
2835
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3191
2836
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3192
2837
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3193
2838
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3195,8 +2840,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3195
2840
|
height: number;
|
|
3196
2841
|
}) => void;
|
|
3197
2842
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2843
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2844
|
+
selfId: string;
|
|
2845
|
+
roomName: string;
|
|
2846
|
+
isSfu: boolean;
|
|
2847
|
+
}) => boolean;
|
|
2848
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2849
|
+
hasClient: (clientId: string) => boolean;
|
|
2850
|
+
} | null;
|
|
2851
|
+
rtcManagerDispatcher: {
|
|
2852
|
+
emitter: {
|
|
2853
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
2854
|
+
};
|
|
2855
|
+
currentManager: {
|
|
2856
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2857
|
+
activeBreakout: boolean;
|
|
2858
|
+
clientId: string;
|
|
2859
|
+
shouldAddLocalVideo: boolean;
|
|
2860
|
+
streamId: string;
|
|
2861
|
+
}) => void;
|
|
2862
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
2863
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
2864
|
+
disconnectAll: () => void;
|
|
2865
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
2866
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
2867
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
2868
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
2869
|
+
width: number;
|
|
2870
|
+
height: number;
|
|
2871
|
+
}) => void;
|
|
2872
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2873
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2874
|
+
selfId: string;
|
|
2875
|
+
roomName: string;
|
|
2876
|
+
isSfu: boolean;
|
|
2877
|
+
}) => boolean;
|
|
2878
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2879
|
+
hasClient: (clientId: string) => boolean;
|
|
2880
|
+
} | null;
|
|
2881
|
+
stopRtcManager: () => void;
|
|
3198
2882
|
} | null;
|
|
3199
|
-
rtcManagerDispatcher: {} | null;
|
|
3200
2883
|
rtcManagerInitialized: boolean;
|
|
3201
2884
|
status: "" | "ready" | "reconnect";
|
|
3202
2885
|
isAcceptingStreams: boolean;
|
|
@@ -3212,16 +2895,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3212
2895
|
};
|
|
3213
2896
|
};
|
|
3214
2897
|
rtcManager: {
|
|
3215
|
-
acceptNewStream: ({ activeBreakout
|
|
3216
|
-
activeBreakout:
|
|
3217
|
-
clientId:
|
|
3218
|
-
shouldAddLocalVideo:
|
|
3219
|
-
streamId:
|
|
2898
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2899
|
+
activeBreakout: boolean;
|
|
2900
|
+
clientId: string;
|
|
2901
|
+
shouldAddLocalVideo: boolean;
|
|
2902
|
+
streamId: string;
|
|
3220
2903
|
}) => void;
|
|
3221
2904
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3222
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
2905
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3223
2906
|
disconnectAll: () => void;
|
|
3224
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
2907
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3225
2908
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3226
2909
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3227
2910
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3229,8 +2912,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3229
2912
|
height: number;
|
|
3230
2913
|
}) => void;
|
|
3231
2914
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2915
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2916
|
+
selfId: string;
|
|
2917
|
+
roomName: string;
|
|
2918
|
+
isSfu: boolean;
|
|
2919
|
+
}) => boolean;
|
|
2920
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2921
|
+
hasClient: (clientId: string) => boolean;
|
|
2922
|
+
} | null;
|
|
2923
|
+
rtcManagerDispatcher: {
|
|
2924
|
+
emitter: {
|
|
2925
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
2926
|
+
};
|
|
2927
|
+
currentManager: {
|
|
2928
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2929
|
+
activeBreakout: boolean;
|
|
2930
|
+
clientId: string;
|
|
2931
|
+
shouldAddLocalVideo: boolean;
|
|
2932
|
+
streamId: string;
|
|
2933
|
+
}) => void;
|
|
2934
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
2935
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
2936
|
+
disconnectAll: () => void;
|
|
2937
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
2938
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
2939
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
2940
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
2941
|
+
width: number;
|
|
2942
|
+
height: number;
|
|
2943
|
+
}) => void;
|
|
2944
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2945
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2946
|
+
selfId: string;
|
|
2947
|
+
roomName: string;
|
|
2948
|
+
isSfu: boolean;
|
|
2949
|
+
}) => boolean;
|
|
2950
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2951
|
+
hasClient: (clientId: string) => boolean;
|
|
2952
|
+
} | null;
|
|
2953
|
+
stopRtcManager: () => void;
|
|
3232
2954
|
} | null;
|
|
3233
|
-
rtcManagerDispatcher: {} | null;
|
|
3234
2955
|
rtcManagerInitialized: boolean;
|
|
3235
2956
|
status: "" | "ready" | "reconnect";
|
|
3236
2957
|
};
|
|
@@ -3245,16 +2966,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3245
2966
|
};
|
|
3246
2967
|
};
|
|
3247
2968
|
rtcManager: {
|
|
3248
|
-
acceptNewStream: ({ activeBreakout
|
|
3249
|
-
activeBreakout:
|
|
3250
|
-
clientId:
|
|
3251
|
-
shouldAddLocalVideo:
|
|
3252
|
-
streamId:
|
|
2969
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2970
|
+
activeBreakout: boolean;
|
|
2971
|
+
clientId: string;
|
|
2972
|
+
shouldAddLocalVideo: boolean;
|
|
2973
|
+
streamId: string;
|
|
3253
2974
|
}) => void;
|
|
3254
2975
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3255
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
2976
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3256
2977
|
disconnectAll: () => void;
|
|
3257
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
2978
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3258
2979
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3259
2980
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3260
2981
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3262,8 +2983,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3262
2983
|
height: number;
|
|
3263
2984
|
}) => void;
|
|
3264
2985
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2986
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2987
|
+
selfId: string;
|
|
2988
|
+
roomName: string;
|
|
2989
|
+
isSfu: boolean;
|
|
2990
|
+
}) => boolean;
|
|
2991
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2992
|
+
hasClient: (clientId: string) => boolean;
|
|
2993
|
+
} | null;
|
|
2994
|
+
rtcManagerDispatcher: {
|
|
2995
|
+
emitter: {
|
|
2996
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
2997
|
+
};
|
|
2998
|
+
currentManager: {
|
|
2999
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3000
|
+
activeBreakout: boolean;
|
|
3001
|
+
clientId: string;
|
|
3002
|
+
shouldAddLocalVideo: boolean;
|
|
3003
|
+
streamId: string;
|
|
3004
|
+
}) => void;
|
|
3005
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3006
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3007
|
+
disconnectAll: () => void;
|
|
3008
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3009
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3010
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3011
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3012
|
+
width: number;
|
|
3013
|
+
height: number;
|
|
3014
|
+
}) => void;
|
|
3015
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3016
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3017
|
+
selfId: string;
|
|
3018
|
+
roomName: string;
|
|
3019
|
+
isSfu: boolean;
|
|
3020
|
+
}) => boolean;
|
|
3021
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3022
|
+
hasClient: (clientId: string) => boolean;
|
|
3023
|
+
} | null;
|
|
3024
|
+
stopRtcManager: () => void;
|
|
3265
3025
|
} | null;
|
|
3266
|
-
rtcManagerDispatcher: {} | null;
|
|
3267
3026
|
rtcManagerInitialized: boolean;
|
|
3268
3027
|
status: "" | "ready" | "reconnect";
|
|
3269
3028
|
isAcceptingStreams: boolean;
|
|
@@ -3281,16 +3040,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3281
3040
|
error: unknown;
|
|
3282
3041
|
isCreatingDispatcher: boolean;
|
|
3283
3042
|
rtcManager: {
|
|
3284
|
-
acceptNewStream: ({ activeBreakout
|
|
3285
|
-
activeBreakout:
|
|
3286
|
-
clientId:
|
|
3287
|
-
shouldAddLocalVideo:
|
|
3288
|
-
streamId:
|
|
3043
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3044
|
+
activeBreakout: boolean;
|
|
3045
|
+
clientId: string;
|
|
3046
|
+
shouldAddLocalVideo: boolean;
|
|
3047
|
+
streamId: string;
|
|
3289
3048
|
}) => void;
|
|
3290
3049
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3291
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3050
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3292
3051
|
disconnectAll: () => void;
|
|
3293
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3052
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3294
3053
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3295
3054
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3296
3055
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3298,8 +3057,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3298
3057
|
height: number;
|
|
3299
3058
|
}) => void;
|
|
3300
3059
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3060
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3061
|
+
selfId: string;
|
|
3062
|
+
roomName: string;
|
|
3063
|
+
isSfu: boolean;
|
|
3064
|
+
}) => boolean;
|
|
3065
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3066
|
+
hasClient: (clientId: string) => boolean;
|
|
3067
|
+
} | null;
|
|
3068
|
+
rtcManagerDispatcher: {
|
|
3069
|
+
emitter: {
|
|
3070
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3071
|
+
};
|
|
3072
|
+
currentManager: {
|
|
3073
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3074
|
+
activeBreakout: boolean;
|
|
3075
|
+
clientId: string;
|
|
3076
|
+
shouldAddLocalVideo: boolean;
|
|
3077
|
+
streamId: string;
|
|
3078
|
+
}) => void;
|
|
3079
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3080
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3081
|
+
disconnectAll: () => void;
|
|
3082
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3083
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3084
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3085
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3086
|
+
width: number;
|
|
3087
|
+
height: number;
|
|
3088
|
+
}) => void;
|
|
3089
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3090
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3091
|
+
selfId: string;
|
|
3092
|
+
roomName: string;
|
|
3093
|
+
isSfu: boolean;
|
|
3094
|
+
}) => boolean;
|
|
3095
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3096
|
+
hasClient: (clientId: string) => boolean;
|
|
3097
|
+
} | null;
|
|
3098
|
+
stopRtcManager: () => void;
|
|
3301
3099
|
} | null;
|
|
3302
|
-
rtcManagerDispatcher: {} | null;
|
|
3303
3100
|
rtcManagerInitialized: boolean;
|
|
3304
3101
|
status: "" | "ready" | "reconnect";
|
|
3305
3102
|
isAcceptingStreams: boolean;
|
|
@@ -3328,16 +3125,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3328
3125
|
};
|
|
3329
3126
|
};
|
|
3330
3127
|
rtcManager: {
|
|
3331
|
-
acceptNewStream: ({ activeBreakout
|
|
3332
|
-
activeBreakout:
|
|
3333
|
-
clientId:
|
|
3334
|
-
shouldAddLocalVideo:
|
|
3335
|
-
streamId:
|
|
3128
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3129
|
+
activeBreakout: boolean;
|
|
3130
|
+
clientId: string;
|
|
3131
|
+
shouldAddLocalVideo: boolean;
|
|
3132
|
+
streamId: string;
|
|
3336
3133
|
}) => void;
|
|
3337
3134
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3338
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3135
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3339
3136
|
disconnectAll: () => void;
|
|
3340
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3137
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3341
3138
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3342
3139
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3343
3140
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3345,8 +3142,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3345
3142
|
height: number;
|
|
3346
3143
|
}) => void;
|
|
3347
3144
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3145
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3146
|
+
selfId: string;
|
|
3147
|
+
roomName: string;
|
|
3148
|
+
isSfu: boolean;
|
|
3149
|
+
}) => boolean;
|
|
3150
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3151
|
+
hasClient: (clientId: string) => boolean;
|
|
3152
|
+
} | null;
|
|
3153
|
+
rtcManagerDispatcher: {
|
|
3154
|
+
emitter: {
|
|
3155
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3156
|
+
};
|
|
3157
|
+
currentManager: {
|
|
3158
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3159
|
+
activeBreakout: boolean;
|
|
3160
|
+
clientId: string;
|
|
3161
|
+
shouldAddLocalVideo: boolean;
|
|
3162
|
+
streamId: string;
|
|
3163
|
+
}) => void;
|
|
3164
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3165
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3166
|
+
disconnectAll: () => void;
|
|
3167
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3168
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3169
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3170
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3171
|
+
width: number;
|
|
3172
|
+
height: number;
|
|
3173
|
+
}) => void;
|
|
3174
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3175
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3176
|
+
selfId: string;
|
|
3177
|
+
roomName: string;
|
|
3178
|
+
isSfu: boolean;
|
|
3179
|
+
}) => boolean;
|
|
3180
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3181
|
+
hasClient: (clientId: string) => boolean;
|
|
3182
|
+
} | null;
|
|
3183
|
+
stopRtcManager: () => void;
|
|
3348
3184
|
} | null;
|
|
3349
|
-
rtcManagerDispatcher: {} | null;
|
|
3350
3185
|
rtcManagerInitialized: boolean;
|
|
3351
3186
|
status: "" | "ready" | "reconnect";
|
|
3352
3187
|
isAcceptingStreams: boolean;
|
|
@@ -3362,16 +3197,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3362
3197
|
};
|
|
3363
3198
|
};
|
|
3364
3199
|
rtcManager: {
|
|
3365
|
-
acceptNewStream: ({ activeBreakout
|
|
3366
|
-
activeBreakout:
|
|
3367
|
-
clientId:
|
|
3368
|
-
shouldAddLocalVideo:
|
|
3369
|
-
streamId:
|
|
3200
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3201
|
+
activeBreakout: boolean;
|
|
3202
|
+
clientId: string;
|
|
3203
|
+
shouldAddLocalVideo: boolean;
|
|
3204
|
+
streamId: string;
|
|
3370
3205
|
}) => void;
|
|
3371
3206
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3372
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3207
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3373
3208
|
disconnectAll: () => void;
|
|
3374
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3209
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3375
3210
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3376
3211
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3377
3212
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3379,6 +3214,13 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3379
3214
|
height: number;
|
|
3380
3215
|
}) => void;
|
|
3381
3216
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3217
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3218
|
+
selfId: string;
|
|
3219
|
+
roomName: string;
|
|
3220
|
+
isSfu: boolean;
|
|
3221
|
+
}) => boolean;
|
|
3222
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3223
|
+
hasClient: (clientId: string) => boolean;
|
|
3382
3224
|
} | null;
|
|
3383
3225
|
rtcManagerInitialized: boolean;
|
|
3384
3226
|
status: "" | "ready" | "reconnect";
|
|
@@ -3395,16 +3237,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3395
3237
|
};
|
|
3396
3238
|
};
|
|
3397
3239
|
rtcManager: {
|
|
3398
|
-
acceptNewStream: ({ activeBreakout
|
|
3399
|
-
activeBreakout:
|
|
3400
|
-
clientId:
|
|
3401
|
-
shouldAddLocalVideo:
|
|
3402
|
-
streamId:
|
|
3240
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3241
|
+
activeBreakout: boolean;
|
|
3242
|
+
clientId: string;
|
|
3243
|
+
shouldAddLocalVideo: boolean;
|
|
3244
|
+
streamId: string;
|
|
3403
3245
|
}) => void;
|
|
3404
3246
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3405
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3247
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3406
3248
|
disconnectAll: () => void;
|
|
3407
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3249
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3408
3250
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3409
3251
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3410
3252
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3412,8 +3254,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3412
3254
|
height: number;
|
|
3413
3255
|
}) => void;
|
|
3414
3256
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3257
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3258
|
+
selfId: string;
|
|
3259
|
+
roomName: string;
|
|
3260
|
+
isSfu: boolean;
|
|
3261
|
+
}) => boolean;
|
|
3262
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3263
|
+
hasClient: (clientId: string) => boolean;
|
|
3264
|
+
} | null;
|
|
3265
|
+
rtcManagerDispatcher: {
|
|
3266
|
+
emitter: {
|
|
3267
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3268
|
+
};
|
|
3269
|
+
currentManager: {
|
|
3270
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3271
|
+
activeBreakout: boolean;
|
|
3272
|
+
clientId: string;
|
|
3273
|
+
shouldAddLocalVideo: boolean;
|
|
3274
|
+
streamId: string;
|
|
3275
|
+
}) => void;
|
|
3276
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3277
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3278
|
+
disconnectAll: () => void;
|
|
3279
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3280
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3281
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3282
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3283
|
+
width: number;
|
|
3284
|
+
height: number;
|
|
3285
|
+
}) => void;
|
|
3286
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3287
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3288
|
+
selfId: string;
|
|
3289
|
+
roomName: string;
|
|
3290
|
+
isSfu: boolean;
|
|
3291
|
+
}) => boolean;
|
|
3292
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3293
|
+
hasClient: (clientId: string) => boolean;
|
|
3294
|
+
} | null;
|
|
3295
|
+
stopRtcManager: () => void;
|
|
3415
3296
|
} | null;
|
|
3416
|
-
rtcManagerDispatcher: {} | null;
|
|
3417
3297
|
rtcManagerInitialized: boolean;
|
|
3418
3298
|
status: "" | "ready" | "reconnect";
|
|
3419
3299
|
isAcceptingStreams: boolean;
|
|
@@ -3429,7 +3309,38 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3429
3309
|
height: number;
|
|
3430
3310
|
};
|
|
3431
3311
|
};
|
|
3432
|
-
rtcManagerDispatcher: {
|
|
3312
|
+
rtcManagerDispatcher: {
|
|
3313
|
+
emitter: {
|
|
3314
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3315
|
+
};
|
|
3316
|
+
currentManager: {
|
|
3317
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3318
|
+
activeBreakout: boolean;
|
|
3319
|
+
clientId: string;
|
|
3320
|
+
shouldAddLocalVideo: boolean;
|
|
3321
|
+
streamId: string;
|
|
3322
|
+
}) => void;
|
|
3323
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3324
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3325
|
+
disconnectAll: () => void;
|
|
3326
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3327
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3328
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3329
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3330
|
+
width: number;
|
|
3331
|
+
height: number;
|
|
3332
|
+
}) => void;
|
|
3333
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3334
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3335
|
+
selfId: string;
|
|
3336
|
+
roomName: string;
|
|
3337
|
+
isSfu: boolean;
|
|
3338
|
+
}) => boolean;
|
|
3339
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3340
|
+
hasClient: (clientId: string) => boolean;
|
|
3341
|
+
} | null;
|
|
3342
|
+
stopRtcManager: () => void;
|
|
3343
|
+
} | null;
|
|
3433
3344
|
rtcManagerInitialized: boolean;
|
|
3434
3345
|
isAcceptingStreams: boolean;
|
|
3435
3346
|
};
|
|
@@ -3444,16 +3355,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3444
3355
|
};
|
|
3445
3356
|
};
|
|
3446
3357
|
rtcManager: {
|
|
3447
|
-
acceptNewStream: ({ activeBreakout
|
|
3448
|
-
activeBreakout:
|
|
3449
|
-
clientId:
|
|
3450
|
-
shouldAddLocalVideo:
|
|
3451
|
-
streamId:
|
|
3358
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3359
|
+
activeBreakout: boolean;
|
|
3360
|
+
clientId: string;
|
|
3361
|
+
shouldAddLocalVideo: boolean;
|
|
3362
|
+
streamId: string;
|
|
3452
3363
|
}) => void;
|
|
3453
3364
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3454
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3365
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3455
3366
|
disconnectAll: () => void;
|
|
3456
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3367
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3457
3368
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3458
3369
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3459
3370
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3461,8 +3372,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3461
3372
|
height: number;
|
|
3462
3373
|
}) => void;
|
|
3463
3374
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3375
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3376
|
+
selfId: string;
|
|
3377
|
+
roomName: string;
|
|
3378
|
+
isSfu: boolean;
|
|
3379
|
+
}) => boolean;
|
|
3380
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3381
|
+
hasClient: (clientId: string) => boolean;
|
|
3382
|
+
} | null;
|
|
3383
|
+
rtcManagerDispatcher: {
|
|
3384
|
+
emitter: {
|
|
3385
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3386
|
+
};
|
|
3387
|
+
currentManager: {
|
|
3388
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3389
|
+
activeBreakout: boolean;
|
|
3390
|
+
clientId: string;
|
|
3391
|
+
shouldAddLocalVideo: boolean;
|
|
3392
|
+
streamId: string;
|
|
3393
|
+
}) => void;
|
|
3394
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3395
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3396
|
+
disconnectAll: () => void;
|
|
3397
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3398
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3399
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3400
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3401
|
+
width: number;
|
|
3402
|
+
height: number;
|
|
3403
|
+
}) => void;
|
|
3404
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3405
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3406
|
+
selfId: string;
|
|
3407
|
+
roomName: string;
|
|
3408
|
+
isSfu: boolean;
|
|
3409
|
+
}) => boolean;
|
|
3410
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3411
|
+
hasClient: (clientId: string) => boolean;
|
|
3412
|
+
} | null;
|
|
3413
|
+
stopRtcManager: () => void;
|
|
3464
3414
|
} | null;
|
|
3465
|
-
rtcManagerDispatcher: {} | null;
|
|
3466
3415
|
rtcManagerInitialized: boolean;
|
|
3467
3416
|
status: "" | "ready" | "reconnect";
|
|
3468
3417
|
isAcceptingStreams: boolean;
|
|
@@ -3477,7 +3426,38 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3477
3426
|
height: number;
|
|
3478
3427
|
};
|
|
3479
3428
|
};
|
|
3480
|
-
rtcManagerDispatcher: {
|
|
3429
|
+
rtcManagerDispatcher: {
|
|
3430
|
+
emitter: {
|
|
3431
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3432
|
+
};
|
|
3433
|
+
currentManager: {
|
|
3434
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3435
|
+
activeBreakout: boolean;
|
|
3436
|
+
clientId: string;
|
|
3437
|
+
shouldAddLocalVideo: boolean;
|
|
3438
|
+
streamId: string;
|
|
3439
|
+
}) => void;
|
|
3440
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3441
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3442
|
+
disconnectAll: () => void;
|
|
3443
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3444
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3445
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3446
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3447
|
+
width: number;
|
|
3448
|
+
height: number;
|
|
3449
|
+
}) => void;
|
|
3450
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3451
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3452
|
+
selfId: string;
|
|
3453
|
+
roomName: string;
|
|
3454
|
+
isSfu: boolean;
|
|
3455
|
+
}) => boolean;
|
|
3456
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3457
|
+
hasClient: (clientId: string) => boolean;
|
|
3458
|
+
} | null;
|
|
3459
|
+
stopRtcManager: () => void;
|
|
3460
|
+
} | null;
|
|
3481
3461
|
rtcManagerInitialized: boolean;
|
|
3482
3462
|
status: "" | "ready" | "reconnect";
|
|
3483
3463
|
isAcceptingStreams: boolean;
|
|
@@ -3493,16 +3473,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3493
3473
|
};
|
|
3494
3474
|
};
|
|
3495
3475
|
rtcManager: {
|
|
3496
|
-
acceptNewStream: ({ activeBreakout
|
|
3497
|
-
activeBreakout:
|
|
3498
|
-
clientId:
|
|
3499
|
-
shouldAddLocalVideo:
|
|
3500
|
-
streamId:
|
|
3476
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3477
|
+
activeBreakout: boolean;
|
|
3478
|
+
clientId: string;
|
|
3479
|
+
shouldAddLocalVideo: boolean;
|
|
3480
|
+
streamId: string;
|
|
3501
3481
|
}) => void;
|
|
3502
3482
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3503
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3483
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3504
3484
|
disconnectAll: () => void;
|
|
3505
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3485
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3506
3486
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3507
3487
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3508
3488
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3510,8 +3490,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3510
3490
|
height: number;
|
|
3511
3491
|
}) => void;
|
|
3512
3492
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3493
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3494
|
+
selfId: string;
|
|
3495
|
+
roomName: string;
|
|
3496
|
+
isSfu: boolean;
|
|
3497
|
+
}) => boolean;
|
|
3498
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3499
|
+
hasClient: (clientId: string) => boolean;
|
|
3500
|
+
} | null;
|
|
3501
|
+
rtcManagerDispatcher: {
|
|
3502
|
+
emitter: {
|
|
3503
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3504
|
+
};
|
|
3505
|
+
currentManager: {
|
|
3506
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3507
|
+
activeBreakout: boolean;
|
|
3508
|
+
clientId: string;
|
|
3509
|
+
shouldAddLocalVideo: boolean;
|
|
3510
|
+
streamId: string;
|
|
3511
|
+
}) => void;
|
|
3512
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3513
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3514
|
+
disconnectAll: () => void;
|
|
3515
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3516
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3517
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3518
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3519
|
+
width: number;
|
|
3520
|
+
height: number;
|
|
3521
|
+
}) => void;
|
|
3522
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3523
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3524
|
+
selfId: string;
|
|
3525
|
+
roomName: string;
|
|
3526
|
+
isSfu: boolean;
|
|
3527
|
+
}) => boolean;
|
|
3528
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3529
|
+
hasClient: (clientId: string) => boolean;
|
|
3530
|
+
} | null;
|
|
3531
|
+
stopRtcManager: () => void;
|
|
3513
3532
|
} | null;
|
|
3514
|
-
rtcManagerDispatcher: {} | null;
|
|
3515
3533
|
rtcManagerInitialized: boolean;
|
|
3516
3534
|
status: "" | "ready" | "reconnect";
|
|
3517
3535
|
isAcceptingStreams: boolean;
|
|
@@ -3527,16 +3545,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3527
3545
|
};
|
|
3528
3546
|
};
|
|
3529
3547
|
rtcManager: {
|
|
3530
|
-
acceptNewStream: ({ activeBreakout
|
|
3531
|
-
activeBreakout:
|
|
3532
|
-
clientId:
|
|
3533
|
-
shouldAddLocalVideo:
|
|
3534
|
-
streamId:
|
|
3548
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3549
|
+
activeBreakout: boolean;
|
|
3550
|
+
clientId: string;
|
|
3551
|
+
shouldAddLocalVideo: boolean;
|
|
3552
|
+
streamId: string;
|
|
3535
3553
|
}) => void;
|
|
3536
3554
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3537
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3555
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3538
3556
|
disconnectAll: () => void;
|
|
3539
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3557
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3540
3558
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3541
3559
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3542
3560
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3544,15 +3562,50 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3544
3562
|
height: number;
|
|
3545
3563
|
}) => void;
|
|
3546
3564
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3565
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3566
|
+
selfId: string;
|
|
3567
|
+
roomName: string;
|
|
3568
|
+
isSfu: boolean;
|
|
3569
|
+
}) => boolean;
|
|
3570
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3571
|
+
hasClient: (clientId: string) => boolean;
|
|
3572
|
+
} | null;
|
|
3573
|
+
rtcManagerDispatcher: {
|
|
3574
|
+
emitter: {
|
|
3575
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3576
|
+
};
|
|
3577
|
+
currentManager: {
|
|
3578
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3579
|
+
activeBreakout: boolean;
|
|
3580
|
+
clientId: string;
|
|
3581
|
+
shouldAddLocalVideo: boolean;
|
|
3582
|
+
streamId: string;
|
|
3583
|
+
}) => void;
|
|
3584
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3585
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3586
|
+
disconnectAll: () => void;
|
|
3587
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3588
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3589
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3590
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3591
|
+
width: number;
|
|
3592
|
+
height: number;
|
|
3593
|
+
}) => void;
|
|
3594
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3595
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3596
|
+
selfId: string;
|
|
3597
|
+
roomName: string;
|
|
3598
|
+
isSfu: boolean;
|
|
3599
|
+
}) => boolean;
|
|
3600
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3601
|
+
hasClient: (clientId: string) => boolean;
|
|
3602
|
+
} | null;
|
|
3603
|
+
stopRtcManager: () => void;
|
|
3547
3604
|
} | null;
|
|
3548
|
-
rtcManagerDispatcher: {} | null;
|
|
3549
3605
|
status: "" | "ready" | "reconnect";
|
|
3550
3606
|
isAcceptingStreams: boolean;
|
|
3551
3607
|
};
|
|
3552
3608
|
}, "rtcConnection", "rtcConnection", _reduxjs_toolkit.SliceSelectors<RtcConnectionState>>;
|
|
3553
|
-
/**
|
|
3554
|
-
* Action creators
|
|
3555
|
-
*/
|
|
3556
3609
|
declare const resolutionReported: _reduxjs_toolkit.ActionCreatorWithPayload<StreamResolutionUpdate, "rtcConnection/resolutionReported">;
|
|
3557
3610
|
declare const rtcDispatcherCreated: _reduxjs_toolkit.ActionCreatorWithPayload<RtcManagerDispatcher, "rtcConnection/rtcDispatcherCreated">;
|
|
3558
3611
|
declare const rtcDisconnected: _reduxjs_toolkit.ActionCreatorWithoutPayload<"rtcConnection/rtcDisconnected">;
|
|
@@ -3566,9 +3619,6 @@ declare const doHandleAcceptStreams: (args: StreamStatusUpdate[]) => AppThunk<vo
|
|
|
3566
3619
|
declare const doRtcReportStreamResolution: (args: StreamResolutionUpdate) => AppThunk<void>;
|
|
3567
3620
|
declare const doRtcManagerCreated: (args: RtcManagerCreatedPayload) => AppThunk<void>;
|
|
3568
3621
|
declare const doRtcManagerInitialize: (args: void) => AppThunk<void>;
|
|
3569
|
-
/**
|
|
3570
|
-
* Selectors
|
|
3571
|
-
*/
|
|
3572
3622
|
declare const selectRtcConnectionRaw: (state: RootState) => RtcConnectionState;
|
|
3573
3623
|
declare const selectRtcManagerInitialized: (state: RootState) => boolean;
|
|
3574
3624
|
declare const selectRtcManager: (state: RootState) => RtcManager | null;
|
|
@@ -3597,8 +3647,8 @@ declare const selectShouldConnectRtc: ((state: {
|
|
|
3597
3647
|
resultsCount: () => number;
|
|
3598
3648
|
resetResultsCount: () => void;
|
|
3599
3649
|
} & {
|
|
3600
|
-
resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2:
|
|
3601
|
-
memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2:
|
|
3650
|
+
resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2: _whereby_com_media.ServerSocket | null) => boolean;
|
|
3651
|
+
memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2: _whereby_com_media.ServerSocket | null) => boolean) & {
|
|
3602
3652
|
clearCache: () => void;
|
|
3603
3653
|
resultsCount: () => number;
|
|
3604
3654
|
resetResultsCount: () => void;
|
|
@@ -3620,7 +3670,7 @@ declare const selectShouldConnectRtc: ((state: {
|
|
|
3620
3670
|
signalConnection: SignalConnectionState;
|
|
3621
3671
|
streaming: StreamingState;
|
|
3622
3672
|
waitingParticipants: WaitingParticipantsState;
|
|
3623
|
-
}) =>
|
|
3673
|
+
}) => _whereby_com_media.ServerSocket | null];
|
|
3624
3674
|
recomputations: () => number;
|
|
3625
3675
|
resetRecomputations: () => void;
|
|
3626
3676
|
dependencyRecomputations: () => number;
|
|
@@ -3805,14 +3855,11 @@ declare const selectStreamsToAccept: ((state: {
|
|
|
3805
3855
|
memoize: typeof reselect.weakMapMemoize;
|
|
3806
3856
|
};
|
|
3807
3857
|
|
|
3808
|
-
/**
|
|
3809
|
-
* Reducer
|
|
3810
|
-
*/
|
|
3811
3858
|
interface SignalConnectionState {
|
|
3812
3859
|
deviceIdentified: boolean;
|
|
3813
3860
|
isIdentifyingDevice: boolean;
|
|
3814
3861
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3815
|
-
socket:
|
|
3862
|
+
socket: ServerSocket | null;
|
|
3816
3863
|
}
|
|
3817
3864
|
declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionState, {
|
|
3818
3865
|
socketConnecting: (state: {
|
|
@@ -3820,24 +3867,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3820
3867
|
isIdentifyingDevice: boolean;
|
|
3821
3868
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3822
3869
|
socket: {
|
|
3870
|
+
_socket: any;
|
|
3871
|
+
_reconnectManager?: {
|
|
3872
|
+
_socket: any;
|
|
3873
|
+
_clients: any;
|
|
3874
|
+
_signalDisconnectTime?: number | undefined;
|
|
3875
|
+
rtcManager?: {
|
|
3876
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3877
|
+
activeBreakout: boolean;
|
|
3878
|
+
clientId: string;
|
|
3879
|
+
shouldAddLocalVideo: boolean;
|
|
3880
|
+
streamId: string;
|
|
3881
|
+
}) => void;
|
|
3882
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3883
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3884
|
+
disconnectAll: () => void;
|
|
3885
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3886
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3887
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3888
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3889
|
+
width: number;
|
|
3890
|
+
height: number;
|
|
3891
|
+
}) => void;
|
|
3892
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3893
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3894
|
+
selfId: string;
|
|
3895
|
+
roomName: string;
|
|
3896
|
+
isSfu: boolean;
|
|
3897
|
+
}) => boolean;
|
|
3898
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3899
|
+
hasClient: (clientId: string) => boolean;
|
|
3900
|
+
} | undefined;
|
|
3901
|
+
metrics: {
|
|
3902
|
+
roomJoinedLate: number;
|
|
3903
|
+
pendingClientCanceled: number;
|
|
3904
|
+
evaluationFailed: number;
|
|
3905
|
+
roomJoined: number;
|
|
3906
|
+
};
|
|
3907
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
3908
|
+
_onClientLeft: (payload: any) => void;
|
|
3909
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
3910
|
+
_onNewClient: (payload: any) => void;
|
|
3911
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
3912
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
3913
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
3914
|
+
_onAudioEnabled: (payload: any) => void;
|
|
3915
|
+
_onVideoEnabled: (payload: any) => void;
|
|
3916
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
3917
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
3918
|
+
clientId: string;
|
|
3919
|
+
webcam: boolean;
|
|
3920
|
+
mic: boolean;
|
|
3921
|
+
screenShare: boolean;
|
|
3922
|
+
}) => boolean;
|
|
3923
|
+
_addClientToState: (newClient: any) => void;
|
|
3924
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
3925
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
3926
|
+
_resetClientState: (payload: any) => void;
|
|
3927
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
3928
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3929
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3930
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3931
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3932
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3933
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
3934
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
3935
|
+
getMaxListeners: () => number;
|
|
3936
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
3937
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
3938
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
3939
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
3940
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3941
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3942
|
+
eventNames: () => (string | symbol)[];
|
|
3943
|
+
} | null | undefined;
|
|
3944
|
+
noopKeepaliveInterval: any;
|
|
3945
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
3946
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3823
3947
|
connect: () => void;
|
|
3824
3948
|
disconnect: () => void;
|
|
3825
|
-
|
|
3826
|
-
emit:
|
|
3827
|
-
|
|
3828
|
-
|
|
3949
|
+
disconnectOnConnect: () => void;
|
|
3950
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
3951
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
3952
|
+
getTransport: () => any;
|
|
3953
|
+
getManager: () => any;
|
|
3954
|
+
isConnecting: () => any;
|
|
3955
|
+
isConnected: () => any;
|
|
3956
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
3957
|
+
once: (eventName: string, handler: Function) => void;
|
|
3958
|
+
off: (eventName: string, handler: Function) => void;
|
|
3959
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
3960
|
+
getGlitchFreeMetrics: () => {
|
|
3961
|
+
roomJoinedLate: number;
|
|
3962
|
+
pendingClientCanceled: number;
|
|
3963
|
+
evaluationFailed: number;
|
|
3964
|
+
roomJoined: number;
|
|
3965
|
+
} | undefined;
|
|
3829
3966
|
} | null;
|
|
3830
3967
|
}) => {
|
|
3831
3968
|
status: "connecting";
|
|
3832
3969
|
deviceIdentified: boolean;
|
|
3833
3970
|
isIdentifyingDevice: boolean;
|
|
3834
3971
|
socket: {
|
|
3972
|
+
_socket: any;
|
|
3973
|
+
_reconnectManager?: {
|
|
3974
|
+
_socket: any;
|
|
3975
|
+
_clients: any;
|
|
3976
|
+
_signalDisconnectTime?: number | undefined;
|
|
3977
|
+
rtcManager?: {
|
|
3978
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3979
|
+
activeBreakout: boolean;
|
|
3980
|
+
clientId: string;
|
|
3981
|
+
shouldAddLocalVideo: boolean;
|
|
3982
|
+
streamId: string;
|
|
3983
|
+
}) => void;
|
|
3984
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3985
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3986
|
+
disconnectAll: () => void;
|
|
3987
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3988
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3989
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3990
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3991
|
+
width: number;
|
|
3992
|
+
height: number;
|
|
3993
|
+
}) => void;
|
|
3994
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3995
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3996
|
+
selfId: string;
|
|
3997
|
+
roomName: string;
|
|
3998
|
+
isSfu: boolean;
|
|
3999
|
+
}) => boolean;
|
|
4000
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4001
|
+
hasClient: (clientId: string) => boolean;
|
|
4002
|
+
} | undefined;
|
|
4003
|
+
metrics: {
|
|
4004
|
+
roomJoinedLate: number;
|
|
4005
|
+
pendingClientCanceled: number;
|
|
4006
|
+
evaluationFailed: number;
|
|
4007
|
+
roomJoined: number;
|
|
4008
|
+
};
|
|
4009
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4010
|
+
_onClientLeft: (payload: any) => void;
|
|
4011
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4012
|
+
_onNewClient: (payload: any) => void;
|
|
4013
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4014
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4015
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4016
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4017
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4018
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4019
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4020
|
+
clientId: string;
|
|
4021
|
+
webcam: boolean;
|
|
4022
|
+
mic: boolean;
|
|
4023
|
+
screenShare: boolean;
|
|
4024
|
+
}) => boolean;
|
|
4025
|
+
_addClientToState: (newClient: any) => void;
|
|
4026
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4027
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4028
|
+
_resetClientState: (payload: any) => void;
|
|
4029
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4030
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4031
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4032
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4033
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4034
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4035
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4036
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4037
|
+
getMaxListeners: () => number;
|
|
4038
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4039
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4040
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4041
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4042
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4043
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4044
|
+
eventNames: () => (string | symbol)[];
|
|
4045
|
+
} | null | undefined;
|
|
4046
|
+
noopKeepaliveInterval: any;
|
|
4047
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4048
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3835
4049
|
connect: () => void;
|
|
3836
4050
|
disconnect: () => void;
|
|
3837
|
-
|
|
3838
|
-
emit:
|
|
3839
|
-
|
|
3840
|
-
|
|
4051
|
+
disconnectOnConnect: () => void;
|
|
4052
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4053
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4054
|
+
getTransport: () => any;
|
|
4055
|
+
getManager: () => any;
|
|
4056
|
+
isConnecting: () => any;
|
|
4057
|
+
isConnected: () => any;
|
|
4058
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4059
|
+
once: (eventName: string, handler: Function) => void;
|
|
4060
|
+
off: (eventName: string, handler: Function) => void;
|
|
4061
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4062
|
+
getGlitchFreeMetrics: () => {
|
|
4063
|
+
roomJoinedLate: number;
|
|
4064
|
+
pendingClientCanceled: number;
|
|
4065
|
+
evaluationFailed: number;
|
|
4066
|
+
roomJoined: number;
|
|
4067
|
+
} | undefined;
|
|
3841
4068
|
} | null;
|
|
3842
4069
|
};
|
|
3843
4070
|
socketConnected: (state: {
|
|
@@ -3845,15 +4072,105 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3845
4072
|
isIdentifyingDevice: boolean;
|
|
3846
4073
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3847
4074
|
socket: {
|
|
4075
|
+
_socket: any;
|
|
4076
|
+
_reconnectManager?: {
|
|
4077
|
+
_socket: any;
|
|
4078
|
+
_clients: any;
|
|
4079
|
+
_signalDisconnectTime?: number | undefined;
|
|
4080
|
+
rtcManager?: {
|
|
4081
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4082
|
+
activeBreakout: boolean;
|
|
4083
|
+
clientId: string;
|
|
4084
|
+
shouldAddLocalVideo: boolean;
|
|
4085
|
+
streamId: string;
|
|
4086
|
+
}) => void;
|
|
4087
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4088
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4089
|
+
disconnectAll: () => void;
|
|
4090
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4091
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4092
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4093
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4094
|
+
width: number;
|
|
4095
|
+
height: number;
|
|
4096
|
+
}) => void;
|
|
4097
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4098
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4099
|
+
selfId: string;
|
|
4100
|
+
roomName: string;
|
|
4101
|
+
isSfu: boolean;
|
|
4102
|
+
}) => boolean;
|
|
4103
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4104
|
+
hasClient: (clientId: string) => boolean;
|
|
4105
|
+
} | undefined;
|
|
4106
|
+
metrics: {
|
|
4107
|
+
roomJoinedLate: number;
|
|
4108
|
+
pendingClientCanceled: number;
|
|
4109
|
+
evaluationFailed: number;
|
|
4110
|
+
roomJoined: number;
|
|
4111
|
+
};
|
|
4112
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4113
|
+
_onClientLeft: (payload: any) => void;
|
|
4114
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4115
|
+
_onNewClient: (payload: any) => void;
|
|
4116
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4117
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4118
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4119
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4120
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4121
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4122
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4123
|
+
clientId: string;
|
|
4124
|
+
webcam: boolean;
|
|
4125
|
+
mic: boolean;
|
|
4126
|
+
screenShare: boolean;
|
|
4127
|
+
}) => boolean;
|
|
4128
|
+
_addClientToState: (newClient: any) => void;
|
|
4129
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4130
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4131
|
+
_resetClientState: (payload: any) => void;
|
|
4132
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4133
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4134
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4135
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4136
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4137
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4138
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4139
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4140
|
+
getMaxListeners: () => number;
|
|
4141
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4142
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4143
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4144
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4145
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4146
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4147
|
+
eventNames: () => (string | symbol)[];
|
|
4148
|
+
} | null | undefined;
|
|
4149
|
+
noopKeepaliveInterval: any;
|
|
4150
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4151
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3848
4152
|
connect: () => void;
|
|
3849
4153
|
disconnect: () => void;
|
|
3850
|
-
|
|
3851
|
-
emit:
|
|
3852
|
-
|
|
3853
|
-
|
|
4154
|
+
disconnectOnConnect: () => void;
|
|
4155
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4156
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4157
|
+
getTransport: () => any;
|
|
4158
|
+
getManager: () => any;
|
|
4159
|
+
isConnecting: () => any;
|
|
4160
|
+
isConnected: () => any;
|
|
4161
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4162
|
+
once: (eventName: string, handler: Function) => void;
|
|
4163
|
+
off: (eventName: string, handler: Function) => void;
|
|
4164
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4165
|
+
getGlitchFreeMetrics: () => {
|
|
4166
|
+
roomJoinedLate: number;
|
|
4167
|
+
pendingClientCanceled: number;
|
|
4168
|
+
evaluationFailed: number;
|
|
4169
|
+
roomJoined: number;
|
|
4170
|
+
} | undefined;
|
|
3854
4171
|
} | null;
|
|
3855
|
-
}, action: PayloadAction<
|
|
3856
|
-
socket:
|
|
4172
|
+
}, action: PayloadAction<ServerSocket>) => {
|
|
4173
|
+
socket: ServerSocket;
|
|
3857
4174
|
status: "connected";
|
|
3858
4175
|
deviceIdentified: boolean;
|
|
3859
4176
|
isIdentifyingDevice: boolean;
|
|
@@ -3863,24 +4180,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3863
4180
|
isIdentifyingDevice: boolean;
|
|
3864
4181
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3865
4182
|
socket: {
|
|
4183
|
+
_socket: any;
|
|
4184
|
+
_reconnectManager?: {
|
|
4185
|
+
_socket: any;
|
|
4186
|
+
_clients: any;
|
|
4187
|
+
_signalDisconnectTime?: number | undefined;
|
|
4188
|
+
rtcManager?: {
|
|
4189
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4190
|
+
activeBreakout: boolean;
|
|
4191
|
+
clientId: string;
|
|
4192
|
+
shouldAddLocalVideo: boolean;
|
|
4193
|
+
streamId: string;
|
|
4194
|
+
}) => void;
|
|
4195
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4196
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4197
|
+
disconnectAll: () => void;
|
|
4198
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4199
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4200
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4201
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4202
|
+
width: number;
|
|
4203
|
+
height: number;
|
|
4204
|
+
}) => void;
|
|
4205
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4206
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4207
|
+
selfId: string;
|
|
4208
|
+
roomName: string;
|
|
4209
|
+
isSfu: boolean;
|
|
4210
|
+
}) => boolean;
|
|
4211
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4212
|
+
hasClient: (clientId: string) => boolean;
|
|
4213
|
+
} | undefined;
|
|
4214
|
+
metrics: {
|
|
4215
|
+
roomJoinedLate: number;
|
|
4216
|
+
pendingClientCanceled: number;
|
|
4217
|
+
evaluationFailed: number;
|
|
4218
|
+
roomJoined: number;
|
|
4219
|
+
};
|
|
4220
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4221
|
+
_onClientLeft: (payload: any) => void;
|
|
4222
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4223
|
+
_onNewClient: (payload: any) => void;
|
|
4224
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4225
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4226
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4227
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4228
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4229
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4230
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4231
|
+
clientId: string;
|
|
4232
|
+
webcam: boolean;
|
|
4233
|
+
mic: boolean;
|
|
4234
|
+
screenShare: boolean;
|
|
4235
|
+
}) => boolean;
|
|
4236
|
+
_addClientToState: (newClient: any) => void;
|
|
4237
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4238
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4239
|
+
_resetClientState: (payload: any) => void;
|
|
4240
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4241
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4242
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4243
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4244
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4245
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4246
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4247
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4248
|
+
getMaxListeners: () => number;
|
|
4249
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4250
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4251
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4252
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4253
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4254
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4255
|
+
eventNames: () => (string | symbol)[];
|
|
4256
|
+
} | null | undefined;
|
|
4257
|
+
noopKeepaliveInterval: any;
|
|
4258
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4259
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3866
4260
|
connect: () => void;
|
|
3867
4261
|
disconnect: () => void;
|
|
3868
|
-
|
|
3869
|
-
emit:
|
|
3870
|
-
|
|
3871
|
-
|
|
4262
|
+
disconnectOnConnect: () => void;
|
|
4263
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4264
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4265
|
+
getTransport: () => any;
|
|
4266
|
+
getManager: () => any;
|
|
4267
|
+
isConnecting: () => any;
|
|
4268
|
+
isConnected: () => any;
|
|
4269
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4270
|
+
once: (eventName: string, handler: Function) => void;
|
|
4271
|
+
off: (eventName: string, handler: Function) => void;
|
|
4272
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4273
|
+
getGlitchFreeMetrics: () => {
|
|
4274
|
+
roomJoinedLate: number;
|
|
4275
|
+
pendingClientCanceled: number;
|
|
4276
|
+
evaluationFailed: number;
|
|
4277
|
+
roomJoined: number;
|
|
4278
|
+
} | undefined;
|
|
3872
4279
|
} | null;
|
|
3873
4280
|
}) => {
|
|
3874
4281
|
status: "disconnected";
|
|
3875
4282
|
deviceIdentified: boolean;
|
|
3876
4283
|
isIdentifyingDevice: boolean;
|
|
3877
4284
|
socket: {
|
|
4285
|
+
_socket: any;
|
|
4286
|
+
_reconnectManager?: {
|
|
4287
|
+
_socket: any;
|
|
4288
|
+
_clients: any;
|
|
4289
|
+
_signalDisconnectTime?: number | undefined;
|
|
4290
|
+
rtcManager?: {
|
|
4291
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4292
|
+
activeBreakout: boolean;
|
|
4293
|
+
clientId: string;
|
|
4294
|
+
shouldAddLocalVideo: boolean;
|
|
4295
|
+
streamId: string;
|
|
4296
|
+
}) => void;
|
|
4297
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4298
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4299
|
+
disconnectAll: () => void;
|
|
4300
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4301
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4302
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4303
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4304
|
+
width: number;
|
|
4305
|
+
height: number;
|
|
4306
|
+
}) => void;
|
|
4307
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4308
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4309
|
+
selfId: string;
|
|
4310
|
+
roomName: string;
|
|
4311
|
+
isSfu: boolean;
|
|
4312
|
+
}) => boolean;
|
|
4313
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4314
|
+
hasClient: (clientId: string) => boolean;
|
|
4315
|
+
} | undefined;
|
|
4316
|
+
metrics: {
|
|
4317
|
+
roomJoinedLate: number;
|
|
4318
|
+
pendingClientCanceled: number;
|
|
4319
|
+
evaluationFailed: number;
|
|
4320
|
+
roomJoined: number;
|
|
4321
|
+
};
|
|
4322
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4323
|
+
_onClientLeft: (payload: any) => void;
|
|
4324
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4325
|
+
_onNewClient: (payload: any) => void;
|
|
4326
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4327
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4328
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4329
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4330
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4331
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4332
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4333
|
+
clientId: string;
|
|
4334
|
+
webcam: boolean;
|
|
4335
|
+
mic: boolean;
|
|
4336
|
+
screenShare: boolean;
|
|
4337
|
+
}) => boolean;
|
|
4338
|
+
_addClientToState: (newClient: any) => void;
|
|
4339
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4340
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4341
|
+
_resetClientState: (payload: any) => void;
|
|
4342
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4343
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4344
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4345
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4346
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4347
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4348
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4349
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4350
|
+
getMaxListeners: () => number;
|
|
4351
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4352
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4353
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4354
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4355
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4356
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4357
|
+
eventNames: () => (string | symbol)[];
|
|
4358
|
+
} | null | undefined;
|
|
4359
|
+
noopKeepaliveInterval: any;
|
|
4360
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4361
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3878
4362
|
connect: () => void;
|
|
3879
4363
|
disconnect: () => void;
|
|
3880
|
-
|
|
3881
|
-
emit:
|
|
3882
|
-
|
|
3883
|
-
|
|
4364
|
+
disconnectOnConnect: () => void;
|
|
4365
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4366
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4367
|
+
getTransport: () => any;
|
|
4368
|
+
getManager: () => any;
|
|
4369
|
+
isConnecting: () => any;
|
|
4370
|
+
isConnected: () => any;
|
|
4371
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4372
|
+
once: (eventName: string, handler: Function) => void;
|
|
4373
|
+
off: (eventName: string, handler: Function) => void;
|
|
4374
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4375
|
+
getGlitchFreeMetrics: () => {
|
|
4376
|
+
roomJoinedLate: number;
|
|
4377
|
+
pendingClientCanceled: number;
|
|
4378
|
+
evaluationFailed: number;
|
|
4379
|
+
roomJoined: number;
|
|
4380
|
+
} | undefined;
|
|
3884
4381
|
} | null;
|
|
3885
4382
|
};
|
|
3886
4383
|
socketReconnecting: (state: {
|
|
@@ -3888,24 +4385,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3888
4385
|
isIdentifyingDevice: boolean;
|
|
3889
4386
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3890
4387
|
socket: {
|
|
4388
|
+
_socket: any;
|
|
4389
|
+
_reconnectManager?: {
|
|
4390
|
+
_socket: any;
|
|
4391
|
+
_clients: any;
|
|
4392
|
+
_signalDisconnectTime?: number | undefined;
|
|
4393
|
+
rtcManager?: {
|
|
4394
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4395
|
+
activeBreakout: boolean;
|
|
4396
|
+
clientId: string;
|
|
4397
|
+
shouldAddLocalVideo: boolean;
|
|
4398
|
+
streamId: string;
|
|
4399
|
+
}) => void;
|
|
4400
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4401
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4402
|
+
disconnectAll: () => void;
|
|
4403
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4404
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4405
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4406
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4407
|
+
width: number;
|
|
4408
|
+
height: number;
|
|
4409
|
+
}) => void;
|
|
4410
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4411
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4412
|
+
selfId: string;
|
|
4413
|
+
roomName: string;
|
|
4414
|
+
isSfu: boolean;
|
|
4415
|
+
}) => boolean;
|
|
4416
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4417
|
+
hasClient: (clientId: string) => boolean;
|
|
4418
|
+
} | undefined;
|
|
4419
|
+
metrics: {
|
|
4420
|
+
roomJoinedLate: number;
|
|
4421
|
+
pendingClientCanceled: number;
|
|
4422
|
+
evaluationFailed: number;
|
|
4423
|
+
roomJoined: number;
|
|
4424
|
+
};
|
|
4425
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4426
|
+
_onClientLeft: (payload: any) => void;
|
|
4427
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4428
|
+
_onNewClient: (payload: any) => void;
|
|
4429
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4430
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4431
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4432
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4433
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4434
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4435
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4436
|
+
clientId: string;
|
|
4437
|
+
webcam: boolean;
|
|
4438
|
+
mic: boolean;
|
|
4439
|
+
screenShare: boolean;
|
|
4440
|
+
}) => boolean;
|
|
4441
|
+
_addClientToState: (newClient: any) => void;
|
|
4442
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4443
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4444
|
+
_resetClientState: (payload: any) => void;
|
|
4445
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4446
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4447
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4448
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4449
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4450
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4451
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4452
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4453
|
+
getMaxListeners: () => number;
|
|
4454
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4455
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4456
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4457
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4458
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4459
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4460
|
+
eventNames: () => (string | symbol)[];
|
|
4461
|
+
} | null | undefined;
|
|
4462
|
+
noopKeepaliveInterval: any;
|
|
4463
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4464
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3891
4465
|
connect: () => void;
|
|
3892
4466
|
disconnect: () => void;
|
|
3893
|
-
|
|
3894
|
-
emit:
|
|
3895
|
-
|
|
3896
|
-
|
|
4467
|
+
disconnectOnConnect: () => void;
|
|
4468
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4469
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4470
|
+
getTransport: () => any;
|
|
4471
|
+
getManager: () => any;
|
|
4472
|
+
isConnecting: () => any;
|
|
4473
|
+
isConnected: () => any;
|
|
4474
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4475
|
+
once: (eventName: string, handler: Function) => void;
|
|
4476
|
+
off: (eventName: string, handler: Function) => void;
|
|
4477
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4478
|
+
getGlitchFreeMetrics: () => {
|
|
4479
|
+
roomJoinedLate: number;
|
|
4480
|
+
pendingClientCanceled: number;
|
|
4481
|
+
evaluationFailed: number;
|
|
4482
|
+
roomJoined: number;
|
|
4483
|
+
} | undefined;
|
|
3897
4484
|
} | null;
|
|
3898
4485
|
}) => {
|
|
3899
4486
|
status: "reconnect";
|
|
3900
4487
|
deviceIdentified: boolean;
|
|
3901
4488
|
isIdentifyingDevice: boolean;
|
|
3902
4489
|
socket: {
|
|
4490
|
+
_socket: any;
|
|
4491
|
+
_reconnectManager?: {
|
|
4492
|
+
_socket: any;
|
|
4493
|
+
_clients: any;
|
|
4494
|
+
_signalDisconnectTime?: number | undefined;
|
|
4495
|
+
rtcManager?: {
|
|
4496
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4497
|
+
activeBreakout: boolean;
|
|
4498
|
+
clientId: string;
|
|
4499
|
+
shouldAddLocalVideo: boolean;
|
|
4500
|
+
streamId: string;
|
|
4501
|
+
}) => void;
|
|
4502
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4503
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4504
|
+
disconnectAll: () => void;
|
|
4505
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4506
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4507
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4508
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4509
|
+
width: number;
|
|
4510
|
+
height: number;
|
|
4511
|
+
}) => void;
|
|
4512
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4513
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4514
|
+
selfId: string;
|
|
4515
|
+
roomName: string;
|
|
4516
|
+
isSfu: boolean;
|
|
4517
|
+
}) => boolean;
|
|
4518
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4519
|
+
hasClient: (clientId: string) => boolean;
|
|
4520
|
+
} | undefined;
|
|
4521
|
+
metrics: {
|
|
4522
|
+
roomJoinedLate: number;
|
|
4523
|
+
pendingClientCanceled: number;
|
|
4524
|
+
evaluationFailed: number;
|
|
4525
|
+
roomJoined: number;
|
|
4526
|
+
};
|
|
4527
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4528
|
+
_onClientLeft: (payload: any) => void;
|
|
4529
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4530
|
+
_onNewClient: (payload: any) => void;
|
|
4531
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4532
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4533
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4534
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4535
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4536
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4537
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4538
|
+
clientId: string;
|
|
4539
|
+
webcam: boolean;
|
|
4540
|
+
mic: boolean;
|
|
4541
|
+
screenShare: boolean;
|
|
4542
|
+
}) => boolean;
|
|
4543
|
+
_addClientToState: (newClient: any) => void;
|
|
4544
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4545
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4546
|
+
_resetClientState: (payload: any) => void;
|
|
4547
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4548
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4549
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4550
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4551
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4552
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4553
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4554
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4555
|
+
getMaxListeners: () => number;
|
|
4556
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4557
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4558
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4559
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4560
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4561
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4562
|
+
eventNames: () => (string | symbol)[];
|
|
4563
|
+
} | null | undefined;
|
|
4564
|
+
noopKeepaliveInterval: any;
|
|
4565
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4566
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3903
4567
|
connect: () => void;
|
|
3904
4568
|
disconnect: () => void;
|
|
3905
|
-
|
|
3906
|
-
emit:
|
|
3907
|
-
|
|
3908
|
-
|
|
4569
|
+
disconnectOnConnect: () => void;
|
|
4570
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4571
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4572
|
+
getTransport: () => any;
|
|
4573
|
+
getManager: () => any;
|
|
4574
|
+
isConnecting: () => any;
|
|
4575
|
+
isConnected: () => any;
|
|
4576
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4577
|
+
once: (eventName: string, handler: Function) => void;
|
|
4578
|
+
off: (eventName: string, handler: Function) => void;
|
|
4579
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4580
|
+
getGlitchFreeMetrics: () => {
|
|
4581
|
+
roomJoinedLate: number;
|
|
4582
|
+
pendingClientCanceled: number;
|
|
4583
|
+
evaluationFailed: number;
|
|
4584
|
+
roomJoined: number;
|
|
4585
|
+
} | undefined;
|
|
3909
4586
|
} | null;
|
|
3910
4587
|
};
|
|
3911
4588
|
deviceIdentifying: (state: {
|
|
@@ -3913,24 +4590,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3913
4590
|
isIdentifyingDevice: boolean;
|
|
3914
4591
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3915
4592
|
socket: {
|
|
4593
|
+
_socket: any;
|
|
4594
|
+
_reconnectManager?: {
|
|
4595
|
+
_socket: any;
|
|
4596
|
+
_clients: any;
|
|
4597
|
+
_signalDisconnectTime?: number | undefined;
|
|
4598
|
+
rtcManager?: {
|
|
4599
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4600
|
+
activeBreakout: boolean;
|
|
4601
|
+
clientId: string;
|
|
4602
|
+
shouldAddLocalVideo: boolean;
|
|
4603
|
+
streamId: string;
|
|
4604
|
+
}) => void;
|
|
4605
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4606
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4607
|
+
disconnectAll: () => void;
|
|
4608
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4609
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4610
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4611
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4612
|
+
width: number;
|
|
4613
|
+
height: number;
|
|
4614
|
+
}) => void;
|
|
4615
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4616
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4617
|
+
selfId: string;
|
|
4618
|
+
roomName: string;
|
|
4619
|
+
isSfu: boolean;
|
|
4620
|
+
}) => boolean;
|
|
4621
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4622
|
+
hasClient: (clientId: string) => boolean;
|
|
4623
|
+
} | undefined;
|
|
4624
|
+
metrics: {
|
|
4625
|
+
roomJoinedLate: number;
|
|
4626
|
+
pendingClientCanceled: number;
|
|
4627
|
+
evaluationFailed: number;
|
|
4628
|
+
roomJoined: number;
|
|
4629
|
+
};
|
|
4630
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4631
|
+
_onClientLeft: (payload: any) => void;
|
|
4632
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4633
|
+
_onNewClient: (payload: any) => void;
|
|
4634
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4635
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4636
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4637
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4638
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4639
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4640
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4641
|
+
clientId: string;
|
|
4642
|
+
webcam: boolean;
|
|
4643
|
+
mic: boolean;
|
|
4644
|
+
screenShare: boolean;
|
|
4645
|
+
}) => boolean;
|
|
4646
|
+
_addClientToState: (newClient: any) => void;
|
|
4647
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4648
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4649
|
+
_resetClientState: (payload: any) => void;
|
|
4650
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4651
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4652
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4653
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4654
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4655
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4656
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4657
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4658
|
+
getMaxListeners: () => number;
|
|
4659
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4660
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4661
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4662
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4663
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4664
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4665
|
+
eventNames: () => (string | symbol)[];
|
|
4666
|
+
} | null | undefined;
|
|
4667
|
+
noopKeepaliveInterval: any;
|
|
4668
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4669
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3916
4670
|
connect: () => void;
|
|
3917
4671
|
disconnect: () => void;
|
|
3918
|
-
|
|
3919
|
-
emit:
|
|
3920
|
-
|
|
3921
|
-
|
|
4672
|
+
disconnectOnConnect: () => void;
|
|
4673
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4674
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4675
|
+
getTransport: () => any;
|
|
4676
|
+
getManager: () => any;
|
|
4677
|
+
isConnecting: () => any;
|
|
4678
|
+
isConnected: () => any;
|
|
4679
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4680
|
+
once: (eventName: string, handler: Function) => void;
|
|
4681
|
+
off: (eventName: string, handler: Function) => void;
|
|
4682
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4683
|
+
getGlitchFreeMetrics: () => {
|
|
4684
|
+
roomJoinedLate: number;
|
|
4685
|
+
pendingClientCanceled: number;
|
|
4686
|
+
evaluationFailed: number;
|
|
4687
|
+
roomJoined: number;
|
|
4688
|
+
} | undefined;
|
|
3922
4689
|
} | null;
|
|
3923
4690
|
}) => {
|
|
3924
4691
|
isIdentifyingDevice: true;
|
|
3925
4692
|
deviceIdentified: boolean;
|
|
3926
4693
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3927
4694
|
socket: {
|
|
4695
|
+
_socket: any;
|
|
4696
|
+
_reconnectManager?: {
|
|
4697
|
+
_socket: any;
|
|
4698
|
+
_clients: any;
|
|
4699
|
+
_signalDisconnectTime?: number | undefined;
|
|
4700
|
+
rtcManager?: {
|
|
4701
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4702
|
+
activeBreakout: boolean;
|
|
4703
|
+
clientId: string;
|
|
4704
|
+
shouldAddLocalVideo: boolean;
|
|
4705
|
+
streamId: string;
|
|
4706
|
+
}) => void;
|
|
4707
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4708
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4709
|
+
disconnectAll: () => void;
|
|
4710
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4711
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4712
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4713
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4714
|
+
width: number;
|
|
4715
|
+
height: number;
|
|
4716
|
+
}) => void;
|
|
4717
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4718
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4719
|
+
selfId: string;
|
|
4720
|
+
roomName: string;
|
|
4721
|
+
isSfu: boolean;
|
|
4722
|
+
}) => boolean;
|
|
4723
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4724
|
+
hasClient: (clientId: string) => boolean;
|
|
4725
|
+
} | undefined;
|
|
4726
|
+
metrics: {
|
|
4727
|
+
roomJoinedLate: number;
|
|
4728
|
+
pendingClientCanceled: number;
|
|
4729
|
+
evaluationFailed: number;
|
|
4730
|
+
roomJoined: number;
|
|
4731
|
+
};
|
|
4732
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4733
|
+
_onClientLeft: (payload: any) => void;
|
|
4734
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4735
|
+
_onNewClient: (payload: any) => void;
|
|
4736
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4737
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4738
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4739
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4740
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4741
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4742
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4743
|
+
clientId: string;
|
|
4744
|
+
webcam: boolean;
|
|
4745
|
+
mic: boolean;
|
|
4746
|
+
screenShare: boolean;
|
|
4747
|
+
}) => boolean;
|
|
4748
|
+
_addClientToState: (newClient: any) => void;
|
|
4749
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4750
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4751
|
+
_resetClientState: (payload: any) => void;
|
|
4752
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4753
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4754
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4755
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4756
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4757
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4758
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4759
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4760
|
+
getMaxListeners: () => number;
|
|
4761
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4762
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4763
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4764
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4765
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4766
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4767
|
+
eventNames: () => (string | symbol)[];
|
|
4768
|
+
} | null | undefined;
|
|
4769
|
+
noopKeepaliveInterval: any;
|
|
4770
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4771
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3928
4772
|
connect: () => void;
|
|
3929
4773
|
disconnect: () => void;
|
|
3930
|
-
|
|
3931
|
-
emit:
|
|
3932
|
-
|
|
3933
|
-
|
|
4774
|
+
disconnectOnConnect: () => void;
|
|
4775
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4776
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4777
|
+
getTransport: () => any;
|
|
4778
|
+
getManager: () => any;
|
|
4779
|
+
isConnecting: () => any;
|
|
4780
|
+
isConnected: () => any;
|
|
4781
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4782
|
+
once: (eventName: string, handler: Function) => void;
|
|
4783
|
+
off: (eventName: string, handler: Function) => void;
|
|
4784
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4785
|
+
getGlitchFreeMetrics: () => {
|
|
4786
|
+
roomJoinedLate: number;
|
|
4787
|
+
pendingClientCanceled: number;
|
|
4788
|
+
evaluationFailed: number;
|
|
4789
|
+
roomJoined: number;
|
|
4790
|
+
} | undefined;
|
|
3934
4791
|
} | null;
|
|
3935
4792
|
};
|
|
3936
4793
|
deviceIdentified: (state: {
|
|
@@ -3938,35 +4795,212 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3938
4795
|
isIdentifyingDevice: boolean;
|
|
3939
4796
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3940
4797
|
socket: {
|
|
4798
|
+
_socket: any;
|
|
4799
|
+
_reconnectManager?: {
|
|
4800
|
+
_socket: any;
|
|
4801
|
+
_clients: any;
|
|
4802
|
+
_signalDisconnectTime?: number | undefined;
|
|
4803
|
+
rtcManager?: {
|
|
4804
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4805
|
+
activeBreakout: boolean;
|
|
4806
|
+
clientId: string;
|
|
4807
|
+
shouldAddLocalVideo: boolean;
|
|
4808
|
+
streamId: string;
|
|
4809
|
+
}) => void;
|
|
4810
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4811
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4812
|
+
disconnectAll: () => void;
|
|
4813
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4814
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4815
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4816
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4817
|
+
width: number;
|
|
4818
|
+
height: number;
|
|
4819
|
+
}) => void;
|
|
4820
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4821
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4822
|
+
selfId: string;
|
|
4823
|
+
roomName: string;
|
|
4824
|
+
isSfu: boolean;
|
|
4825
|
+
}) => boolean;
|
|
4826
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4827
|
+
hasClient: (clientId: string) => boolean;
|
|
4828
|
+
} | undefined;
|
|
4829
|
+
metrics: {
|
|
4830
|
+
roomJoinedLate: number;
|
|
4831
|
+
pendingClientCanceled: number;
|
|
4832
|
+
evaluationFailed: number;
|
|
4833
|
+
roomJoined: number;
|
|
4834
|
+
};
|
|
4835
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4836
|
+
_onClientLeft: (payload: any) => void;
|
|
4837
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4838
|
+
_onNewClient: (payload: any) => void;
|
|
4839
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4840
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4841
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4842
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4843
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4844
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4845
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4846
|
+
clientId: string;
|
|
4847
|
+
webcam: boolean;
|
|
4848
|
+
mic: boolean;
|
|
4849
|
+
screenShare: boolean;
|
|
4850
|
+
}) => boolean;
|
|
4851
|
+
_addClientToState: (newClient: any) => void;
|
|
4852
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4853
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4854
|
+
_resetClientState: (payload: any) => void;
|
|
4855
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4856
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4857
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4858
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4859
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4860
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4861
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4862
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4863
|
+
getMaxListeners: () => number;
|
|
4864
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4865
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4866
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4867
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4868
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4869
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4870
|
+
eventNames: () => (string | symbol)[];
|
|
4871
|
+
} | null | undefined;
|
|
4872
|
+
noopKeepaliveInterval: any;
|
|
4873
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4874
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3941
4875
|
connect: () => void;
|
|
3942
4876
|
disconnect: () => void;
|
|
3943
|
-
|
|
3944
|
-
emit:
|
|
3945
|
-
|
|
3946
|
-
|
|
4877
|
+
disconnectOnConnect: () => void;
|
|
4878
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4879
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4880
|
+
getTransport: () => any;
|
|
4881
|
+
getManager: () => any;
|
|
4882
|
+
isConnecting: () => any;
|
|
4883
|
+
isConnected: () => any;
|
|
4884
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4885
|
+
once: (eventName: string, handler: Function) => void;
|
|
4886
|
+
off: (eventName: string, handler: Function) => void;
|
|
4887
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4888
|
+
getGlitchFreeMetrics: () => {
|
|
4889
|
+
roomJoinedLate: number;
|
|
4890
|
+
pendingClientCanceled: number;
|
|
4891
|
+
evaluationFailed: number;
|
|
4892
|
+
roomJoined: number;
|
|
4893
|
+
} | undefined;
|
|
3947
4894
|
} | null;
|
|
3948
4895
|
}) => {
|
|
3949
4896
|
deviceIdentified: true;
|
|
3950
4897
|
isIdentifyingDevice: false;
|
|
3951
4898
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3952
4899
|
socket: {
|
|
4900
|
+
_socket: any;
|
|
4901
|
+
_reconnectManager?: {
|
|
4902
|
+
_socket: any;
|
|
4903
|
+
_clients: any;
|
|
4904
|
+
_signalDisconnectTime?: number | undefined;
|
|
4905
|
+
rtcManager?: {
|
|
4906
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4907
|
+
activeBreakout: boolean;
|
|
4908
|
+
clientId: string;
|
|
4909
|
+
shouldAddLocalVideo: boolean;
|
|
4910
|
+
streamId: string;
|
|
4911
|
+
}) => void;
|
|
4912
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4913
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4914
|
+
disconnectAll: () => void;
|
|
4915
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4916
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4917
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4918
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4919
|
+
width: number;
|
|
4920
|
+
height: number;
|
|
4921
|
+
}) => void;
|
|
4922
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4923
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4924
|
+
selfId: string;
|
|
4925
|
+
roomName: string;
|
|
4926
|
+
isSfu: boolean;
|
|
4927
|
+
}) => boolean;
|
|
4928
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4929
|
+
hasClient: (clientId: string) => boolean;
|
|
4930
|
+
} | undefined;
|
|
4931
|
+
metrics: {
|
|
4932
|
+
roomJoinedLate: number;
|
|
4933
|
+
pendingClientCanceled: number;
|
|
4934
|
+
evaluationFailed: number;
|
|
4935
|
+
roomJoined: number;
|
|
4936
|
+
};
|
|
4937
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4938
|
+
_onClientLeft: (payload: any) => void;
|
|
4939
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4940
|
+
_onNewClient: (payload: any) => void;
|
|
4941
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4942
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4943
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4944
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4945
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4946
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4947
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4948
|
+
clientId: string;
|
|
4949
|
+
webcam: boolean;
|
|
4950
|
+
mic: boolean;
|
|
4951
|
+
screenShare: boolean;
|
|
4952
|
+
}) => boolean;
|
|
4953
|
+
_addClientToState: (newClient: any) => void;
|
|
4954
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4955
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4956
|
+
_resetClientState: (payload: any) => void;
|
|
4957
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4958
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4959
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4960
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4961
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4962
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4963
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4964
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4965
|
+
getMaxListeners: () => number;
|
|
4966
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4967
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4968
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4969
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4970
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4971
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4972
|
+
eventNames: () => (string | symbol)[];
|
|
4973
|
+
} | null | undefined;
|
|
4974
|
+
noopKeepaliveInterval: any;
|
|
4975
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4976
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3953
4977
|
connect: () => void;
|
|
3954
4978
|
disconnect: () => void;
|
|
3955
|
-
|
|
3956
|
-
emit:
|
|
3957
|
-
|
|
3958
|
-
|
|
4979
|
+
disconnectOnConnect: () => void;
|
|
4980
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4981
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4982
|
+
getTransport: () => any;
|
|
4983
|
+
getManager: () => any;
|
|
4984
|
+
isConnecting: () => any;
|
|
4985
|
+
isConnected: () => any;
|
|
4986
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4987
|
+
once: (eventName: string, handler: Function) => void;
|
|
4988
|
+
off: (eventName: string, handler: Function) => void;
|
|
4989
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4990
|
+
getGlitchFreeMetrics: () => {
|
|
4991
|
+
roomJoinedLate: number;
|
|
4992
|
+
pendingClientCanceled: number;
|
|
4993
|
+
evaluationFailed: number;
|
|
4994
|
+
roomJoined: number;
|
|
4995
|
+
} | undefined;
|
|
3959
4996
|
} | null;
|
|
3960
4997
|
};
|
|
3961
4998
|
}, "signalConnection", "signalConnection", _reduxjs_toolkit.SliceSelectors<SignalConnectionState>>;
|
|
3962
4999
|
declare const deviceIdentifying: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/deviceIdentifying">;
|
|
3963
5000
|
declare const deviceIdentified: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/deviceIdentified">;
|
|
3964
|
-
declare const socketConnected: _reduxjs_toolkit.ActionCreatorWithPayload<
|
|
5001
|
+
declare const socketConnected: _reduxjs_toolkit.ActionCreatorWithPayload<ServerSocket, "signalConnection/socketConnected">;
|
|
3965
5002
|
declare const socketConnecting: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketConnecting">;
|
|
3966
5003
|
declare const socketDisconnected: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketDisconnected">;
|
|
3967
|
-
/**
|
|
3968
|
-
* Action creators
|
|
3969
|
-
*/
|
|
3970
5004
|
declare const doSignalSocketConnect: (args: void) => AppThunk<void>;
|
|
3971
5005
|
declare const doSignalIdentifyDevice: (args: {
|
|
3972
5006
|
deviceCredentials: Credentials;
|
|
@@ -3974,14 +5008,11 @@ declare const doSignalIdentifyDevice: (args: {
|
|
|
3974
5008
|
declare const doSignalDisconnect: (args: void) => AppThunk<void>;
|
|
3975
5009
|
declare const doSignalReconnect: (args: void) => AppThunk<void>;
|
|
3976
5010
|
declare const socketReconnecting: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketReconnecting">;
|
|
3977
|
-
/**
|
|
3978
|
-
* Selectors
|
|
3979
|
-
*/
|
|
3980
5011
|
declare const selectSignalConnectionRaw: (state: RootState) => SignalConnectionState;
|
|
3981
5012
|
declare const selectSignalIsIdentifyingDevice: (state: RootState) => boolean;
|
|
3982
5013
|
declare const selectSignalConnectionDeviceIdentified: (state: RootState) => boolean;
|
|
3983
5014
|
declare const selectSignalStatus: (state: RootState) => "" | "connecting" | "connected" | "reconnect" | "disconnected";
|
|
3984
|
-
declare const selectSignalConnectionSocket: (state: RootState) =>
|
|
5015
|
+
declare const selectSignalConnectionSocket: (state: RootState) => ServerSocket | null;
|
|
3985
5016
|
declare const selectShouldConnectSignal: ((state: {
|
|
3986
5017
|
app: AppState;
|
|
3987
5018
|
chat: ChatState;
|
|
@@ -4255,23 +5286,6 @@ declare const addAppListener: TypedAddListener<{
|
|
|
4255
5286
|
type SelectorResults<Selectors extends Selector<RootState, unknown>[]> = {
|
|
4256
5287
|
[K in keyof Selectors]: Selectors[K] extends Selector<RootState, infer R> ? R : never;
|
|
4257
5288
|
};
|
|
4258
|
-
/**
|
|
4259
|
-
* Creates a reactor that will be called whenever the provided selectors change.
|
|
4260
|
-
* Every reactor needs to update a piece of state that it depends on, to avoid infinite loops.
|
|
4261
|
-
* example:
|
|
4262
|
-
* ```ts
|
|
4263
|
-
* createReactor(
|
|
4264
|
-
* [selectAppWantsToJoin, selectDeviceCredentialsRaw],
|
|
4265
|
-
* ({ dispatch }, wantsToJoin, deviceCredentialsRaw) => {
|
|
4266
|
-
* if (wantsToJoin && deviceCredentialsRaw.data) {
|
|
4267
|
-
* dispatch(doSignalIdentifyDevice({ deviceCredentials: deviceCredentialsRaw.data }));
|
|
4268
|
-
* }
|
|
4269
|
-
* });
|
|
4270
|
-
* ```
|
|
4271
|
-
* @param selectors. The selectors to be used to check if the state has changed.
|
|
4272
|
-
* @param callback. The callback to be called on every action. The first argument is the listenerApi, the second argument is the result of the selectors.
|
|
4273
|
-
* @returns The unsubscribe function.
|
|
4274
|
-
*/
|
|
4275
5289
|
declare const createReactor: <Selectors extends Selector<{
|
|
4276
5290
|
app: AppState;
|
|
4277
5291
|
chat: ChatState;
|
|
@@ -4294,6 +5308,4 @@ declare const createReactor: <Selectors extends Selector<{
|
|
|
4294
5308
|
extra: ReturnType<typeof createServices>;
|
|
4295
5309
|
}, ...selectorValues: SelectorResults<Selectors>) => void | Promise<void>) => _reduxjs_toolkit.UnsubscribeListener;
|
|
4296
5310
|
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, 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, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, sdkVersion, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppSdkVersion, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, 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 };
|
|
5311
|
+
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, 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, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, 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 };
|