@opentok/client 2.22.5 → 2.23.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/js/opentok.d.ts +12 -0
- package/dist/js/opentok.js +25049 -1769
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +9 -9
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.d.ts
CHANGED
|
@@ -98,6 +98,11 @@ declare namespace OT {
|
|
|
98
98
|
blurStrength?: 'low' | 'high';
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
+
export type BackgroundReplacementFilter = {
|
|
102
|
+
type: 'backgroundReplacement';
|
|
103
|
+
backgroundImgUrl: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
101
106
|
export type VideoFilter = BackgroundBlurFilter;
|
|
102
107
|
|
|
103
108
|
export type PublisherProperties = WidgetProperties & GetUserMediaProperties & {
|
|
@@ -112,6 +117,7 @@ declare namespace OT {
|
|
|
112
117
|
style?: Partial<PublisherStyle>;
|
|
113
118
|
videoContentHint?: VideoContentHint;
|
|
114
119
|
enableDtx?: boolean;
|
|
120
|
+
enableStereo?: boolean;
|
|
115
121
|
videoFilter?: VideoFilter;
|
|
116
122
|
};
|
|
117
123
|
|
|
@@ -393,6 +399,7 @@ declare namespace OT {
|
|
|
393
399
|
getSubscribersForStream(stream: Stream): [Subscriber];
|
|
394
400
|
publish(publisher: Publisher, callback?: (error?: OTError) => void): Publisher;
|
|
395
401
|
publish(targetElement: string | HTMLElement, properties?: PublisherProperties, callback?: (error?: OTError) => void): Publisher;
|
|
402
|
+
setEncryptionSecret(secret: string): Promise<void>;
|
|
396
403
|
|
|
397
404
|
signal(
|
|
398
405
|
signal: { type?: string, data?: string, to?: Connection },
|
|
@@ -425,6 +432,7 @@ declare namespace OT {
|
|
|
425
432
|
}[];
|
|
426
433
|
};
|
|
427
434
|
ipWhitelist?: boolean;
|
|
435
|
+
encryptionSecret?: string;
|
|
428
436
|
}
|
|
429
437
|
): Session;
|
|
430
438
|
|
|
@@ -484,6 +492,10 @@ declare namespace OT {
|
|
|
484
492
|
reason: string;
|
|
485
493
|
};
|
|
486
494
|
|
|
495
|
+
encryptionSecretMismatch: Event<'encryptionSecretMismatch', Subscriber>;
|
|
496
|
+
|
|
497
|
+
encryptionSecretMatch: Event<'encryptionSecretMatch', Subscriber>;
|
|
498
|
+
|
|
487
499
|
videoDimensionsChanged: VideoDimensionsChangedEvent<Subscriber>;
|
|
488
500
|
|
|
489
501
|
videoDisabled: Event<'videoDisabled', Subscriber> & {
|