@opentok/client 2.23.0 → 2.23.3

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.
@@ -98,7 +98,12 @@ declare namespace OT {
98
98
  blurStrength?: 'low' | 'high';
99
99
  };
100
100
 
101
- export type VideoFilter = BackgroundBlurFilter;
101
+ export type BackgroundReplacementFilter = {
102
+ type: 'backgroundReplacement';
103
+ backgroundImgUrl: string;
104
+ };
105
+
106
+ export type VideoFilter = BackgroundBlurFilter | BackgroundReplacementFilter;
102
107
 
103
108
  export type PublisherProperties = WidgetProperties & GetUserMediaProperties & {
104
109
  audioBitrate?: number;
@@ -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> & {