@cloudflare/realtimekit 2.1.1-staging.1 → 2.2.0-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +53 -2
- package/dist/EncryptionManager.es.js +200 -200
- package/dist/browser.js +10 -10
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.ts +54 -3
- package/dist/index.es.js +4610 -4507
- package/dist/index.es5.js +3583 -3534
- package/dist/index.rn.js +7 -7
- package/dist/ts3.4/dist/EncryptionManager.d.ts +52 -2
- package/dist/ts3.4/dist/index.d.ts +53 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2228,6 +2228,44 @@ declare class ClientMap<T extends (EventMap$1 & WildCardEvent<T>), U extends {
|
|
|
2228
2228
|
toArray(): U[];
|
|
2229
2229
|
}
|
|
2230
2230
|
|
|
2231
|
+
declare const VideoCodecToMimeTypeMap: {
|
|
2232
|
+
readonly VP8: "video/VP8";
|
|
2233
|
+
readonly VP9: "video/VP9";
|
|
2234
|
+
readonly H264: "video/H264";
|
|
2235
|
+
readonly H265: "video/H265";
|
|
2236
|
+
readonly AV1: "video/AV1";
|
|
2237
|
+
};
|
|
2238
|
+
type VideoCodecs = keyof typeof VideoCodecToMimeTypeMap;
|
|
2239
|
+
type VideoCodecMimeType = typeof VideoCodecToMimeTypeMap[VideoCodecs];
|
|
2240
|
+
declare const AudioCodecToMimeTypeMap: {
|
|
2241
|
+
readonly OPUS: "audio/opus";
|
|
2242
|
+
readonly PCMA: "audio/PCMA";
|
|
2243
|
+
readonly PCMU: "audio/PCMU";
|
|
2244
|
+
};
|
|
2245
|
+
type AudioCodecs = keyof typeof AudioCodecToMimeTypeMap;
|
|
2246
|
+
type AudioCodecMimeType = typeof AudioCodecToMimeTypeMap[AudioCodecs];
|
|
2247
|
+
type CodecMimeType = VideoCodecMimeType | AudioCodecMimeType;
|
|
2248
|
+
interface MediaProducerConfiguration {
|
|
2249
|
+
video?: {
|
|
2250
|
+
codec?: VideoCodecs;
|
|
2251
|
+
};
|
|
2252
|
+
audio?: {
|
|
2253
|
+
codec?: AudioCodecs;
|
|
2254
|
+
};
|
|
2255
|
+
screenshareVideo?: {
|
|
2256
|
+
codec?: VideoCodecs;
|
|
2257
|
+
};
|
|
2258
|
+
screenshareAudio?: {
|
|
2259
|
+
codec?: AudioCodecs;
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
interface MediaProducerCodecs {
|
|
2263
|
+
video: VideoCodecMimeType;
|
|
2264
|
+
audio: AudioCodecMimeType;
|
|
2265
|
+
screenshareVideo: VideoCodecMimeType;
|
|
2266
|
+
screenshareAudio: AudioCodecMimeType;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2231
2269
|
interface GenericHandlerResult {
|
|
2232
2270
|
offerSdp: RTCSessionDescriptionInit;
|
|
2233
2271
|
callback: (answer: RTCSessionDescriptionInit) => Promise<any>;
|
|
@@ -2242,7 +2280,7 @@ type HandlerRunOptions = {
|
|
|
2242
2280
|
onTrackHandler?: (event: RTCTrackEvent) => void;
|
|
2243
2281
|
};
|
|
2244
2282
|
type CodecOption = {
|
|
2245
|
-
|
|
2283
|
+
mimeType: CodecMimeType;
|
|
2246
2284
|
parameters?: string[];
|
|
2247
2285
|
};
|
|
2248
2286
|
type HandlerSendOptions = {
|
|
@@ -3791,7 +3829,8 @@ declare class Internals {
|
|
|
3791
3829
|
features: Features;
|
|
3792
3830
|
browserSpecs: BrowserCapabilities;
|
|
3793
3831
|
callStats: InhouseCallStats;
|
|
3794
|
-
constructor(
|
|
3832
|
+
constructor(context: Context<ContextState>);
|
|
3833
|
+
setUiKitMetadata(metadata: UiKitMetadata): void;
|
|
3795
3834
|
static init(context: Context<ContextState>): Internals;
|
|
3796
3835
|
}
|
|
3797
3836
|
|
|
@@ -4029,6 +4068,7 @@ interface DefaultOptions {
|
|
|
4029
4068
|
audio?: AudioQualityConstraints;
|
|
4030
4069
|
screenshare?: ScreenshareQualityConstraints;
|
|
4031
4070
|
};
|
|
4071
|
+
mediaProducerConfiguration?: MediaProducerConfiguration;
|
|
4032
4072
|
isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
|
|
4033
4073
|
plugins?: ClientPluginConfig[];
|
|
4034
4074
|
viewMode?: ViewMode;
|
|
@@ -4206,6 +4246,7 @@ type ContextState = {
|
|
|
4206
4246
|
presetName?: string;
|
|
4207
4247
|
maxPreferredStreams?: number;
|
|
4208
4248
|
defaults?: DefaultOptions;
|
|
4249
|
+
mediaProducerCodecs?: MediaProducerCodecs;
|
|
4209
4250
|
modules?: Modules;
|
|
4210
4251
|
overrides?: Overrides;
|
|
4211
4252
|
apiClient?: APIClient;
|
|
@@ -4370,6 +4411,7 @@ interface ProducerState {
|
|
|
4370
4411
|
producingPeerId: string;
|
|
4371
4412
|
mimeType?: string;
|
|
4372
4413
|
consumer?: Partial<Consumer>;
|
|
4414
|
+
appData?: string;
|
|
4373
4415
|
}
|
|
4374
4416
|
interface IParticipant {
|
|
4375
4417
|
id: string;
|
|
@@ -4691,6 +4733,10 @@ type LogLevel = readonly ['off', 'all', 'debug', 'log', 'info', 'warn', 'error']
|
|
|
4691
4733
|
|
|
4692
4734
|
type EventSeverities = SupportedEventSeverities;
|
|
4693
4735
|
type LogData$1 = LogData$2;
|
|
4736
|
+
interface UiKitMetadata {
|
|
4737
|
+
sdkVersion: string;
|
|
4738
|
+
sdkName: 'angular' | 'html' | 'react' | 'react-native' | 'unknown';
|
|
4739
|
+
}
|
|
4694
4740
|
interface MeetingMetadata {
|
|
4695
4741
|
peerId?: string;
|
|
4696
4742
|
roomName?: string;
|
|
@@ -4699,6 +4745,10 @@ interface MeetingMetadata {
|
|
|
4699
4745
|
deviceInfo?: object;
|
|
4700
4746
|
visitedUrl?: string;
|
|
4701
4747
|
userId?: string;
|
|
4748
|
+
uikit?: {
|
|
4749
|
+
sdkName: UiKitMetadata['sdkName'];
|
|
4750
|
+
sdkVersion: UiKitMetadata['sdkVersion'];
|
|
4751
|
+
};
|
|
4702
4752
|
}
|
|
4703
4753
|
declare class Telemetry {
|
|
4704
4754
|
logsCache: {
|
|
@@ -4716,6 +4766,7 @@ declare class Telemetry {
|
|
|
4716
4766
|
logExclusionList: string[];
|
|
4717
4767
|
meetingMetadata: MeetingMetadata;
|
|
4718
4768
|
resetPeerId(peerId: string): void;
|
|
4769
|
+
setUiKitMetadata({ sdkVersion, sdkName }: UiKitMetadata): void;
|
|
4719
4770
|
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean, logLevel: LogLevel[number]): void;
|
|
4720
4771
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4721
4772
|
injectContext(injectionReceiver: any): void;
|
|
@@ -4883,4 +4934,4 @@ declare global {
|
|
|
4883
4934
|
}
|
|
4884
4935
|
}
|
|
4885
4936
|
|
|
4886
|
-
export { ActiveTab, ActiveTabType, AudioMiddleware, BroadcastMessagePayload, CachedUserDetails, ChatUpdateParams, ClientError, ClientPluginConfig, ClientPluginPermissions, CustomMessage, DeviceConfig, FileMessage, ImageMessage, JoinedPeer, LeaveRoomState, LivestreamIngestionCredentials, LivestreamState, LogData, MediaConnectionState, MediaConnectionUpdate, MediaConstraints, MediaKind, MediaPermission, Message, BasicParticipant as RTKBasicParticipant, BasicParticipantsMap as RTKBasicParticipantsMap, RTKChat, ClientOptions as RTKClientOptions, RTKConfigOptions, RTKConnectedMeetings, RTKLivestream, RTKLogger, RTKMeta, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKPluginMap, RTKPlugins, RTKPolls, RTKRecording, RTKSelf, RTKSelfMedia, RTKStore, StoreData as RTKStoreData, RateLimitConfig as RTKStoreRateLimitConfig, RTKThemePreset, RecordingState, RequestToJoinType, SocketConnectionState, StageStatus, StartLivestreamConfig, TextMessage, UserDetailsResponseV2, VideoMiddleware, VideoQualityConstraints, Client as default, LeaveRoomState as leaveRoomState };
|
|
4937
|
+
export { ActiveTab, ActiveTabType, AudioCodecMimeType, AudioCodecs, AudioMiddleware, BroadcastMessagePayload, CachedUserDetails, ChatUpdateParams, ClientError, ClientPluginConfig, ClientPluginPermissions, CodecMimeType, CustomMessage, DeviceConfig, FileMessage, ImageMessage, JoinedPeer, LeaveRoomState, LivestreamIngestionCredentials, LivestreamState, LogData, MediaConnectionState, MediaConnectionUpdate, MediaConstraints, MediaKind, MediaPermission, MediaProducerConfiguration, Message, BasicParticipant as RTKBasicParticipant, BasicParticipantsMap as RTKBasicParticipantsMap, RTKChat, ClientOptions as RTKClientOptions, RTKConfigOptions, RTKConnectedMeetings, RTKLivestream, RTKLogger, RTKMeta, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKPluginMap, RTKPlugins, RTKPolls, RTKRecording, RTKSelf, RTKSelfMedia, RTKStore, StoreData as RTKStoreData, RateLimitConfig as RTKStoreRateLimitConfig, RTKThemePreset, RecordingState, RequestToJoinType, SocketConnectionState, StageStatus, StartLivestreamConfig, TextMessage, UserDetailsResponseV2, VideoCodecMimeType, VideoCodecs, VideoMiddleware, VideoQualityConstraints, Client as default, LeaveRoomState as leaveRoomState };
|