@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
|
@@ -3162,7 +3162,8 @@ declare class Internals {
|
|
|
3162
3162
|
features: Features;
|
|
3163
3163
|
browserSpecs: BrowserCapabilities;
|
|
3164
3164
|
callStats: InhouseCallStats;
|
|
3165
|
-
constructor(
|
|
3165
|
+
constructor(context: Context<ContextState>);
|
|
3166
|
+
setUiKitMetadata(metadata: UiKitMetadata): void;
|
|
3166
3167
|
static init(context: Context<ContextState>): Internals;
|
|
3167
3168
|
}
|
|
3168
3169
|
|
|
@@ -3555,6 +3556,44 @@ declare class Client {
|
|
|
3555
3556
|
get __internals__(): Readonly<Internals>;
|
|
3556
3557
|
}
|
|
3557
3558
|
|
|
3559
|
+
declare const VideoCodecToMimeTypeMap: {
|
|
3560
|
+
readonly VP8: "video/VP8";
|
|
3561
|
+
readonly VP9: "video/VP9";
|
|
3562
|
+
readonly H264: "video/H264";
|
|
3563
|
+
readonly H265: "video/H265";
|
|
3564
|
+
readonly AV1: "video/AV1";
|
|
3565
|
+
};
|
|
3566
|
+
type VideoCodecs = keyof typeof VideoCodecToMimeTypeMap;
|
|
3567
|
+
type VideoCodecMimeType = typeof VideoCodecToMimeTypeMap[VideoCodecs];
|
|
3568
|
+
declare const AudioCodecToMimeTypeMap: {
|
|
3569
|
+
readonly OPUS: "audio/opus";
|
|
3570
|
+
readonly PCMA: "audio/PCMA";
|
|
3571
|
+
readonly PCMU: "audio/PCMU";
|
|
3572
|
+
};
|
|
3573
|
+
type AudioCodecs = keyof typeof AudioCodecToMimeTypeMap;
|
|
3574
|
+
type AudioCodecMimeType = typeof AudioCodecToMimeTypeMap[AudioCodecs];
|
|
3575
|
+
type CodecMimeType = VideoCodecMimeType | AudioCodecMimeType;
|
|
3576
|
+
interface MediaProducerConfiguration {
|
|
3577
|
+
video?: {
|
|
3578
|
+
codec?: VideoCodecs;
|
|
3579
|
+
};
|
|
3580
|
+
audio?: {
|
|
3581
|
+
codec?: AudioCodecs;
|
|
3582
|
+
};
|
|
3583
|
+
screenshareVideo?: {
|
|
3584
|
+
codec?: VideoCodecs;
|
|
3585
|
+
};
|
|
3586
|
+
screenshareAudio?: {
|
|
3587
|
+
codec?: AudioCodecs;
|
|
3588
|
+
};
|
|
3589
|
+
}
|
|
3590
|
+
interface MediaProducerCodecs {
|
|
3591
|
+
video: VideoCodecMimeType;
|
|
3592
|
+
audio: AudioCodecMimeType;
|
|
3593
|
+
screenshareVideo: VideoCodecMimeType;
|
|
3594
|
+
screenshareAudio: AudioCodecMimeType;
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3558
3597
|
type ClientType = {
|
|
3559
3598
|
callStats?: unknown;
|
|
3560
3599
|
Telemetry?: typeof Telemetry;
|
|
@@ -3590,7 +3629,7 @@ type HandlerRunOptions = {
|
|
|
3590
3629
|
onTrackHandler?: (event: RTCTrackEvent) => void;
|
|
3591
3630
|
};
|
|
3592
3631
|
type CodecOption = {
|
|
3593
|
-
|
|
3632
|
+
mimeType: CodecMimeType;
|
|
3594
3633
|
parameters?: string[];
|
|
3595
3634
|
};
|
|
3596
3635
|
type HandlerSendOptions = {
|
|
@@ -4195,6 +4234,7 @@ interface DefaultOptions {
|
|
|
4195
4234
|
audio?: AudioQualityConstraints;
|
|
4196
4235
|
screenshare?: ScreenshareQualityConstraints;
|
|
4197
4236
|
};
|
|
4237
|
+
mediaProducerConfiguration?: MediaProducerConfiguration;
|
|
4198
4238
|
isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
|
|
4199
4239
|
plugins?: ClientPluginConfig[];
|
|
4200
4240
|
viewMode?: ViewMode;
|
|
@@ -4256,6 +4296,7 @@ type ContextState = {
|
|
|
4256
4296
|
presetName?: string;
|
|
4257
4297
|
maxPreferredStreams?: number;
|
|
4258
4298
|
defaults?: DefaultOptions;
|
|
4299
|
+
mediaProducerCodecs?: MediaProducerCodecs;
|
|
4259
4300
|
modules?: Modules;
|
|
4260
4301
|
overrides?: Overrides;
|
|
4261
4302
|
apiClient?: APIClient;
|
|
@@ -4420,6 +4461,7 @@ interface ProducerState {
|
|
|
4420
4461
|
producingPeerId: string;
|
|
4421
4462
|
mimeType?: string;
|
|
4422
4463
|
consumer?: Partial<Consumer>;
|
|
4464
|
+
appData?: string;
|
|
4423
4465
|
}
|
|
4424
4466
|
interface IParticipant {
|
|
4425
4467
|
id: string;
|
|
@@ -4741,6 +4783,10 @@ type LogLevel = readonly ['off', 'all', 'debug', 'log', 'info', 'warn', 'error']
|
|
|
4741
4783
|
|
|
4742
4784
|
type EventSeverities = SupportedEventSeverities;
|
|
4743
4785
|
type LogData$1 = LogData$2;
|
|
4786
|
+
interface UiKitMetadata {
|
|
4787
|
+
sdkVersion: string;
|
|
4788
|
+
sdkName: 'angular' | 'html' | 'react' | 'react-native' | 'unknown';
|
|
4789
|
+
}
|
|
4744
4790
|
interface MeetingMetadata {
|
|
4745
4791
|
peerId?: string;
|
|
4746
4792
|
roomName?: string;
|
|
@@ -4749,6 +4795,10 @@ interface MeetingMetadata {
|
|
|
4749
4795
|
deviceInfo?: object;
|
|
4750
4796
|
visitedUrl?: string;
|
|
4751
4797
|
userId?: string;
|
|
4798
|
+
uikit?: {
|
|
4799
|
+
sdkName: UiKitMetadata['sdkName'];
|
|
4800
|
+
sdkVersion: UiKitMetadata['sdkVersion'];
|
|
4801
|
+
};
|
|
4752
4802
|
}
|
|
4753
4803
|
declare class Telemetry {
|
|
4754
4804
|
logsCache: {
|
|
@@ -4766,6 +4816,7 @@ declare class Telemetry {
|
|
|
4766
4816
|
logExclusionList: string[];
|
|
4767
4817
|
meetingMetadata: MeetingMetadata;
|
|
4768
4818
|
resetPeerId(peerId: string): void;
|
|
4819
|
+
setUiKitMetadata({ sdkVersion, sdkName }: UiKitMetadata): void;
|
|
4769
4820
|
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean, logLevel: LogLevel[number]): void;
|
|
4770
4821
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4771
4822
|
injectContext(injectionReceiver: any): void;
|