@cloudflare/realtimekit 0.0.3 → 0.2.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/.config/rewrite-types.js +15 -2
- package/README.md +1 -15
- package/build-types.sh +0 -16
- package/dist/browser.js +15 -16
- package/dist/index.cjs.js +15 -15
- package/dist/index.d.ts +44 -102
- package/dist/index.es.js +7326 -8222
- package/dist/index.rn.js +22 -0
- package/dist/mock.cjs.js +3 -3
- package/dist/mock.es.js +1158 -1039
- package/dist/ts3.4/dist/index.d.ts +44 -105
- package/package.json +3 -14
- package/dist/react.cjs.js +0 -23
- package/dist/react.d.ts +0 -4784
- package/dist/react.es.js +0 -30954
- package/dist/ts3.4/dist/react.d.ts +0 -4733
package/dist/index.d.ts
CHANGED
|
@@ -1978,8 +1978,6 @@ declare class ChatSocketHandler {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
|
|
1980
1980
|
declare class RTKSelectedPeers {
|
|
1981
|
-
private readonly _activeSpeakerPeers;
|
|
1982
|
-
private readonly _compulsoryPeers;
|
|
1983
1981
|
constructor();
|
|
1984
1982
|
add(peerId: string, priority: number): number;
|
|
1985
1983
|
delete(peerId: string): void;
|
|
@@ -1987,7 +1985,6 @@ declare class RTKSelectedPeers {
|
|
|
1987
1985
|
get peers(): string[];
|
|
1988
1986
|
get compulsoryPeers(): string[];
|
|
1989
1987
|
get activeSpeakerPeers(): string[];
|
|
1990
|
-
private _removeFromCompulsoryPeer;
|
|
1991
1988
|
}
|
|
1992
1989
|
|
|
1993
1990
|
type PipEvents = {
|
|
@@ -2001,40 +1998,15 @@ type PipEvents = {
|
|
|
2001
1998
|
declare class RTKPip extends RTKTypedEventEmitter<PipEvents> {
|
|
2002
1999
|
private constructor();
|
|
2003
2000
|
static _init(context: Context<RTKContextState>, self: RTKSelf$1): Promise<RTKPip>;
|
|
2004
|
-
private setupIcon;
|
|
2005
2001
|
overrideIcon(icon: 'handRaise' | 'pin', value: string): Promise<void>;
|
|
2006
|
-
private constructImage;
|
|
2007
|
-
private createVideoContainer;
|
|
2008
|
-
private setupEventListeners;
|
|
2009
|
-
private cleanupEventListeners;
|
|
2010
|
-
private enablePipMediaControls;
|
|
2011
|
-
private onSelfVideoUpdateListener;
|
|
2012
|
-
private onSelfAudioUpdateListener;
|
|
2013
|
-
private handlePipMediaControls;
|
|
2014
|
-
private createCanvas;
|
|
2015
|
-
private eventCallback;
|
|
2016
|
-
private setupMediaSessionEvents;
|
|
2017
|
-
private mountAudioEvents;
|
|
2018
|
-
private mountVideoEvents;
|
|
2019
|
-
private unmountEvents;
|
|
2020
|
-
private getSources;
|
|
2021
|
-
private drawEmptyTile;
|
|
2022
|
-
private drawIcons;
|
|
2023
|
-
private drawTile;
|
|
2024
|
-
private calcGridElemSize;
|
|
2025
|
-
private paintCanvas;
|
|
2026
|
-
private animate;
|
|
2027
2002
|
isSupported(): boolean;
|
|
2028
2003
|
get isActive(): boolean;
|
|
2029
|
-
private cleanup;
|
|
2030
2004
|
init({ height, width }?: {
|
|
2031
2005
|
height?: number;
|
|
2032
2006
|
width?: number;
|
|
2033
2007
|
}): void;
|
|
2034
|
-
private updateMediaSession;
|
|
2035
2008
|
enableSource(source: string): void;
|
|
2036
2009
|
disableSource(source: string): void;
|
|
2037
|
-
private generateAvatar;
|
|
2038
2010
|
addSource(id: string, element: HTMLVideoElement, enabled: boolean, pinned?: boolean, displayText?: string, imageUrl?: string, handRaised?: boolean): void;
|
|
2039
2011
|
updateSource(id: string, source: any): void;
|
|
2040
2012
|
removeSource(id: string): void;
|
|
@@ -2124,7 +2096,6 @@ declare class RoomSocketHandler {
|
|
|
2124
2096
|
id: string;
|
|
2125
2097
|
payload: Uint8Array;
|
|
2126
2098
|
}>;
|
|
2127
|
-
private handleSocketEvents;
|
|
2128
2099
|
on(event: number, handler: (message: EventHandlerTypes) => void): void;
|
|
2129
2100
|
getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
|
|
2130
2101
|
}
|
|
@@ -2164,12 +2135,7 @@ interface HandlerSendResult extends GenericHandlerResult {
|
|
|
2164
2135
|
mid: string;
|
|
2165
2136
|
}
|
|
2166
2137
|
declare abstract class HandlerInterface<TransportPromiseEvents> extends EnhancedEventEmitter<TransportPromiseEvents> {
|
|
2167
|
-
protected _sendWebStream: MediaStream;
|
|
2168
|
-
protected _sendScreenShareStream: MediaStream;
|
|
2169
|
-
protected _direction?: 'send' | 'recv';
|
|
2170
2138
|
pc: RTCPeerConnection;
|
|
2171
|
-
protected _transportReady: boolean;
|
|
2172
|
-
private readonly _mapMidTransceiver;
|
|
2173
2139
|
enableHighBitrate: boolean;
|
|
2174
2140
|
enableStereo: boolean;
|
|
2175
2141
|
enableDtx: boolean;
|
|
@@ -2180,8 +2146,6 @@ declare abstract class HandlerInterface<TransportPromiseEvents> extends Enhanced
|
|
|
2180
2146
|
init({ direction, iceServers, iceTransportPolicy, additionalSettings, proprietaryConstraints, onTrackHandler, }: HandlerRunOptions): void;
|
|
2181
2147
|
connect(): Promise<GenericHandlerResult>;
|
|
2182
2148
|
getTransportStats(): Promise<RTCStatsReport>;
|
|
2183
|
-
protected _assertSendDirection(): void;
|
|
2184
|
-
protected _assertRecvDirection(): void;
|
|
2185
2149
|
getReceiverStats(localId: string): Promise<RTCStatsReport>;
|
|
2186
2150
|
stopSending(localId: string): Promise<GenericHandlerResult>;
|
|
2187
2151
|
abstract send(options: HandlerSendOptions): Promise<HandlerSendResult>;
|
|
@@ -2217,18 +2181,13 @@ declare enum MediaNodeType {
|
|
|
2217
2181
|
type MediaConnectionState = {
|
|
2218
2182
|
recv: {
|
|
2219
2183
|
state: `${TransportState}`;
|
|
2220
|
-
reconnected: boolean;
|
|
2221
2184
|
};
|
|
2222
2185
|
send: {
|
|
2223
2186
|
state: `${TransportState}`;
|
|
2224
|
-
reconnected: boolean;
|
|
2225
2187
|
};
|
|
2226
2188
|
};
|
|
2227
2189
|
|
|
2228
2190
|
type TransportPromiseEvents = {
|
|
2229
|
-
'connect': {
|
|
2230
|
-
answer: RTCSessionDescriptionInit;
|
|
2231
|
-
};
|
|
2232
2191
|
'close': {
|
|
2233
2192
|
answer: RTCSessionDescriptionInit;
|
|
2234
2193
|
};
|
|
@@ -2430,13 +2389,10 @@ declare class RTKParticipant$1 extends RTKTypedEventEmitter<ParticipantEvents> {
|
|
|
2430
2389
|
supportsRemoteControl: boolean;
|
|
2431
2390
|
presetName?: string;
|
|
2432
2391
|
get stageStatus(): StageStatus;
|
|
2433
|
-
private get mediaJoined();
|
|
2434
|
-
private get socketJoined();
|
|
2435
2392
|
constructor(context: Context<RTKContextState>, participant: Participant, self: RTKSelf, roomSocket: RoomSocketHandler);
|
|
2436
2393
|
setVideoEnabled(videoEnabled: boolean, emitEvent?: boolean): void;
|
|
2437
2394
|
setAudioEnabled(audioEnabled: boolean, emitEvent?: boolean): void;
|
|
2438
2395
|
setScreenShareEnabled(screenShareEnabled: boolean, emitEvent?: boolean): void;
|
|
2439
|
-
private setupEvents;
|
|
2440
2396
|
pin(): Promise<void>;
|
|
2441
2397
|
unpin(): Promise<void>;
|
|
2442
2398
|
setIsPinned(isPinned: boolean, emitEvent?: boolean): void;
|
|
@@ -2448,7 +2404,6 @@ declare class RTKParticipant$1 extends RTKTypedEventEmitter<ParticipantEvents> {
|
|
|
2448
2404
|
get isPinned(): boolean;
|
|
2449
2405
|
registerVideoElement(videoElem: HTMLVideoElement): void;
|
|
2450
2406
|
deregisterVideoElement(videoElem: HTMLVideoElement): void;
|
|
2451
|
-
private updateVideo;
|
|
2452
2407
|
}
|
|
2453
2408
|
|
|
2454
2409
|
type TranscriptionData = {
|
|
@@ -2517,7 +2472,6 @@ declare class RTKMeta$1 extends RTKTypedEventEmitter<MetaEvents> {
|
|
|
2517
2472
|
get meetingId(): string;
|
|
2518
2473
|
setBroadcastTabChanges(broadcastTabChanges: boolean): void;
|
|
2519
2474
|
setSelfActiveTab(spotlightTab: ActiveTab, tabChangeSource: TabChangeSource): void;
|
|
2520
|
-
private assertActiveTabToRoom;
|
|
2521
2475
|
}
|
|
2522
2476
|
|
|
2523
2477
|
interface RTKMapEvents<T extends EventMap> {
|
|
@@ -2610,6 +2564,25 @@ type BroadcastMessageTarget = {
|
|
|
2610
2564
|
} | {
|
|
2611
2565
|
meetingIds: string[];
|
|
2612
2566
|
};
|
|
2567
|
+
type JoinedPeer = {
|
|
2568
|
+
id: string;
|
|
2569
|
+
userId: string;
|
|
2570
|
+
name: string;
|
|
2571
|
+
stageType?: StageStatus;
|
|
2572
|
+
customParticipantId?: string;
|
|
2573
|
+
presetId?: string;
|
|
2574
|
+
picture?: string;
|
|
2575
|
+
waitlisted: boolean;
|
|
2576
|
+
recorderType?: string;
|
|
2577
|
+
stageStatus?: StageStatus;
|
|
2578
|
+
metadata?: {
|
|
2579
|
+
preset_name?: string;
|
|
2580
|
+
};
|
|
2581
|
+
flags?: {
|
|
2582
|
+
hiddenParticipant?: boolean;
|
|
2583
|
+
recorder?: boolean;
|
|
2584
|
+
};
|
|
2585
|
+
};
|
|
2613
2586
|
type ParticipantsEvents = {
|
|
2614
2587
|
['viewModeChanged']: (payload: {
|
|
2615
2588
|
viewMode: string;
|
|
@@ -2657,8 +2630,6 @@ declare class RTKParticipants$1 extends RTKTypedEventEmitter<ParticipantsEvents>
|
|
|
2657
2630
|
readonly pinned: Readonly<RTKParticipantMap$1>;
|
|
2658
2631
|
readonly all: Readonly<RTKBasicParticipantsMap>;
|
|
2659
2632
|
get pip(): RTKPip;
|
|
2660
|
-
private get socketJoined();
|
|
2661
|
-
private get mediaJoined();
|
|
2662
2633
|
rateLimitConfig: {
|
|
2663
2634
|
maxInvocations: number;
|
|
2664
2635
|
period: number;
|
|
@@ -2754,7 +2725,6 @@ declare class FetchClient {
|
|
|
2754
2725
|
retryDelay: number;
|
|
2755
2726
|
responseType?: string;
|
|
2756
2727
|
});
|
|
2757
|
-
private buildURL;
|
|
2758
2728
|
request<T = any>(config: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
2759
2729
|
get<T = any>(url: string, config?: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
2760
2730
|
post<T = any>(url: string, data?: any, config?: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
@@ -2772,7 +2742,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2772
2742
|
audioUpdateInProgress: boolean;
|
|
2773
2743
|
videoUpdateInProgress: boolean;
|
|
2774
2744
|
constructor(context: Context<RTKContextState>, mediaConstraints: MediaConstraints, isNonPreferredDevice?: (media: MediaDeviceInfo) => boolean, autoSwitchDevice?: boolean);
|
|
2775
|
-
private onVisibilityChange;
|
|
2776
2745
|
repopulateAvailableDevices(): Promise<boolean>;
|
|
2777
2746
|
setupStreams({ audio, video, }: {
|
|
2778
2747
|
audio: boolean;
|
|
@@ -2790,28 +2759,23 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2790
2759
|
};
|
|
2791
2760
|
getAllDevices(): Promise<InputDeviceInfo[]>;
|
|
2792
2761
|
getDeviceById(deviceId: string, kind?: 'audioinput' | 'audiooutput' | 'videoinput'): Promise<MediaDeviceInfo>;
|
|
2793
|
-
private onAudioTrackMuted;
|
|
2794
|
-
private onAudioTrackChanged;
|
|
2795
2762
|
get rawAudioTrack(): MediaStreamTrack;
|
|
2796
2763
|
get audioTrack(): MediaStreamTrack;
|
|
2797
2764
|
get audioEnabled(): boolean;
|
|
2798
|
-
enableAudio(): Promise<void>;
|
|
2765
|
+
enableAudio(customTrack?: MediaStreamTrack): Promise<void>;
|
|
2799
2766
|
disableAudio(): void;
|
|
2800
2767
|
getAudioDevices(devices?: MediaDeviceInfo[]): Promise<MediaDeviceInfo[]>;
|
|
2801
2768
|
setAudioDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2802
2769
|
setupSpeaker(): Promise<void>;
|
|
2803
2770
|
setSpeakerDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2804
|
-
private onVideoTrackChanged;
|
|
2805
|
-
private onVideoTrackEnded;
|
|
2806
2771
|
get rawVideoTrack(): MediaStreamTrack;
|
|
2807
2772
|
get videoTrack(): MediaStreamTrack;
|
|
2808
2773
|
get videoEnabled(): boolean;
|
|
2809
|
-
enableVideo(): Promise<void>;
|
|
2774
|
+
enableVideo(customTrack?: MediaStreamTrack): Promise<void>;
|
|
2810
2775
|
disableVideo(): void;
|
|
2811
2776
|
getVideoDevices(devices?: MediaDeviceInfo[]): Promise<MediaDeviceInfo[]>;
|
|
2812
2777
|
setVideoDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2813
2778
|
updateVideoConstraints(resolution: VideoQualityConstraints): Promise<void>;
|
|
2814
|
-
private onScreenShareEnded;
|
|
2815
2779
|
get screenShareTracks(): {
|
|
2816
2780
|
audio: MediaStreamTrack;
|
|
2817
2781
|
video: MediaStreamTrack;
|
|
@@ -3108,7 +3072,6 @@ type PermissionEvents = {
|
|
|
3108
3072
|
};
|
|
3109
3073
|
declare class RTKPermissionsPreset$1 extends RTKTypedEventEmitter<PermissionEvents> {
|
|
3110
3074
|
private constructor();
|
|
3111
|
-
private setupEvents;
|
|
3112
3075
|
static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<RTKContextState>): RTKPermissionsPreset$1;
|
|
3113
3076
|
static default(context: Context<RTKContextState>, viewType: ViewType): RTKPermissionsPreset$1;
|
|
3114
3077
|
static init(context: Context<RTKContextState>, viewType: ViewType, response?: PresetPermissions): RTKPermissionsPreset$1;
|
|
@@ -3191,7 +3154,6 @@ declare class RTKLivestream$1 extends RTKTypedEventEmitter<LivestreamEvents> {
|
|
|
3191
3154
|
viewerCount: number;
|
|
3192
3155
|
constructor(self: RTKSelf);
|
|
3193
3156
|
setLivestreamState(livestreamState: LivestreamState): void;
|
|
3194
|
-
private emitCurrentLivestreamState;
|
|
3195
3157
|
start(livestreamConfig?: StartLivestreamConfig): Promise<void>;
|
|
3196
3158
|
stop(): Promise<void>;
|
|
3197
3159
|
}
|
|
@@ -3339,12 +3301,7 @@ declare class RTKChat$1 extends RTKTypedEventEmitter<ChatEvents> {
|
|
|
3339
3301
|
channels: ChatChannel[];
|
|
3340
3302
|
maxTextLimit: number;
|
|
3341
3303
|
setMaxTextLimit(limit: number): void;
|
|
3342
|
-
private get socketJoined();
|
|
3343
3304
|
constructor(context: Context<RTKContextState>, chatSocketHandler: ChatSocketHandler, chatChannelSocketHandler: ChatChannelSocketHandler, self: RTKSelf$1, participants: RTKParticipants$1);
|
|
3344
|
-
private sendMessageInternal;
|
|
3345
|
-
private sendTextMessageInternal;
|
|
3346
|
-
private sendImageMessageInternal;
|
|
3347
|
-
private sendFileMessageInternal;
|
|
3348
3305
|
get rateLimits(): {
|
|
3349
3306
|
maxInvocations: number;
|
|
3350
3307
|
period: number;
|
|
@@ -3422,7 +3379,6 @@ type PollsEvents = {
|
|
|
3422
3379
|
};
|
|
3423
3380
|
declare class RTKPolls$1 extends RTKTypedEventEmitter<PollsEvents> {
|
|
3424
3381
|
items: Poll[];
|
|
3425
|
-
private get socketJoined();
|
|
3426
3382
|
constructor(context: Context<RTKContextState>, self: RTKSelf$1, pollSocketHandler: PollSocketHandler);
|
|
3427
3383
|
create(question: string, options: string[], anonymous?: boolean, hideVotes?: boolean): Promise<void>;
|
|
3428
3384
|
vote(id: string, index: number): Promise<void>;
|
|
@@ -3486,12 +3442,6 @@ declare class PluginSocketHandler {
|
|
|
3486
3442
|
}
|
|
3487
3443
|
|
|
3488
3444
|
declare class RTKSelfMedia extends RTKTypedEventEmitter<SelfEvents> {
|
|
3489
|
-
protected localMediaHandler: LocalMediaHandler;
|
|
3490
|
-
protected updatePermission(): Promise<void>;
|
|
3491
|
-
protected populateMediaPermissionsInCallstats({ message, kind, }: {
|
|
3492
|
-
message: keyof typeof MediaPermission;
|
|
3493
|
-
kind: 'audio' | 'video' | 'screenshare';
|
|
3494
|
-
}): Promise<void>;
|
|
3495
3445
|
init(options?: {
|
|
3496
3446
|
video?: boolean;
|
|
3497
3447
|
audio?: boolean;
|
|
@@ -3917,6 +3867,10 @@ type LogData$2 = {
|
|
|
3917
3867
|
};
|
|
3918
3868
|
peerIds?: string[];
|
|
3919
3869
|
producers?: ProducerState[];
|
|
3870
|
+
sdp?: RTCSessionDescription['sdp'];
|
|
3871
|
+
queueSizeAtStart?: number;
|
|
3872
|
+
taskStartTime?: number;
|
|
3873
|
+
subTasksSize?: number;
|
|
3920
3874
|
};
|
|
3921
3875
|
|
|
3922
3876
|
type EventSeverities = SupportedEventSeverities;
|
|
@@ -3984,14 +3938,12 @@ declare class RTKStore$1 {
|
|
|
3984
3938
|
maxInvocations: number;
|
|
3985
3939
|
period: number;
|
|
3986
3940
|
};
|
|
3987
|
-
private listeners;
|
|
3988
3941
|
constructor({ name, socketHandler, meetingId }: {
|
|
3989
3942
|
name: string;
|
|
3990
3943
|
socketHandler: PluginSocketHandler;
|
|
3991
3944
|
meetingId: string;
|
|
3992
3945
|
});
|
|
3993
3946
|
set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
|
|
3994
|
-
private remoteSet;
|
|
3995
3947
|
bulkSet(data: {
|
|
3996
3948
|
key: string;
|
|
3997
3949
|
payload: any;
|
|
@@ -4034,7 +3986,6 @@ declare class MediaNodeClient {
|
|
|
4034
3986
|
readonly context: Context<RTKContextState>;
|
|
4035
3987
|
readonly authToken: string;
|
|
4036
3988
|
readonly e2ee: boolean;
|
|
4037
|
-
maxPreferredStreams: number;
|
|
4038
3989
|
get peerId(): string;
|
|
4039
3990
|
constructor(context: Context<RTKContextState>, nodeType: MediaNodeType, options: MediaNodeClientOptions);
|
|
4040
3991
|
get mediaJoined(): boolean;
|
|
@@ -4047,15 +3998,11 @@ declare class MediaNodeClient {
|
|
|
4047
3998
|
}, forceFullReset?: boolean, rejoining?: boolean): Promise<{
|
|
4048
3999
|
roomJoined: boolean;
|
|
4049
4000
|
}>;
|
|
4050
|
-
private partialJoinRoomPromise;
|
|
4051
4001
|
_partialJoinRoom(displayName: string, roomUuid: string, rejoining?: boolean, loc?: GeoLocation): Promise<void>;
|
|
4052
4002
|
partialJoinRoom(displayName: string, roomUuid: string, rejoining?: boolean, loc?: GeoLocation): Promise<any>;
|
|
4053
|
-
private _joinRoom;
|
|
4054
|
-
private completeJoinRoom;
|
|
4055
4003
|
leaveRoom(): Promise<void>;
|
|
4056
4004
|
getConsumers(): Map<string, Consumer>;
|
|
4057
4005
|
activatePeers(producers: ProducerState[]): Promise<void>;
|
|
4058
|
-
deactivatePeers(producers: ProducerState[], mode?: 'manual' | 'default'): Promise<void>;
|
|
4059
4006
|
createConsumers(producers: ProducerState[]): Promise<void>;
|
|
4060
4007
|
closeConsumers(producers: ProducerState[]): Promise<void>;
|
|
4061
4008
|
_shareWebcam(videoTrack: MediaStreamTrack & {
|
|
@@ -4080,8 +4027,8 @@ declare class MediaNodeClient {
|
|
|
4080
4027
|
unmuteSelf(): Promise<void>;
|
|
4081
4028
|
resetVideoProducers(videoTrack: MediaStreamTrack, screenShareTrack?: MediaStreamTrack): Promise<void>;
|
|
4082
4029
|
changeDisplayName(displayName: string, peerId?: string): Promise<void>;
|
|
4083
|
-
kick(peerId: string):
|
|
4084
|
-
kickAll():
|
|
4030
|
+
kick(peerId: string): void;
|
|
4031
|
+
kickAll(): void;
|
|
4085
4032
|
muteAll(_allowUnMute: boolean): Promise<void>;
|
|
4086
4033
|
muteAllVideo(): Promise<void>;
|
|
4087
4034
|
disableAudio(peerId: string): Promise<void>;
|
|
@@ -4318,7 +4265,6 @@ declare class SocketService {
|
|
|
4318
4265
|
capabilities: SocketServiceCapabilities;
|
|
4319
4266
|
});
|
|
4320
4267
|
updateURL(peerID: string): void;
|
|
4321
|
-
private static getSocketEdgeDomain;
|
|
4322
4268
|
get url(): string;
|
|
4323
4269
|
connect(): Promise<void>;
|
|
4324
4270
|
disconnect(): Promise<void>;
|
|
@@ -4395,7 +4341,6 @@ type StageEvents = {
|
|
|
4395
4341
|
declare class RTKStage extends RTKTypedEventEmitter<StageEvents> {
|
|
4396
4342
|
constructor(context: Context<RTKContextState>, self: RTKSelf$1, participants: RTKParticipants, stageSocketHandler: StageSocketHandler, roomSocketHandler: RoomSocketHandler);
|
|
4397
4343
|
get status(): StageStatus;
|
|
4398
|
-
private setupEvents;
|
|
4399
4344
|
getAccessRequests(): {
|
|
4400
4345
|
stageRequests: StageRequestPayload[];
|
|
4401
4346
|
};
|
|
@@ -4440,7 +4385,6 @@ declare class RTKSelf$1 extends RTKSelfMedia {
|
|
|
4440
4385
|
private constructor();
|
|
4441
4386
|
static __init__(context: Context<RTKContextState>, details: UserDetailsResponse, permissions: RTKPermissionsPreset$1, theme: RTKThemePreset$1, presetName: string, skipAwaits?: boolean): Promise<RTKSelf$1>;
|
|
4442
4387
|
cleanupEvents(): void;
|
|
4443
|
-
private setupEvents;
|
|
4444
4388
|
get permissions(): RTKPermissionsPreset$1;
|
|
4445
4389
|
get config(): RTKThemePreset$1;
|
|
4446
4390
|
get roomJoined(): boolean;
|
|
@@ -4452,8 +4396,8 @@ declare class RTKSelf$1 extends RTKSelfMedia {
|
|
|
4452
4396
|
}): Promise<void>;
|
|
4453
4397
|
destructMediaHandler(): Promise<void>;
|
|
4454
4398
|
removeDocumentEventListeners(): Promise<void>;
|
|
4455
|
-
enableAudio(): Promise<void>;
|
|
4456
|
-
enableVideo(): Promise<void>;
|
|
4399
|
+
enableAudio(customTrack?: MediaStreamTrack): Promise<void>;
|
|
4400
|
+
enableVideo(customTrack?: MediaStreamTrack): Promise<void>;
|
|
4457
4401
|
updateVideoConstraints(resolution: VideoQualityConstraints): Promise<void>;
|
|
4458
4402
|
enableScreenShare(): Promise<void>;
|
|
4459
4403
|
updateScreenshareConstraints(resolution: VideoQualityConstraints): Promise<void>;
|
|
@@ -4471,7 +4415,6 @@ declare class RTKSelf$1 extends RTKSelfMedia {
|
|
|
4471
4415
|
cleanUpTracks(): void;
|
|
4472
4416
|
registerVideoElement(videoElem: HTMLVideoElement, isPreview?: boolean): void;
|
|
4473
4417
|
deregisterVideoElement(videoElem: HTMLVideoElement, isPreview?: boolean): void;
|
|
4474
|
-
private updateVideo;
|
|
4475
4418
|
}
|
|
4476
4419
|
|
|
4477
4420
|
interface RTKPluginResponse {
|
|
@@ -4579,11 +4522,9 @@ declare class RTKPlugin$1 extends RTKEventEmitter<PluginEvents> {
|
|
|
4579
4522
|
enabledBy: string;
|
|
4580
4523
|
constructor(context: Context<RTKContextState>, { baseURL, createdAt, description, id, name, organizationId, picture, private: isPrivate, published, staggered, tags, type, updatedAt, }: RTKPluginResponse, pluginSocketHandler: PluginSocketHandler, self: RTKSelf$1, participants: RTKParticipants$1, chat: Readonly<RTKChat$1>, meetingTitle: string);
|
|
4581
4524
|
sendIframeEvent(message: PluginIframeMessage): void;
|
|
4582
|
-
private handleIframeMessage;
|
|
4583
4525
|
sendData(payload: SendDataOptions): void;
|
|
4584
4526
|
removePluginView(viewId?: string): void;
|
|
4585
4527
|
addPluginView(iframe: HTMLIFrameElement | ReactNativeWebView, viewId?: string): void;
|
|
4586
|
-
private setActive;
|
|
4587
4528
|
activateForSelf(): Promise<void>;
|
|
4588
4529
|
deactivateForSelf(): void;
|
|
4589
4530
|
enable(): Promise<void>;
|
|
@@ -4615,16 +4556,6 @@ interface APIOptions {
|
|
|
4615
4556
|
}
|
|
4616
4557
|
declare class API {
|
|
4617
4558
|
ipInfo: any;
|
|
4618
|
-
protected fetchClient: FetchClient;
|
|
4619
|
-
protected requests: FetchClient;
|
|
4620
|
-
protected roomName: string;
|
|
4621
|
-
protected roomUUID: string;
|
|
4622
|
-
protected authToken: string;
|
|
4623
|
-
protected organizationId: string;
|
|
4624
|
-
protected iceServers: IceServerInformation[];
|
|
4625
|
-
protected pluginInformation: RTKPluginResponse[];
|
|
4626
|
-
protected userDetails: UserDetailsResponseV2;
|
|
4627
|
-
protected roomDetails: RoomDetails;
|
|
4628
4559
|
get peerId(): string;
|
|
4629
4560
|
context: Context<RTKContextState>;
|
|
4630
4561
|
constructor(context: Context<RTKContextState>, options?: APIOptions);
|
|
@@ -4666,7 +4597,6 @@ declare class RTKConnectedMeetings$1 extends RTKTypedEventEmitter<ConnectedMeeti
|
|
|
4666
4597
|
get supportsConnectedMeetings(): boolean;
|
|
4667
4598
|
get isActive(): boolean;
|
|
4668
4599
|
get currentMeetingId(): string;
|
|
4669
|
-
private validateConnectedMeetingsAction;
|
|
4670
4600
|
getConnectedMeetings(): Promise<{
|
|
4671
4601
|
parentMeeting: ConnectedMeeting;
|
|
4672
4602
|
meetings: ConnectedMeeting[];
|
|
@@ -4701,7 +4631,6 @@ declare class RTKConnectedMeetings$1 extends RTKTypedEventEmitter<ConnectedMeeti
|
|
|
4701
4631
|
success: boolean;
|
|
4702
4632
|
error: any;
|
|
4703
4633
|
}>;
|
|
4704
|
-
private moveSuccessHandler;
|
|
4705
4634
|
}
|
|
4706
4635
|
|
|
4707
4636
|
interface Overrides {
|
|
@@ -4721,7 +4650,6 @@ interface RealtimeKitClientOptions {
|
|
|
4721
4650
|
declare class RealtimeKitClient {
|
|
4722
4651
|
private constructor();
|
|
4723
4652
|
static init(options: RealtimeKitClientOptions): Promise<RealtimeKitClient>;
|
|
4724
|
-
private static setupContext;
|
|
4725
4653
|
join(): Promise<void>;
|
|
4726
4654
|
leave(state?: LeaveRoomState): Promise<void>;
|
|
4727
4655
|
get participants(): Readonly<RTKParticipants$1>;
|
|
@@ -4741,13 +4669,27 @@ declare class RealtimeKitClient {
|
|
|
4741
4669
|
leaveRoom(state?: LeaveRoomState): Promise<void>;
|
|
4742
4670
|
}
|
|
4743
4671
|
|
|
4672
|
+
declare enum RequestToJoinType {
|
|
4673
|
+
PRESENT = "REQUEST_TO_PRESENT"
|
|
4674
|
+
}
|
|
4675
|
+
|
|
4744
4676
|
type RTKParticipant = Readonly<RTKParticipant$1>;
|
|
4745
4677
|
|
|
4746
4678
|
type RTKParticipants = Readonly<RTKParticipants$1>;
|
|
4747
4679
|
type RTKParticipantMap = Readonly<RTKParticipantMap$1>;
|
|
4748
4680
|
|
|
4749
4681
|
type RTKPlugin = Readonly<RTKPlugin$1>;
|
|
4682
|
+
type RTKPlugins = Readonly<RTKPlugins$1>;
|
|
4683
|
+
type RTKPluginMap = Readonly<RTKPluginMap$1>;
|
|
4684
|
+
type RTKMeta = Readonly<RTKMeta$1>;
|
|
4750
4685
|
type RTKSelf = Readonly<RTKSelf$1>;
|
|
4686
|
+
type RTKChat = Readonly<RTKChat$1>;
|
|
4687
|
+
type RTKPolls = Readonly<RTKPolls$1>;
|
|
4688
|
+
type RTKRecording = Readonly<RTKRecording$1>;
|
|
4689
|
+
|
|
4690
|
+
type RTKLivestream = Readonly<RTKLivestream$1>;
|
|
4691
|
+
|
|
4692
|
+
type RTKStore = RTKStore$1;
|
|
4751
4693
|
|
|
4752
4694
|
type RTKConnectedMeetings = Readonly<RTKConnectedMeetings$1>;
|
|
4753
4695
|
|
|
@@ -4772,4 +4714,4 @@ declare global {
|
|
|
4772
4714
|
}
|
|
4773
4715
|
}
|
|
4774
4716
|
|
|
4775
|
-
export { ActiveTab, ActiveTabType, AudioProducerScoreStats, ChatChannel, ChatUpdateParams, CustomMessage, DeviceConfig, RTKBasicParticipant, RealtimeKitClientOptions, RTKConnectedMeetings, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKSelf,
|
|
4717
|
+
export { ActiveTab, ActiveTabType, AudioConsumerScoreStats, AudioMiddleware, AudioProducerScoreStats, BroadcastMessagePayload, ChatChannel, ChatUpdateParams, CustomMessage, DeviceConfig, RTKBasicParticipant, RTKChat, RealtimeKitClientOptions, RTKConnectedMeetings, RTKLivestream, RTKMeta, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKPluginMap, RTKPlugins, RTKPolls, RTKRecording, RTKSelf, RTKStore, RTKThemePreset, FileMessage, ImageMessage, JoinedPeer, LeaveRoomState, LivestreamIngestionCredentials, LivestreamState, LogData, MediaConnectionState, MediaConnectionUpdate, MediaKind$1 as MediaKind, MediaPermission, Message, ProducerScoreStats, RTKSelfMedia as RTKSelfMedia, RecordingState, RequestToJoinType, SocketConnectionState, StageStatus, StartLivestreamConfig, TextMessage, VideoConsumerScoreStats, VideoMiddleware, VideoProducerScoreStats, VideoQualityConstraints, RealtimeKitClient as default, LeaveRoomState as leaveRoomState };
|