@opentok/client 2.22.4 → 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.
@@ -48,6 +48,8 @@ declare namespace OT {
48
48
 
49
49
  export function getSupportedCodecs(): Promise<{ videoEncoders: ('H264' | 'VP8')[], videoDecoders: ('H264' | 'VP8')[] }>;
50
50
 
51
+ export function hasMediaProcessorSupport(): boolean;
52
+
51
53
  export type WidgetStyle = {
52
54
  audioLevelDisplayMode: 'auto' | 'on' | 'off';
53
55
  backgroundImageURI: string;
@@ -96,6 +98,11 @@ declare namespace OT {
96
98
  blurStrength?: 'low' | 'high';
97
99
  };
98
100
 
101
+ export type BackgroundReplacementFilter = {
102
+ type: 'backgroundReplacement';
103
+ backgroundImgUrl: string;
104
+ };
105
+
99
106
  export type VideoFilter = BackgroundBlurFilter;
100
107
 
101
108
  export type PublisherProperties = WidgetProperties & GetUserMediaProperties & {
@@ -110,6 +117,7 @@ declare namespace OT {
110
117
  style?: Partial<PublisherStyle>;
111
118
  videoContentHint?: VideoContentHint;
112
119
  enableDtx?: boolean;
120
+ enableStereo?: boolean;
113
121
  videoFilter?: VideoFilter;
114
122
  };
115
123
 
@@ -391,6 +399,7 @@ declare namespace OT {
391
399
  getSubscribersForStream(stream: Stream): [Subscriber];
392
400
  publish(publisher: Publisher, callback?: (error?: OTError) => void): Publisher;
393
401
  publish(targetElement: string | HTMLElement, properties?: PublisherProperties, callback?: (error?: OTError) => void): Publisher;
402
+ setEncryptionSecret(secret: string): Promise<void>;
394
403
 
395
404
  signal(
396
405
  signal: { type?: string, data?: string, to?: Connection },
@@ -423,6 +432,7 @@ declare namespace OT {
423
432
  }[];
424
433
  };
425
434
  ipWhitelist?: boolean;
435
+ encryptionSecret?: string;
426
436
  }
427
437
  ): Session;
428
438
 
@@ -482,6 +492,10 @@ declare namespace OT {
482
492
  reason: string;
483
493
  };
484
494
 
495
+ encryptionSecretMismatch: Event<'encryptionSecretMismatch', Subscriber>;
496
+
497
+ encryptionSecretMatch: Event<'encryptionSecretMatch', Subscriber>;
498
+
485
499
  videoDimensionsChanged: VideoDimensionsChangedEvent<Subscriber>;
486
500
 
487
501
  videoDisabled: Event<'videoDisabled', Subscriber> & {