@cloudflare/realtimekit 2.1.1-staging.1 → 2.2.0-staging.1
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.d.ts +42 -1
- package/dist/browser.js +10 -10
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.ts +43 -2
- package/dist/index.es.js +4681 -4593
- package/dist/index.es5.js +3571 -3527
- package/dist/index.rn.js +7 -7
- package/dist/ts3.4/dist/EncryptionManager.d.ts +41 -1
- package/dist/ts3.4/dist/index.d.ts +42 -2
- 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 = {
|
|
@@ -4029,6 +4067,7 @@ interface DefaultOptions {
|
|
|
4029
4067
|
audio?: AudioQualityConstraints;
|
|
4030
4068
|
screenshare?: ScreenshareQualityConstraints;
|
|
4031
4069
|
};
|
|
4070
|
+
mediaProducerConfiguration?: MediaProducerConfiguration;
|
|
4032
4071
|
isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
|
|
4033
4072
|
plugins?: ClientPluginConfig[];
|
|
4034
4073
|
viewMode?: ViewMode;
|
|
@@ -4206,6 +4245,7 @@ type ContextState = {
|
|
|
4206
4245
|
presetName?: string;
|
|
4207
4246
|
maxPreferredStreams?: number;
|
|
4208
4247
|
defaults?: DefaultOptions;
|
|
4248
|
+
mediaProducerCodecs?: MediaProducerCodecs;
|
|
4209
4249
|
modules?: Modules;
|
|
4210
4250
|
overrides?: Overrides;
|
|
4211
4251
|
apiClient?: APIClient;
|
|
@@ -4370,6 +4410,7 @@ interface ProducerState {
|
|
|
4370
4410
|
producingPeerId: string;
|
|
4371
4411
|
mimeType?: string;
|
|
4372
4412
|
consumer?: Partial<Consumer>;
|
|
4413
|
+
appData?: string;
|
|
4373
4414
|
}
|
|
4374
4415
|
interface IParticipant {
|
|
4375
4416
|
id: string;
|
|
@@ -4883,4 +4924,4 @@ declare global {
|
|
|
4883
4924
|
}
|
|
4884
4925
|
}
|
|
4885
4926
|
|
|
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 };
|
|
4927
|
+
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 };
|