@cloudflare/realtimekit 0.5.0-staging.86 → 0.5.0-staging.89
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 +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -83
- package/dist/index.es.js +2 -2
- package/dist/ts3.4/dist/index.d.ts +4 -86
- package/package.json +1 -13
- package/dist/react.cjs.js +0 -23
- package/dist/react.d.ts +0 -4777
- package/dist/react.es.js +0 -30986
- package/dist/ts3.4/dist/react.d.ts +0 -4726
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>;
|
|
@@ -2434,7 +2398,6 @@ declare class RTKParticipant$1 extends RTKTypedEventEmitter<ParticipantEvents> {
|
|
|
2434
2398
|
setVideoEnabled(videoEnabled: boolean, emitEvent?: boolean): void;
|
|
2435
2399
|
setAudioEnabled(audioEnabled: boolean, emitEvent?: boolean): void;
|
|
2436
2400
|
setScreenShareEnabled(screenShareEnabled: boolean, emitEvent?: boolean): void;
|
|
2437
|
-
private setupEvents;
|
|
2438
2401
|
pin(): Promise<void>;
|
|
2439
2402
|
unpin(): Promise<void>;
|
|
2440
2403
|
setIsPinned(isPinned: boolean, emitEvent?: boolean): void;
|
|
@@ -2446,7 +2409,6 @@ declare class RTKParticipant$1 extends RTKTypedEventEmitter<ParticipantEvents> {
|
|
|
2446
2409
|
get isPinned(): boolean;
|
|
2447
2410
|
registerVideoElement(videoElem: HTMLVideoElement): void;
|
|
2448
2411
|
deregisterVideoElement(videoElem: HTMLVideoElement): void;
|
|
2449
|
-
private updateVideo;
|
|
2450
2412
|
}
|
|
2451
2413
|
|
|
2452
2414
|
type TranscriptionData = {
|
|
@@ -2515,7 +2477,6 @@ declare class RTKMeta$1 extends RTKTypedEventEmitter<MetaEvents> {
|
|
|
2515
2477
|
get meetingId(): string;
|
|
2516
2478
|
setBroadcastTabChanges(broadcastTabChanges: boolean): void;
|
|
2517
2479
|
setSelfActiveTab(spotlightTab: ActiveTab, tabChangeSource: TabChangeSource): void;
|
|
2518
|
-
private assertActiveTabToRoom;
|
|
2519
2480
|
}
|
|
2520
2481
|
|
|
2521
2482
|
interface RTKMapEvents<T extends EventMap> {
|
|
@@ -2750,7 +2711,6 @@ declare class FetchClient {
|
|
|
2750
2711
|
retryDelay: number;
|
|
2751
2712
|
responseType?: string;
|
|
2752
2713
|
});
|
|
2753
|
-
private buildURL;
|
|
2754
2714
|
request<T = any>(config: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
2755
2715
|
get<T = any>(url: string, config?: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
2756
2716
|
post<T = any>(url: string, data?: any, config?: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
@@ -2768,7 +2728,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2768
2728
|
audioUpdateInProgress: boolean;
|
|
2769
2729
|
videoUpdateInProgress: boolean;
|
|
2770
2730
|
constructor(context: Context<RTKContextState>, mediaConstraints: MediaConstraints, isNonPreferredDevice?: (media: MediaDeviceInfo) => boolean, autoSwitchDevice?: boolean);
|
|
2771
|
-
private onVisibilityChange;
|
|
2772
2731
|
repopulateAvailableDevices(): Promise<boolean>;
|
|
2773
2732
|
setupStreams({ audio, video, }: {
|
|
2774
2733
|
audio: boolean;
|
|
@@ -2786,8 +2745,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2786
2745
|
};
|
|
2787
2746
|
getAllDevices(): Promise<InputDeviceInfo[]>;
|
|
2788
2747
|
getDeviceById(deviceId: string, kind?: 'audioinput' | 'audiooutput' | 'videoinput'): Promise<MediaDeviceInfo>;
|
|
2789
|
-
private onAudioTrackMuted;
|
|
2790
|
-
private onAudioTrackChanged;
|
|
2791
2748
|
get rawAudioTrack(): MediaStreamTrack;
|
|
2792
2749
|
get audioTrack(): MediaStreamTrack;
|
|
2793
2750
|
get audioEnabled(): boolean;
|
|
@@ -2797,8 +2754,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2797
2754
|
setAudioDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2798
2755
|
setupSpeaker(): Promise<void>;
|
|
2799
2756
|
setSpeakerDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2800
|
-
private onVideoTrackChanged;
|
|
2801
|
-
private onVideoTrackEnded;
|
|
2802
2757
|
get rawVideoTrack(): MediaStreamTrack;
|
|
2803
2758
|
get videoTrack(): MediaStreamTrack;
|
|
2804
2759
|
get videoEnabled(): boolean;
|
|
@@ -2807,7 +2762,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2807
2762
|
getVideoDevices(devices?: MediaDeviceInfo[]): Promise<MediaDeviceInfo[]>;
|
|
2808
2763
|
setVideoDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2809
2764
|
updateVideoConstraints(resolution: VideoQualityConstraints): Promise<void>;
|
|
2810
|
-
private onScreenShareEnded;
|
|
2811
2765
|
get screenShareTracks(): {
|
|
2812
2766
|
audio: MediaStreamTrack;
|
|
2813
2767
|
video: MediaStreamTrack;
|
|
@@ -3104,7 +3058,6 @@ type PermissionEvents = {
|
|
|
3104
3058
|
};
|
|
3105
3059
|
declare class RTKPermissionsPreset$1 extends RTKTypedEventEmitter<PermissionEvents> {
|
|
3106
3060
|
private constructor();
|
|
3107
|
-
private setupEvents;
|
|
3108
3061
|
static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<RTKContextState>): RTKPermissionsPreset$1;
|
|
3109
3062
|
static default(context: Context<RTKContextState>, viewType: ViewType): RTKPermissionsPreset$1;
|
|
3110
3063
|
static init(context: Context<RTKContextState>, viewType: ViewType, response?: PresetPermissions): RTKPermissionsPreset$1;
|
|
@@ -3187,7 +3140,6 @@ declare class RTKLivestream$1 extends RTKTypedEventEmitter<LivestreamEvents> {
|
|
|
3187
3140
|
viewerCount: number;
|
|
3188
3141
|
constructor(self: RTKSelf);
|
|
3189
3142
|
setLivestreamState(livestreamState: LivestreamState): void;
|
|
3190
|
-
private emitCurrentLivestreamState;
|
|
3191
3143
|
start(livestreamConfig?: StartLivestreamConfig): Promise<void>;
|
|
3192
3144
|
stop(): Promise<void>;
|
|
3193
3145
|
}
|
|
@@ -3336,10 +3288,6 @@ declare class RTKChat$1 extends RTKTypedEventEmitter<ChatEvents> {
|
|
|
3336
3288
|
maxTextLimit: number;
|
|
3337
3289
|
setMaxTextLimit(limit: number): void;
|
|
3338
3290
|
constructor(context: Context<RTKContextState>, chatSocketHandler: ChatSocketHandler, chatChannelSocketHandler: ChatChannelSocketHandler, self: RTKSelf$1, participants: RTKParticipants$1);
|
|
3339
|
-
private sendMessageInternal;
|
|
3340
|
-
private sendTextMessageInternal;
|
|
3341
|
-
private sendImageMessageInternal;
|
|
3342
|
-
private sendFileMessageInternal;
|
|
3343
3291
|
get rateLimits(): {
|
|
3344
3292
|
maxInvocations: number;
|
|
3345
3293
|
period: number;
|
|
@@ -3480,12 +3428,6 @@ declare class PluginSocketHandler {
|
|
|
3480
3428
|
}
|
|
3481
3429
|
|
|
3482
3430
|
declare class RTKSelfMedia extends RTKTypedEventEmitter<SelfEvents> {
|
|
3483
|
-
protected localMediaHandler: LocalMediaHandler;
|
|
3484
|
-
protected updatePermission(): Promise<void>;
|
|
3485
|
-
protected populateMediaPermissionsInCallstats({ message, kind, }: {
|
|
3486
|
-
message: keyof typeof MediaPermission;
|
|
3487
|
-
kind: 'audio' | 'video' | 'screenshare';
|
|
3488
|
-
}): Promise<void>;
|
|
3489
3431
|
init(options?: {
|
|
3490
3432
|
video?: boolean;
|
|
3491
3433
|
audio?: boolean;
|
|
@@ -3978,14 +3920,12 @@ declare class RTKStore$1 {
|
|
|
3978
3920
|
maxInvocations: number;
|
|
3979
3921
|
period: number;
|
|
3980
3922
|
};
|
|
3981
|
-
private listeners;
|
|
3982
3923
|
constructor({ name, socketHandler, meetingId }: {
|
|
3983
3924
|
name: string;
|
|
3984
3925
|
socketHandler: PluginSocketHandler;
|
|
3985
3926
|
meetingId: string;
|
|
3986
3927
|
});
|
|
3987
3928
|
set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
|
|
3988
|
-
private remoteSet;
|
|
3989
3929
|
bulkSet(data: {
|
|
3990
3930
|
key: string;
|
|
3991
3931
|
payload: any;
|
|
@@ -4040,11 +3980,8 @@ declare class MediaNodeClient {
|
|
|
4040
3980
|
}, forceFullReset?: boolean, rejoining?: boolean): Promise<{
|
|
4041
3981
|
roomJoined: boolean;
|
|
4042
3982
|
}>;
|
|
4043
|
-
private partialJoinRoomPromise;
|
|
4044
3983
|
_partialJoinRoom(displayName: string, roomUuid: string, rejoining?: boolean, loc?: GeoLocation): Promise<void>;
|
|
4045
3984
|
partialJoinRoom(displayName: string, roomUuid: string, rejoining?: boolean, loc?: GeoLocation): Promise<any>;
|
|
4046
|
-
private _joinRoom;
|
|
4047
|
-
private completeJoinRoom;
|
|
4048
3985
|
leaveRoom(): Promise<void>;
|
|
4049
3986
|
getConsumers(): Map<string, Consumer>;
|
|
4050
3987
|
activatePeers(producers: ProducerState[]): Promise<void>;
|
|
@@ -4311,7 +4248,6 @@ declare class SocketService {
|
|
|
4311
4248
|
capabilities: SocketServiceCapabilities;
|
|
4312
4249
|
});
|
|
4313
4250
|
updateURL(peerID: string): void;
|
|
4314
|
-
private static getSocketEdgeDomain;
|
|
4315
4251
|
get url(): string;
|
|
4316
4252
|
connect(): Promise<void>;
|
|
4317
4253
|
disconnect(): Promise<void>;
|
|
@@ -4388,7 +4324,6 @@ type StageEvents = {
|
|
|
4388
4324
|
declare class RTKStage extends RTKTypedEventEmitter<StageEvents> {
|
|
4389
4325
|
constructor(context: Context<RTKContextState>, self: RTKSelf$1, participants: RTKParticipants, stageSocketHandler: StageSocketHandler, roomSocketHandler: RoomSocketHandler);
|
|
4390
4326
|
get status(): StageStatus;
|
|
4391
|
-
private setupEvents;
|
|
4392
4327
|
getAccessRequests(): {
|
|
4393
4328
|
stageRequests: StageRequestPayload[];
|
|
4394
4329
|
};
|
|
@@ -4433,7 +4368,6 @@ declare class RTKSelf$1 extends RTKSelfMedia {
|
|
|
4433
4368
|
private constructor();
|
|
4434
4369
|
static __init__(context: Context<RTKContextState>, details: UserDetailsResponse, permissions: RTKPermissionsPreset$1, theme: RTKThemePreset$1, presetName: string, skipAwaits?: boolean): Promise<RTKSelf$1>;
|
|
4435
4370
|
cleanupEvents(): void;
|
|
4436
|
-
private setupEvents;
|
|
4437
4371
|
get permissions(): RTKPermissionsPreset$1;
|
|
4438
4372
|
get config(): RTKThemePreset$1;
|
|
4439
4373
|
get roomJoined(): boolean;
|
|
@@ -4464,7 +4398,6 @@ declare class RTKSelf$1 extends RTKSelfMedia {
|
|
|
4464
4398
|
cleanUpTracks(): void;
|
|
4465
4399
|
registerVideoElement(videoElem: HTMLVideoElement, isPreview?: boolean): void;
|
|
4466
4400
|
deregisterVideoElement(videoElem: HTMLVideoElement, isPreview?: boolean): void;
|
|
4467
|
-
private updateVideo;
|
|
4468
4401
|
}
|
|
4469
4402
|
|
|
4470
4403
|
interface RTKPluginResponse {
|
|
@@ -4572,11 +4505,9 @@ declare class RTKPlugin$1 extends RTKEventEmitter<PluginEvents> {
|
|
|
4572
4505
|
enabledBy: string;
|
|
4573
4506
|
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);
|
|
4574
4507
|
sendIframeEvent(message: PluginIframeMessage): void;
|
|
4575
|
-
private handleIframeMessage;
|
|
4576
4508
|
sendData(payload: SendDataOptions): void;
|
|
4577
4509
|
removePluginView(viewId?: string): void;
|
|
4578
4510
|
addPluginView(iframe: HTMLIFrameElement | ReactNativeWebView, viewId?: string): void;
|
|
4579
|
-
private setActive;
|
|
4580
4511
|
activateForSelf(): Promise<void>;
|
|
4581
4512
|
deactivateForSelf(): void;
|
|
4582
4513
|
enable(): Promise<void>;
|
|
@@ -4608,16 +4539,6 @@ interface APIOptions {
|
|
|
4608
4539
|
}
|
|
4609
4540
|
declare class API {
|
|
4610
4541
|
ipInfo: any;
|
|
4611
|
-
protected fetchClient: FetchClient;
|
|
4612
|
-
protected requests: FetchClient;
|
|
4613
|
-
protected roomName: string;
|
|
4614
|
-
protected roomUUID: string;
|
|
4615
|
-
protected authToken: string;
|
|
4616
|
-
protected organizationId: string;
|
|
4617
|
-
protected iceServers: IceServerInformation[];
|
|
4618
|
-
protected pluginInformation: RTKPluginResponse[];
|
|
4619
|
-
protected userDetails: UserDetailsResponseV2;
|
|
4620
|
-
protected roomDetails: RoomDetails;
|
|
4621
4542
|
get peerId(): string;
|
|
4622
4543
|
context: Context<RTKContextState>;
|
|
4623
4544
|
constructor(context: Context<RTKContextState>, options?: APIOptions);
|
|
@@ -4659,7 +4580,6 @@ declare class RTKConnectedMeetings$1 extends RTKTypedEventEmitter<ConnectedMeeti
|
|
|
4659
4580
|
get supportsConnectedMeetings(): boolean;
|
|
4660
4581
|
get isActive(): boolean;
|
|
4661
4582
|
get currentMeetingId(): string;
|
|
4662
|
-
private validateConnectedMeetingsAction;
|
|
4663
4583
|
getConnectedMeetings(): Promise<{
|
|
4664
4584
|
parentMeeting: ConnectedMeeting;
|
|
4665
4585
|
meetings: ConnectedMeeting[];
|
|
@@ -4694,7 +4614,6 @@ declare class RTKConnectedMeetings$1 extends RTKTypedEventEmitter<ConnectedMeeti
|
|
|
4694
4614
|
success: boolean;
|
|
4695
4615
|
error: any;
|
|
4696
4616
|
}>;
|
|
4697
|
-
private moveSuccessHandler;
|
|
4698
4617
|
}
|
|
4699
4618
|
|
|
4700
4619
|
interface Overrides {
|
|
@@ -4714,7 +4633,6 @@ interface RealtimeKitClientOptions {
|
|
|
4714
4633
|
declare class RealtimeKitClient {
|
|
4715
4634
|
private constructor();
|
|
4716
4635
|
static init(options: RealtimeKitClientOptions): Promise<RealtimeKitClient>;
|
|
4717
|
-
private static setupContext;
|
|
4718
4636
|
join(): Promise<void>;
|
|
4719
4637
|
leave(state?: LeaveRoomState): Promise<void>;
|
|
4720
4638
|
get participants(): Readonly<RTKParticipants$1>;
|
|
@@ -4765,4 +4683,4 @@ declare global {
|
|
|
4765
4683
|
}
|
|
4766
4684
|
}
|
|
4767
4685
|
|
|
4768
|
-
export { ActiveTab, ActiveTabType, AudioProducerScoreStats, ChatChannel, ChatUpdateParams, CustomMessage, DeviceConfig, RTKBasicParticipant, RealtimeKitClientOptions, RTKConnectedMeetings, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKSelf,
|
|
4686
|
+
export { ActiveTab, ActiveTabType, AudioProducerScoreStats, ChatChannel, ChatUpdateParams, CustomMessage, DeviceConfig, RTKBasicParticipant, RealtimeKitClientOptions, RTKConnectedMeetings, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKSelf, RTKThemePreset, FileMessage, ImageMessage, LivestreamState, MediaConnectionState, MediaKind$1 as MediaKind, Message, ProducerScoreStats, RTKSelfMedia as RTKSelfMedia, RecordingState, SocketConnectionState, StageStatus, TextMessage, VideoProducerScoreStats, RealtimeKitClient as default, LeaveRoomState as leaveRoomState };
|
package/dist/index.es.js
CHANGED
|
@@ -30693,7 +30693,7 @@ let ei = (Cf = class {
|
|
|
30693
30693
|
var c;
|
|
30694
30694
|
const n = Wi.createContext(t, e), a = N(N({}, QR), e == null ? void 0 : e.modules);
|
|
30695
30695
|
return n.setValue("peerId", t), n.setValue("modules", a), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (c = e.overrides) != null ? c : {}), n.setValue("env", XR({ baseURI: i.baseURI })), n.setValue("defaults", e.defaults || { audio: true, video: true }), n.setValue("onError", e.onError || (() => {
|
|
30696
|
-
})), n.setValue("cachedUserDetails", Ss(e.cachedUserDetails)), n.setValue("sdkVersion", "2.5.0-staging.
|
|
30696
|
+
})), n.setValue("cachedUserDetails", Ss(e.cachedUserDetails)), n.setValue("sdkVersion", "2.5.0-staging.89"), n;
|
|
30697
30697
|
}
|
|
30698
30698
|
join() {
|
|
30699
30699
|
return u(this, null, function* () {
|
|
@@ -30799,4 +30799,4 @@ ei = Wl([
|
|
|
30799
30799
|
pt("0000")
|
|
30800
30800
|
], ei);
|
|
30801
30801
|
const F1 = ei;
|
|
30802
|
-
export { PO as
|
|
30802
|
+
export { PO as RTKSelfMedia, F1 as default };
|
|
@@ -1959,8 +1959,6 @@ declare class ChatSocketHandler {
|
|
|
1959
1959
|
on(event: number, handler: (socketMessage: ChatSocketMessage) => void): void;
|
|
1960
1960
|
}
|
|
1961
1961
|
declare class RTKSelectedPeers {
|
|
1962
|
-
private readonly _activeSpeakerPeers;
|
|
1963
|
-
private readonly _compulsoryPeers;
|
|
1964
1962
|
constructor();
|
|
1965
1963
|
add(peerId: string, priority: number): number;
|
|
1966
1964
|
delete(peerId: string): void;
|
|
@@ -1968,7 +1966,6 @@ declare class RTKSelectedPeers {
|
|
|
1968
1966
|
readonly peers: string[];
|
|
1969
1967
|
readonly compulsoryPeers: string[];
|
|
1970
1968
|
readonly activeSpeakerPeers: string[];
|
|
1971
|
-
private _removeFromCompulsoryPeer;
|
|
1972
1969
|
}
|
|
1973
1970
|
type PipEvents = {
|
|
1974
1971
|
['cameraToggled']: () => void;
|
|
@@ -1981,40 +1978,15 @@ type PipEvents = {
|
|
|
1981
1978
|
declare class RTKPip extends RTKTypedEventEmitter<PipEvents> {
|
|
1982
1979
|
private constructor();
|
|
1983
1980
|
static _init(context: Context<RTKContextState>, self: RTKSelf$1): Promise<RTKPip>;
|
|
1984
|
-
private setupIcon;
|
|
1985
1981
|
overrideIcon(icon: 'handRaise' | 'pin', value: string): Promise<void>;
|
|
1986
|
-
private constructImage;
|
|
1987
|
-
private createVideoContainer;
|
|
1988
|
-
private setupEventListeners;
|
|
1989
|
-
private cleanupEventListeners;
|
|
1990
|
-
private enablePipMediaControls;
|
|
1991
|
-
private onSelfVideoUpdateListener;
|
|
1992
|
-
private onSelfAudioUpdateListener;
|
|
1993
|
-
private handlePipMediaControls;
|
|
1994
|
-
private createCanvas;
|
|
1995
|
-
private eventCallback;
|
|
1996
|
-
private setupMediaSessionEvents;
|
|
1997
|
-
private mountAudioEvents;
|
|
1998
|
-
private mountVideoEvents;
|
|
1999
|
-
private unmountEvents;
|
|
2000
|
-
private getSources;
|
|
2001
|
-
private drawEmptyTile;
|
|
2002
|
-
private drawIcons;
|
|
2003
|
-
private drawTile;
|
|
2004
|
-
private calcGridElemSize;
|
|
2005
|
-
private paintCanvas;
|
|
2006
|
-
private animate;
|
|
2007
1982
|
isSupported(): boolean;
|
|
2008
1983
|
readonly isActive: boolean;
|
|
2009
|
-
private cleanup;
|
|
2010
1984
|
init({ height, width }?: {
|
|
2011
1985
|
height?: number;
|
|
2012
1986
|
width?: number;
|
|
2013
1987
|
}): void;
|
|
2014
|
-
private updateMediaSession;
|
|
2015
1988
|
enableSource(source: string): void;
|
|
2016
1989
|
disableSource(source: string): void;
|
|
2017
|
-
private generateAvatar;
|
|
2018
1990
|
addSource(id: string, element: HTMLVideoElement, enabled: boolean, pinned?: boolean, displayText?: string, imageUrl?: string, handRaised?: boolean): void;
|
|
2019
1991
|
updateSource(id: string, source: any): void;
|
|
2020
1992
|
removeSource(id: string): void;
|
|
@@ -2102,7 +2074,6 @@ declare class RoomSocketHandler {
|
|
|
2102
2074
|
id: string;
|
|
2103
2075
|
payload: Uint8Array;
|
|
2104
2076
|
}>;
|
|
2105
|
-
private handleSocketEvents;
|
|
2106
2077
|
on(event: number, handler: (message: EventHandlerTypes) => void): void;
|
|
2107
2078
|
getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
|
|
2108
2079
|
}
|
|
@@ -2140,12 +2111,7 @@ interface HandlerSendResult extends GenericHandlerResult {
|
|
|
2140
2111
|
mid: string;
|
|
2141
2112
|
}
|
|
2142
2113
|
declare abstract class HandlerInterface<TransportPromiseEvents> extends EnhancedEventEmitter<TransportPromiseEvents> {
|
|
2143
|
-
|
|
2144
|
-
protected _sendScreenShareStream: MediaStream;
|
|
2145
|
-
protected _direction?: 'send' | 'recv';
|
|
2146
|
-
pc: RTCPeerConnection;
|
|
2147
|
-
protected _transportReady: boolean;
|
|
2148
|
-
private readonly _mapMidTransceiver;
|
|
2114
|
+
pc: RTCPeerConnection;
|
|
2149
2115
|
enableHighBitrate: boolean;
|
|
2150
2116
|
enableStereo: boolean;
|
|
2151
2117
|
enableDtx: boolean;
|
|
@@ -2155,9 +2121,7 @@ declare abstract class HandlerInterface<TransportPromiseEvents> extends Enhanced
|
|
|
2155
2121
|
restartIce(): Promise<GenericHandlerResult>;
|
|
2156
2122
|
init({ direction, iceServers, iceTransportPolicy, additionalSettings, proprietaryConstraints, onTrackHandler, }: HandlerRunOptions): void;
|
|
2157
2123
|
connect(): Promise<GenericHandlerResult>;
|
|
2158
|
-
getTransportStats(): Promise<RTCStatsReport>;
|
|
2159
|
-
protected _assertSendDirection(): void;
|
|
2160
|
-
protected _assertRecvDirection(): void;
|
|
2124
|
+
getTransportStats(): Promise<RTCStatsReport>;
|
|
2161
2125
|
getReceiverStats(localId: string): Promise<RTCStatsReport>;
|
|
2162
2126
|
stopSending(localId: string): Promise<GenericHandlerResult>;
|
|
2163
2127
|
abstract send(options: HandlerSendOptions): Promise<HandlerSendResult>;
|
|
@@ -2413,7 +2377,6 @@ declare class RTKParticipant$1 extends RTKTypedEventEmitter<ParticipantEvents> {
|
|
|
2413
2377
|
setVideoEnabled(videoEnabled: boolean, emitEvent?: boolean): void;
|
|
2414
2378
|
setAudioEnabled(audioEnabled: boolean, emitEvent?: boolean): void;
|
|
2415
2379
|
setScreenShareEnabled(screenShareEnabled: boolean, emitEvent?: boolean): void;
|
|
2416
|
-
private setupEvents;
|
|
2417
2380
|
pin(): Promise<void>;
|
|
2418
2381
|
unpin(): Promise<void>;
|
|
2419
2382
|
setIsPinned(isPinned: boolean, emitEvent?: boolean): void;
|
|
@@ -2425,7 +2388,6 @@ declare class RTKParticipant$1 extends RTKTypedEventEmitter<ParticipantEvents> {
|
|
|
2425
2388
|
readonly isPinned: boolean;
|
|
2426
2389
|
registerVideoElement(videoElem: HTMLVideoElement): void;
|
|
2427
2390
|
deregisterVideoElement(videoElem: HTMLVideoElement): void;
|
|
2428
|
-
private updateVideo;
|
|
2429
2391
|
}
|
|
2430
2392
|
type TranscriptionData = {
|
|
2431
2393
|
id: string;
|
|
@@ -2492,7 +2454,6 @@ declare class RTKMeta$1 extends RTKTypedEventEmitter<MetaEvents> {
|
|
|
2492
2454
|
readonly meetingId: string;
|
|
2493
2455
|
setBroadcastTabChanges(broadcastTabChanges: boolean): void;
|
|
2494
2456
|
setSelfActiveTab(spotlightTab: ActiveTab, tabChangeSource: TabChangeSource): void;
|
|
2495
|
-
private assertActiveTabToRoom;
|
|
2496
2457
|
}
|
|
2497
2458
|
interface RTKMapEvents<T extends EventMap> {
|
|
2498
2459
|
onAddEvent?: keyof T;
|
|
@@ -2744,8 +2705,7 @@ declare class FetchClient {
|
|
|
2744
2705
|
retry: number;
|
|
2745
2706
|
retryDelay: number;
|
|
2746
2707
|
responseType?: string;
|
|
2747
|
-
});
|
|
2748
|
-
private buildURL;
|
|
2708
|
+
});
|
|
2749
2709
|
request<T = any>(config: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
2750
2710
|
get<T = any>(url: string, config?: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
2751
2711
|
post<T = any>(url: string, data?: any, config?: FetchRequestConfig): Promise<FetchResponse<T>>;
|
|
@@ -2760,7 +2720,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2760
2720
|
audioUpdateInProgress: boolean;
|
|
2761
2721
|
videoUpdateInProgress: boolean;
|
|
2762
2722
|
constructor(context: Context<RTKContextState>, mediaConstraints: MediaConstraints, isNonPreferredDevice?: (media: MediaDeviceInfo) => boolean, autoSwitchDevice?: boolean);
|
|
2763
|
-
private onVisibilityChange;
|
|
2764
2723
|
repopulateAvailableDevices(): Promise<boolean>;
|
|
2765
2724
|
setupStreams({ audio, video, }: {
|
|
2766
2725
|
audio: boolean;
|
|
@@ -2778,8 +2737,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2778
2737
|
};
|
|
2779
2738
|
getAllDevices(): Promise<InputDeviceInfo[]>;
|
|
2780
2739
|
getDeviceById(deviceId: string, kind?: 'audioinput' | 'audiooutput' | 'videoinput'): Promise<MediaDeviceInfo>;
|
|
2781
|
-
private onAudioTrackMuted;
|
|
2782
|
-
private onAudioTrackChanged;
|
|
2783
2740
|
readonly rawAudioTrack: MediaStreamTrack;
|
|
2784
2741
|
readonly audioTrack: MediaStreamTrack;
|
|
2785
2742
|
readonly audioEnabled: boolean;
|
|
@@ -2789,8 +2746,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2789
2746
|
setAudioDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2790
2747
|
setupSpeaker(): Promise<void>;
|
|
2791
2748
|
setSpeakerDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2792
|
-
private onVideoTrackChanged;
|
|
2793
|
-
private onVideoTrackEnded;
|
|
2794
2749
|
readonly rawVideoTrack: MediaStreamTrack;
|
|
2795
2750
|
readonly videoTrack: MediaStreamTrack;
|
|
2796
2751
|
readonly videoEnabled: boolean;
|
|
@@ -2799,7 +2754,6 @@ declare class LocalMediaHandler extends RTKEventEmitter<LocalMediaEvents> {
|
|
|
2799
2754
|
getVideoDevices(devices?: MediaDeviceInfo[]): Promise<MediaDeviceInfo[]>;
|
|
2800
2755
|
setVideoDevice(device: MediaDeviceInfo): Promise<void>;
|
|
2801
2756
|
updateVideoConstraints(resolution: VideoQualityConstraints): Promise<void>;
|
|
2802
|
-
private onScreenShareEnded;
|
|
2803
2757
|
readonly screenShareTracks: {
|
|
2804
2758
|
audio: MediaStreamTrack;
|
|
2805
2759
|
video: MediaStreamTrack;
|
|
@@ -3090,7 +3044,6 @@ type PermissionEvents = {
|
|
|
3090
3044
|
};
|
|
3091
3045
|
declare class RTKPermissionsPreset$1 extends RTKTypedEventEmitter<PermissionEvents> {
|
|
3092
3046
|
private constructor();
|
|
3093
|
-
private setupEvents;
|
|
3094
3047
|
static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<RTKContextState>): RTKPermissionsPreset$1;
|
|
3095
3048
|
static default(context: Context<RTKContextState>, viewType: ViewType): RTKPermissionsPreset$1;
|
|
3096
3049
|
static init(context: Context<RTKContextState>, viewType: ViewType, response?: PresetPermissions): RTKPermissionsPreset$1;
|
|
@@ -3171,7 +3124,6 @@ declare class RTKLivestream$1 extends RTKTypedEventEmitter<LivestreamEvents> {
|
|
|
3171
3124
|
viewerCount: number;
|
|
3172
3125
|
constructor(self: RTKSelf);
|
|
3173
3126
|
setLivestreamState(livestreamState: LivestreamState): void;
|
|
3174
|
-
private emitCurrentLivestreamState;
|
|
3175
3127
|
start(livestreamConfig?: StartLivestreamConfig): Promise<void>;
|
|
3176
3128
|
stop(): Promise<void>;
|
|
3177
3129
|
}
|
|
@@ -3318,10 +3270,6 @@ declare class RTKChat$1 extends RTKTypedEventEmitter<ChatEvents> {
|
|
|
3318
3270
|
maxTextLimit: number;
|
|
3319
3271
|
setMaxTextLimit(limit: number): void;
|
|
3320
3272
|
constructor(context: Context<RTKContextState>, chatSocketHandler: ChatSocketHandler, chatChannelSocketHandler: ChatChannelSocketHandler, self: RTKSelf$1, participants: RTKParticipants$1);
|
|
3321
|
-
private sendMessageInternal;
|
|
3322
|
-
private sendTextMessageInternal;
|
|
3323
|
-
private sendImageMessageInternal;
|
|
3324
|
-
private sendFileMessageInternal;
|
|
3325
3273
|
readonly rateLimits: {
|
|
3326
3274
|
maxInvocations: number;
|
|
3327
3275
|
period: number;
|
|
@@ -3456,12 +3404,6 @@ declare class PluginSocketHandler {
|
|
|
3456
3404
|
on(event: number, handler: (socketMessage: PluginSocketMessage, messageId?: string) => void): void;
|
|
3457
3405
|
}
|
|
3458
3406
|
declare class RTKSelfMedia extends RTKTypedEventEmitter<SelfEvents> {
|
|
3459
|
-
protected localMediaHandler: LocalMediaHandler;
|
|
3460
|
-
protected updatePermission(): Promise<void>;
|
|
3461
|
-
protected populateMediaPermissionsInCallstats({ message, kind, }: {
|
|
3462
|
-
message: keyof typeof MediaPermission;
|
|
3463
|
-
kind: 'audio' | 'video' | 'screenshare';
|
|
3464
|
-
}): Promise<void>;
|
|
3465
3407
|
init(options?: {
|
|
3466
3408
|
video?: boolean;
|
|
3467
3409
|
audio?: boolean;
|
|
@@ -3943,14 +3885,12 @@ declare class RTKStore$1 {
|
|
|
3943
3885
|
maxInvocations: number;
|
|
3944
3886
|
period: number;
|
|
3945
3887
|
};
|
|
3946
|
-
private listeners;
|
|
3947
3888
|
constructor({ name, socketHandler, meetingId }: {
|
|
3948
3889
|
name: string;
|
|
3949
3890
|
socketHandler: PluginSocketHandler;
|
|
3950
3891
|
meetingId: string;
|
|
3951
3892
|
});
|
|
3952
3893
|
set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
|
|
3953
|
-
private remoteSet;
|
|
3954
3894
|
bulkSet(data: {
|
|
3955
3895
|
key: string;
|
|
3956
3896
|
payload: any;
|
|
@@ -4005,11 +3945,8 @@ declare class MediaNodeClient {
|
|
|
4005
3945
|
}, forceFullReset?: boolean, rejoining?: boolean): Promise<{
|
|
4006
3946
|
roomJoined: boolean;
|
|
4007
3947
|
}>;
|
|
4008
|
-
private partialJoinRoomPromise;
|
|
4009
3948
|
_partialJoinRoom(displayName: string, roomUuid: string, rejoining?: boolean, loc?: GeoLocation): Promise<void>;
|
|
4010
3949
|
partialJoinRoom(displayName: string, roomUuid: string, rejoining?: boolean, loc?: GeoLocation): Promise<any>;
|
|
4011
|
-
private _joinRoom;
|
|
4012
|
-
private completeJoinRoom;
|
|
4013
3950
|
leaveRoom(): Promise<void>;
|
|
4014
3951
|
getConsumers(): Map<string, Consumer>;
|
|
4015
3952
|
activatePeers(producers: ProducerState[]): Promise<void>;
|
|
@@ -4270,7 +4207,6 @@ declare class SocketService {
|
|
|
4270
4207
|
capabilities: SocketServiceCapabilities;
|
|
4271
4208
|
});
|
|
4272
4209
|
updateURL(peerID: string): void;
|
|
4273
|
-
private static getSocketEdgeDomain;
|
|
4274
4210
|
readonly url: string;
|
|
4275
4211
|
connect(): Promise<void>;
|
|
4276
4212
|
disconnect(): Promise<void>;
|
|
@@ -4345,7 +4281,6 @@ type StageEvents = {
|
|
|
4345
4281
|
declare class RTKStage extends RTKTypedEventEmitter<StageEvents> {
|
|
4346
4282
|
constructor(context: Context<RTKContextState>, self: RTKSelf$1, participants: RTKParticipants, stageSocketHandler: StageSocketHandler, roomSocketHandler: RoomSocketHandler);
|
|
4347
4283
|
readonly status: StageStatus;
|
|
4348
|
-
private setupEvents;
|
|
4349
4284
|
getAccessRequests(): {
|
|
4350
4285
|
stageRequests: StageRequestPayload[];
|
|
4351
4286
|
};
|
|
@@ -4389,7 +4324,6 @@ declare class RTKSelf$1 extends RTKSelfMedia {
|
|
|
4389
4324
|
private constructor();
|
|
4390
4325
|
static __init__(context: Context<RTKContextState>, details: UserDetailsResponse, permissions: RTKPermissionsPreset$1, theme: RTKThemePreset$1, presetName: string, skipAwaits?: boolean): Promise<RTKSelf$1>;
|
|
4391
4326
|
cleanupEvents(): void;
|
|
4392
|
-
private setupEvents;
|
|
4393
4327
|
readonly permissions: RTKPermissionsPreset$1;
|
|
4394
4328
|
readonly config: RTKThemePreset$1;
|
|
4395
4329
|
readonly roomJoined: boolean;
|
|
@@ -4420,7 +4354,6 @@ declare class RTKSelf$1 extends RTKSelfMedia {
|
|
|
4420
4354
|
cleanUpTracks(): void;
|
|
4421
4355
|
registerVideoElement(videoElem: HTMLVideoElement, isPreview?: boolean): void;
|
|
4422
4356
|
deregisterVideoElement(videoElem: HTMLVideoElement, isPreview?: boolean): void;
|
|
4423
|
-
private updateVideo;
|
|
4424
4357
|
}
|
|
4425
4358
|
interface RTKPluginResponse {
|
|
4426
4359
|
baseURL: string;
|
|
@@ -4527,11 +4460,9 @@ declare class RTKPlugin$1 extends RTKEventEmitter<PluginEvents> {
|
|
|
4527
4460
|
enabledBy: string;
|
|
4528
4461
|
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);
|
|
4529
4462
|
sendIframeEvent(message: PluginIframeMessage): void;
|
|
4530
|
-
private handleIframeMessage;
|
|
4531
4463
|
sendData(payload: SendDataOptions): void;
|
|
4532
4464
|
removePluginView(viewId?: string): void;
|
|
4533
4465
|
addPluginView(iframe: HTMLIFrameElement | ReactNativeWebView, viewId?: string): void;
|
|
4534
|
-
private setActive;
|
|
4535
4466
|
activateForSelf(): Promise<void>;
|
|
4536
4467
|
deactivateForSelf(): void;
|
|
4537
4468
|
enable(): Promise<void>;
|
|
@@ -4562,16 +4493,6 @@ interface APIOptions {
|
|
|
4562
4493
|
}
|
|
4563
4494
|
declare class API {
|
|
4564
4495
|
ipInfo: any;
|
|
4565
|
-
protected fetchClient: FetchClient;
|
|
4566
|
-
protected requests: FetchClient;
|
|
4567
|
-
protected roomName: string;
|
|
4568
|
-
protected roomUUID: string;
|
|
4569
|
-
protected authToken: string;
|
|
4570
|
-
protected organizationId: string;
|
|
4571
|
-
protected iceServers: IceServerInformation[];
|
|
4572
|
-
protected pluginInformation: RTKPluginResponse[];
|
|
4573
|
-
protected userDetails: UserDetailsResponseV2;
|
|
4574
|
-
protected roomDetails: RoomDetails;
|
|
4575
4496
|
readonly peerId: string;
|
|
4576
4497
|
context: Context<RTKContextState>;
|
|
4577
4498
|
constructor(context: Context<RTKContextState>, options?: APIOptions);
|
|
@@ -4611,7 +4532,6 @@ declare class RTKConnectedMeetings$1 extends RTKTypedEventEmitter<ConnectedMeeti
|
|
|
4611
4532
|
readonly supportsConnectedMeetings: boolean;
|
|
4612
4533
|
readonly isActive: boolean;
|
|
4613
4534
|
readonly currentMeetingId: string;
|
|
4614
|
-
private validateConnectedMeetingsAction;
|
|
4615
4535
|
getConnectedMeetings(): Promise<{
|
|
4616
4536
|
parentMeeting: ConnectedMeeting;
|
|
4617
4537
|
meetings: ConnectedMeeting[];
|
|
@@ -4646,7 +4566,6 @@ declare class RTKConnectedMeetings$1 extends RTKTypedEventEmitter<ConnectedMeeti
|
|
|
4646
4566
|
success: boolean;
|
|
4647
4567
|
error: any;
|
|
4648
4568
|
}>;
|
|
4649
|
-
private moveSuccessHandler;
|
|
4650
4569
|
}
|
|
4651
4570
|
interface Overrides {
|
|
4652
4571
|
disableSimulcast?: boolean;
|
|
@@ -4665,7 +4584,6 @@ interface RealtimeKitClientOptions {
|
|
|
4665
4584
|
declare class RealtimeKitClient {
|
|
4666
4585
|
private constructor();
|
|
4667
4586
|
static init(options: RealtimeKitClientOptions): Promise<RealtimeKitClient>;
|
|
4668
|
-
private static setupContext;
|
|
4669
4587
|
join(): Promise<void>;
|
|
4670
4588
|
leave(state?: LeaveRoomState): Promise<void>;
|
|
4671
4589
|
readonly participants: Readonly<RTKParticipants$1>;
|
|
@@ -4709,4 +4627,4 @@ declare global {
|
|
|
4709
4627
|
TransformStream?: any;
|
|
4710
4628
|
}
|
|
4711
4629
|
}
|
|
4712
|
-
export { ActiveTab, ActiveTabType, AudioProducerScoreStats, ChatChannel, ChatUpdateParams, CustomMessage, DeviceConfig, RTKBasicParticipant, RealtimeKitClientOptions, RTKConnectedMeetings, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKSelf,
|
|
4630
|
+
export { ActiveTab, ActiveTabType, AudioProducerScoreStats, ChatChannel, ChatUpdateParams, CustomMessage, DeviceConfig, RTKBasicParticipant, RealtimeKitClientOptions, RTKConnectedMeetings, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKSelf, RTKThemePreset, FileMessage, ImageMessage, LivestreamState, MediaConnectionState, MediaKind$1 as MediaKind, Message, ProducerScoreStats, RTKSelfMedia as RTKSelfMedia, RecordingState, SocketConnectionState, StageStatus, TextMessage, VideoProducerScoreStats, RealtimeKitClient as default, LeaveRoomState as leaveRoomState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit",
|
|
3
|
-
"version": "0.5.0-staging.
|
|
3
|
+
"version": "0.5.0-staging.89",
|
|
4
4
|
"description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -17,18 +17,6 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
"./react": {
|
|
21
|
-
"import": "./dist/react.es.js",
|
|
22
|
-
"require": "./dist/react.cjs.js",
|
|
23
|
-
"types": "./dist/react.d.ts",
|
|
24
|
-
"typesVersions": {
|
|
25
|
-
"<4.0": {
|
|
26
|
-
"*": [
|
|
27
|
-
"./dist/ts3.4/react.d.ts"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
20
|
"./inlined": {
|
|
33
21
|
"default": "./dist/browser.js",
|
|
34
22
|
"types": "./dist/index.d.ts",
|