@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
|
@@ -3555,6 +3555,44 @@ declare class Client {
|
|
|
3555
3555
|
get __internals__(): Readonly<Internals>;
|
|
3556
3556
|
}
|
|
3557
3557
|
|
|
3558
|
+
declare const VideoCodecToMimeTypeMap: {
|
|
3559
|
+
readonly VP8: "video/VP8";
|
|
3560
|
+
readonly VP9: "video/VP9";
|
|
3561
|
+
readonly H264: "video/H264";
|
|
3562
|
+
readonly H265: "video/H265";
|
|
3563
|
+
readonly AV1: "video/AV1";
|
|
3564
|
+
};
|
|
3565
|
+
type VideoCodecs = keyof typeof VideoCodecToMimeTypeMap;
|
|
3566
|
+
type VideoCodecMimeType = typeof VideoCodecToMimeTypeMap[VideoCodecs];
|
|
3567
|
+
declare const AudioCodecToMimeTypeMap: {
|
|
3568
|
+
readonly OPUS: "audio/opus";
|
|
3569
|
+
readonly PCMA: "audio/PCMA";
|
|
3570
|
+
readonly PCMU: "audio/PCMU";
|
|
3571
|
+
};
|
|
3572
|
+
type AudioCodecs = keyof typeof AudioCodecToMimeTypeMap;
|
|
3573
|
+
type AudioCodecMimeType = typeof AudioCodecToMimeTypeMap[AudioCodecs];
|
|
3574
|
+
type CodecMimeType = VideoCodecMimeType | AudioCodecMimeType;
|
|
3575
|
+
interface MediaProducerConfiguration {
|
|
3576
|
+
video?: {
|
|
3577
|
+
codec?: VideoCodecs;
|
|
3578
|
+
};
|
|
3579
|
+
audio?: {
|
|
3580
|
+
codec?: AudioCodecs;
|
|
3581
|
+
};
|
|
3582
|
+
screenshareVideo?: {
|
|
3583
|
+
codec?: VideoCodecs;
|
|
3584
|
+
};
|
|
3585
|
+
screenshareAudio?: {
|
|
3586
|
+
codec?: AudioCodecs;
|
|
3587
|
+
};
|
|
3588
|
+
}
|
|
3589
|
+
interface MediaProducerCodecs {
|
|
3590
|
+
video: VideoCodecMimeType;
|
|
3591
|
+
audio: AudioCodecMimeType;
|
|
3592
|
+
screenshareVideo: VideoCodecMimeType;
|
|
3593
|
+
screenshareAudio: AudioCodecMimeType;
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3558
3596
|
type ClientType = {
|
|
3559
3597
|
callStats?: unknown;
|
|
3560
3598
|
Telemetry?: typeof Telemetry;
|
|
@@ -3590,7 +3628,7 @@ type HandlerRunOptions = {
|
|
|
3590
3628
|
onTrackHandler?: (event: RTCTrackEvent) => void;
|
|
3591
3629
|
};
|
|
3592
3630
|
type CodecOption = {
|
|
3593
|
-
|
|
3631
|
+
mimeType: CodecMimeType;
|
|
3594
3632
|
parameters?: string[];
|
|
3595
3633
|
};
|
|
3596
3634
|
type HandlerSendOptions = {
|
|
@@ -4195,6 +4233,7 @@ interface DefaultOptions {
|
|
|
4195
4233
|
audio?: AudioQualityConstraints;
|
|
4196
4234
|
screenshare?: ScreenshareQualityConstraints;
|
|
4197
4235
|
};
|
|
4236
|
+
mediaProducerConfiguration?: MediaProducerConfiguration;
|
|
4198
4237
|
isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
|
|
4199
4238
|
plugins?: ClientPluginConfig[];
|
|
4200
4239
|
viewMode?: ViewMode;
|
|
@@ -4256,6 +4295,7 @@ type ContextState = {
|
|
|
4256
4295
|
presetName?: string;
|
|
4257
4296
|
maxPreferredStreams?: number;
|
|
4258
4297
|
defaults?: DefaultOptions;
|
|
4298
|
+
mediaProducerCodecs?: MediaProducerCodecs;
|
|
4259
4299
|
modules?: Modules;
|
|
4260
4300
|
overrides?: Overrides;
|
|
4261
4301
|
apiClient?: APIClient;
|
|
@@ -4420,6 +4460,7 @@ interface ProducerState {
|
|
|
4420
4460
|
producingPeerId: string;
|
|
4421
4461
|
mimeType?: string;
|
|
4422
4462
|
consumer?: Partial<Consumer>;
|
|
4463
|
+
appData?: string;
|
|
4423
4464
|
}
|
|
4424
4465
|
interface IParticipant {
|
|
4425
4466
|
id: string;
|