@opentok/client 2.22.1 → 2.22.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.
@@ -90,6 +90,13 @@ declare namespace OT {
90
90
 
91
91
  export type VideoContentHint = "text" | "detail" | "motion" | "";
92
92
 
93
+ export type BackgroundBlurFilter = {
94
+ type: 'backgroundBlur';
95
+ blurStrength?: 'low' | 'high';
96
+ };
97
+
98
+ export type VideoFilter = BackgroundBlurFilter;
99
+
93
100
  export type PublisherProperties = WidgetProperties & GetUserMediaProperties & {
94
101
  audioBitrate?: number;
95
102
  audioFallbackEnabled?: boolean;
@@ -97,9 +104,11 @@ declare namespace OT {
97
104
  name?: string;
98
105
  publishAudio?: boolean;
99
106
  publishVideo?: boolean;
107
+ scalableScreenshare?: boolean;
100
108
  style?: Partial<PublisherStyle>;
101
109
  videoContentHint?: VideoContentHint;
102
110
  enableDtx?: boolean;
111
+ videoFilter?: VideoFilter;
103
112
  };
104
113
 
105
114
  export type SubscriberStyle = WidgetStyle & {
@@ -255,6 +264,9 @@ declare namespace OT {
255
264
  getStats(callback: (error?: OTError, stats?: PublisherStatsArr) => void): void;
256
265
  getRtcStatsReport(): Promise<PublisherRtcStatsReportArr>;
257
266
  getStyle(): PublisherProperties;
267
+ applyVideoFilter(videoFilter: VideoFilter): Promise<void>;
268
+ getVideoFilter(): VideoFilter | null;
269
+ clearVideoFilter(): Promise<void>;
258
270
  publishAudio(value: boolean): void;
259
271
  publishVideo(value: boolean): void;
260
272
  cycleVideo(): Promise<{ deviceId: string }>;
@@ -331,7 +343,7 @@ declare namespace OT {
331
343
  signal: Event<'signal', Session> & {
332
344
  type?: string;
333
345
  data?: string;
334
- from: Connection;
346
+ from: Connection | null;
335
347
  };
336
348
 
337
349
  streamCreated: Event<'streamCreated', Session> & {