@cloudflare/realtimekit 2.1.0 → 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 +2 -3
|
@@ -3513,6 +3513,43 @@ declare class Client {
|
|
|
3513
3513
|
readonly audio: AudioPlaybackManager;
|
|
3514
3514
|
readonly __internals__: Readonly<Internals>;
|
|
3515
3515
|
}
|
|
3516
|
+
declare const VideoCodecToMimeTypeMap: {
|
|
3517
|
+
readonly VP8: "video/VP8";
|
|
3518
|
+
readonly VP9: "video/VP9";
|
|
3519
|
+
readonly H264: "video/H264";
|
|
3520
|
+
readonly H265: "video/H265";
|
|
3521
|
+
readonly AV1: "video/AV1";
|
|
3522
|
+
};
|
|
3523
|
+
type VideoCodecs = keyof typeof VideoCodecToMimeTypeMap;
|
|
3524
|
+
type VideoCodecMimeType = typeof VideoCodecToMimeTypeMap[VideoCodecs];
|
|
3525
|
+
declare const AudioCodecToMimeTypeMap: {
|
|
3526
|
+
readonly OPUS: "audio/opus";
|
|
3527
|
+
readonly PCMA: "audio/PCMA";
|
|
3528
|
+
readonly PCMU: "audio/PCMU";
|
|
3529
|
+
};
|
|
3530
|
+
type AudioCodecs = keyof typeof AudioCodecToMimeTypeMap;
|
|
3531
|
+
type AudioCodecMimeType = typeof AudioCodecToMimeTypeMap[AudioCodecs];
|
|
3532
|
+
type CodecMimeType = VideoCodecMimeType | AudioCodecMimeType;
|
|
3533
|
+
interface MediaProducerConfiguration {
|
|
3534
|
+
video?: {
|
|
3535
|
+
codec?: VideoCodecs;
|
|
3536
|
+
};
|
|
3537
|
+
audio?: {
|
|
3538
|
+
codec?: AudioCodecs;
|
|
3539
|
+
};
|
|
3540
|
+
screenshareVideo?: {
|
|
3541
|
+
codec?: VideoCodecs;
|
|
3542
|
+
};
|
|
3543
|
+
screenshareAudio?: {
|
|
3544
|
+
codec?: AudioCodecs;
|
|
3545
|
+
};
|
|
3546
|
+
}
|
|
3547
|
+
interface MediaProducerCodecs {
|
|
3548
|
+
video: VideoCodecMimeType;
|
|
3549
|
+
audio: AudioCodecMimeType;
|
|
3550
|
+
screenshareVideo: VideoCodecMimeType;
|
|
3551
|
+
screenshareAudio: AudioCodecMimeType;
|
|
3552
|
+
}
|
|
3516
3553
|
type ClientType = {
|
|
3517
3554
|
callStats?: unknown;
|
|
3518
3555
|
Telemetry?: typeof Telemetry;
|
|
@@ -3547,7 +3584,7 @@ type HandlerRunOptions = {
|
|
|
3547
3584
|
onTrackHandler?: (event: RTCTrackEvent) => void;
|
|
3548
3585
|
};
|
|
3549
3586
|
type CodecOption = {
|
|
3550
|
-
|
|
3587
|
+
mimeType: CodecMimeType;
|
|
3551
3588
|
parameters?: string[];
|
|
3552
3589
|
};
|
|
3553
3590
|
type HandlerSendOptions = {
|
|
@@ -4162,6 +4199,7 @@ interface DefaultOptions {
|
|
|
4162
4199
|
audio?: AudioQualityConstraints;
|
|
4163
4200
|
screenshare?: ScreenshareQualityConstraints;
|
|
4164
4201
|
};
|
|
4202
|
+
mediaProducerConfiguration?: MediaProducerConfiguration;
|
|
4165
4203
|
isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
|
|
4166
4204
|
plugins?: ClientPluginConfig[];
|
|
4167
4205
|
viewMode?: ViewMode;
|
|
@@ -4219,6 +4257,7 @@ type ContextState = {
|
|
|
4219
4257
|
presetName?: string;
|
|
4220
4258
|
maxPreferredStreams?: number;
|
|
4221
4259
|
defaults?: DefaultOptions;
|
|
4260
|
+
mediaProducerCodecs?: MediaProducerCodecs;
|
|
4222
4261
|
modules?: Modules;
|
|
4223
4262
|
overrides?: Overrides;
|
|
4224
4263
|
apiClient?: APIClient;
|
|
@@ -4379,6 +4418,7 @@ interface ProducerState {
|
|
|
4379
4418
|
producingPeerId: string;
|
|
4380
4419
|
mimeType?: string;
|
|
4381
4420
|
consumer?: Partial<Consumer>;
|
|
4421
|
+
appData?: string;
|
|
4382
4422
|
}
|
|
4383
4423
|
interface IParticipant {
|
|
4384
4424
|
id: string;
|
|
@@ -2222,6 +2222,43 @@ declare class ClientMap<T extends (EventMap$1 & WildCardEvent<T>), U extends {
|
|
|
2222
2222
|
clear(emitEvent?: boolean, removeListeners?: boolean): void;
|
|
2223
2223
|
toArray(): U[];
|
|
2224
2224
|
}
|
|
2225
|
+
declare const VideoCodecToMimeTypeMap: {
|
|
2226
|
+
readonly VP8: "video/VP8";
|
|
2227
|
+
readonly VP9: "video/VP9";
|
|
2228
|
+
readonly H264: "video/H264";
|
|
2229
|
+
readonly H265: "video/H265";
|
|
2230
|
+
readonly AV1: "video/AV1";
|
|
2231
|
+
};
|
|
2232
|
+
type VideoCodecs = keyof typeof VideoCodecToMimeTypeMap;
|
|
2233
|
+
type VideoCodecMimeType = typeof VideoCodecToMimeTypeMap[VideoCodecs];
|
|
2234
|
+
declare const AudioCodecToMimeTypeMap: {
|
|
2235
|
+
readonly OPUS: "audio/opus";
|
|
2236
|
+
readonly PCMA: "audio/PCMA";
|
|
2237
|
+
readonly PCMU: "audio/PCMU";
|
|
2238
|
+
};
|
|
2239
|
+
type AudioCodecs = keyof typeof AudioCodecToMimeTypeMap;
|
|
2240
|
+
type AudioCodecMimeType = typeof AudioCodecToMimeTypeMap[AudioCodecs];
|
|
2241
|
+
type CodecMimeType = VideoCodecMimeType | AudioCodecMimeType;
|
|
2242
|
+
interface MediaProducerConfiguration {
|
|
2243
|
+
video?: {
|
|
2244
|
+
codec?: VideoCodecs;
|
|
2245
|
+
};
|
|
2246
|
+
audio?: {
|
|
2247
|
+
codec?: AudioCodecs;
|
|
2248
|
+
};
|
|
2249
|
+
screenshareVideo?: {
|
|
2250
|
+
codec?: VideoCodecs;
|
|
2251
|
+
};
|
|
2252
|
+
screenshareAudio?: {
|
|
2253
|
+
codec?: AudioCodecs;
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
interface MediaProducerCodecs {
|
|
2257
|
+
video: VideoCodecMimeType;
|
|
2258
|
+
audio: AudioCodecMimeType;
|
|
2259
|
+
screenshareVideo: VideoCodecMimeType;
|
|
2260
|
+
screenshareAudio: AudioCodecMimeType;
|
|
2261
|
+
}
|
|
2225
2262
|
interface GenericHandlerResult {
|
|
2226
2263
|
offerSdp: RTCSessionDescriptionInit;
|
|
2227
2264
|
callback: (answer: RTCSessionDescriptionInit) => Promise<any>;
|
|
@@ -2236,7 +2273,7 @@ type HandlerRunOptions = {
|
|
|
2236
2273
|
onTrackHandler?: (event: RTCTrackEvent) => void;
|
|
2237
2274
|
};
|
|
2238
2275
|
type CodecOption = {
|
|
2239
|
-
|
|
2276
|
+
mimeType: CodecMimeType;
|
|
2240
2277
|
parameters?: string[];
|
|
2241
2278
|
};
|
|
2242
2279
|
type HandlerSendOptions = {
|
|
@@ -3994,6 +4031,7 @@ interface DefaultOptions {
|
|
|
3994
4031
|
audio?: AudioQualityConstraints;
|
|
3995
4032
|
screenshare?: ScreenshareQualityConstraints;
|
|
3996
4033
|
};
|
|
4034
|
+
mediaProducerConfiguration?: MediaProducerConfiguration;
|
|
3997
4035
|
isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
|
|
3998
4036
|
plugins?: ClientPluginConfig[];
|
|
3999
4037
|
viewMode?: ViewMode;
|
|
@@ -4164,6 +4202,7 @@ type ContextState = {
|
|
|
4164
4202
|
presetName?: string;
|
|
4165
4203
|
maxPreferredStreams?: number;
|
|
4166
4204
|
defaults?: DefaultOptions;
|
|
4205
|
+
mediaProducerCodecs?: MediaProducerCodecs;
|
|
4167
4206
|
modules?: Modules;
|
|
4168
4207
|
overrides?: Overrides;
|
|
4169
4208
|
apiClient?: APIClient;
|
|
@@ -4324,6 +4363,7 @@ interface ProducerState {
|
|
|
4324
4363
|
producingPeerId: string;
|
|
4325
4364
|
mimeType?: string;
|
|
4326
4365
|
consumer?: Partial<Consumer>;
|
|
4366
|
+
appData?: string;
|
|
4327
4367
|
}
|
|
4328
4368
|
interface IParticipant {
|
|
4329
4369
|
id: string;
|
|
@@ -4831,4 +4871,4 @@ declare global {
|
|
|
4831
4871
|
TransformStream?: any;
|
|
4832
4872
|
}
|
|
4833
4873
|
}
|
|
4834
|
-
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 };
|
|
4874
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-staging.1",
|
|
4
4
|
"description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -90,8 +90,7 @@
|
|
|
90
90
|
"worker-timers": "7.0.60"
|
|
91
91
|
},
|
|
92
92
|
"publishConfig": {
|
|
93
|
-
"
|
|
94
|
-
"tag": "latest"
|
|
93
|
+
"tag": "staging"
|
|
95
94
|
},
|
|
96
95
|
"devDependencies": {
|
|
97
96
|
"@types/events": "^3.0.0",
|