@opentok/client 2.23.0 → 2.23.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/js/opentok.d.ts +11 -0
- package/dist/js/opentok.js +24460 -1346
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +7 -7
- 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 & {
|
|
@@ -394,6 +399,7 @@ declare namespace OT {
|
|
|
394
399
|
getSubscribersForStream(stream: Stream): [Subscriber];
|
|
395
400
|
publish(publisher: Publisher, callback?: (error?: OTError) => void): Publisher;
|
|
396
401
|
publish(targetElement: string | HTMLElement, properties?: PublisherProperties, callback?: (error?: OTError) => void): Publisher;
|
|
402
|
+
setEncryptionSecret(secret: string): Promise<void>;
|
|
397
403
|
|
|
398
404
|
signal(
|
|
399
405
|
signal: { type?: string, data?: string, to?: Connection },
|
|
@@ -426,6 +432,7 @@ declare namespace OT {
|
|
|
426
432
|
}[];
|
|
427
433
|
};
|
|
428
434
|
ipWhitelist?: boolean;
|
|
435
|
+
encryptionSecret?: string;
|
|
429
436
|
}
|
|
430
437
|
): Session;
|
|
431
438
|
|
|
@@ -485,6 +492,10 @@ declare namespace OT {
|
|
|
485
492
|
reason: string;
|
|
486
493
|
};
|
|
487
494
|
|
|
495
|
+
encryptionSecretMismatch: Event<'encryptionSecretMismatch', Subscriber>;
|
|
496
|
+
|
|
497
|
+
encryptionSecretMatch: Event<'encryptionSecretMatch', Subscriber>;
|
|
498
|
+
|
|
488
499
|
videoDimensionsChanged: VideoDimensionsChangedEvent<Subscriber>;
|
|
489
500
|
|
|
490
501
|
videoDisabled: Event<'videoDisabled', Subscriber> & {
|