@opentok/client 2.25.5 → 2.26.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.
@@ -65,13 +65,14 @@ declare namespace OT {
65
65
 
66
66
  export function hasMediaProcessorSupport(): boolean;
67
67
 
68
- export function hasEndToEndEncryptionSupport(): boolean;
68
+ export function hasEndToEndEncryptionSupport(): boolean;
69
69
 
70
70
  export type WidgetStyle = {
71
71
  audioLevelDisplayMode: 'auto' | 'on' | 'off';
72
72
  backgroundImageURI: string;
73
73
  buttonDisplayMode: 'auto' | 'on' | 'off';
74
74
  nameDisplayMode: 'auto' | 'on' | 'off';
75
+ videoDisabledDisplayMode: 'auto' | 'on' | 'off';
75
76
  };
76
77
 
77
78
  export type WidgetProperties = {
@@ -125,6 +126,10 @@ declare namespace OT {
125
126
  export type PublisherProperties = WidgetProperties & GetUserMediaProperties & {
126
127
  audioBitrate?: number;
127
128
  audioFallbackEnabled?: boolean;
129
+ audioFallback?: {
130
+ publisher?: boolean;
131
+ subscriber?: boolean;
132
+ };
128
133
  initials?: string;
129
134
  mirror?: boolean;
130
135
  name?: string;
@@ -141,7 +146,6 @@ declare namespace OT {
141
146
  };
142
147
 
143
148
  export type SubscriberStyle = WidgetStyle & {
144
- videoDisabledDisplayMode: 'auto' | 'on' | 'off';
145
149
  audioBlockedDisplayMode: 'auto' | 'on' | 'off';
146
150
  };
147
151
 
@@ -281,6 +285,16 @@ declare namespace OT {
281
285
  element: HTMLVideoElement | HTMLObjectElement;
282
286
  };
283
287
 
288
+ videoEnabled: Event<'videoEnabled', Publisher> & {
289
+ reason: 'quality';
290
+ };
291
+ videoDisabled: Event<'videoDisabled', Publisher> & {
292
+ reason: 'quality';
293
+ };
294
+
295
+ videoDisableWarning: Event<'videoDisableWarning', Publisher>;
296
+ videoDisableWarningLifted: Event<'videoDisableWarningLifted', Publisher>;
297
+
284
298
  muteForced: Event<'muteForced', Publisher>;
285
299
  }> {
286
300
  accessAllowed: boolean;