@opentok/client 2.23.4 → 2.23.6

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.
@@ -39,6 +39,16 @@ declare namespace OT {
39
39
  label: string | null;
40
40
  };
41
41
 
42
+ export type IceConfig = {
43
+ includeServers: 'all' | 'custom';
44
+ transportPolicy: 'all' | 'relay';
45
+ customServers: Array<{
46
+ urls: string | string[];
47
+ username?: string;
48
+ credential?: string;
49
+ }>;
50
+ };
51
+
42
52
  export function getDevices(
43
53
  callback: (error: OTError | undefined, devices?: Device[]) => void
44
54
  ): void;
@@ -274,7 +284,7 @@ declare namespace OT {
274
284
  getImgData(): string | null;
275
285
  getStats(callback: (error?: OTError, stats?: PublisherStatsArr) => void): void;
276
286
  getRtcStatsReport(): Promise<PublisherRtcStatsReportArr>;
277
- getStyle(): PublisherProperties;
287
+ getStyle(): PublisherStyle;
278
288
  applyVideoFilter(videoFilter: VideoFilter): Promise<void>;
279
289
  getVideoFilter(): VideoFilter | null;
280
290
  clearVideoFilter(): Promise<void>;
@@ -292,6 +302,7 @@ declare namespace OT {
292
302
  videoWidth(): number | undefined;
293
303
  videoHeight(): number | undefined;
294
304
  setVideoMediaProcessorConnector(connector: MediaProcessorConnector | null): Promise<void>;
305
+ setAudioMediaProcessorConnector(connector: MediaProcessorConnector | null): Promise<void>;
295
306
  }
296
307
 
297
308
  export function getUserMedia(
@@ -402,6 +413,7 @@ declare namespace OT {
402
413
  publish(publisher: Publisher, callback?: (error?: OTError) => void): Publisher;
403
414
  publish(targetElement: string | HTMLElement, properties?: PublisherProperties, callback?: (error?: OTError) => void): Publisher;
404
415
  setEncryptionSecret(secret: string): Promise<void>;
416
+ setIceConfig(iceConfig: IceConfig): Promise <void>;
405
417
 
406
418
  signal(
407
419
  signal: { type?: string, data?: string, to?: Connection },
@@ -424,15 +436,7 @@ declare namespace OT {
424
436
  sessionId: string,
425
437
  options?: {
426
438
  connectionEventsSuppressed?: boolean;
427
- iceConfig?: {
428
- includeServers: 'all' | 'custom';
429
- transportPolicy: 'all' | 'relay';
430
- customServers: {
431
- urls: string | string[];
432
- username?: string;
433
- credential?: string;
434
- }[];
435
- };
439
+ iceConfig?: IceConfig;
436
440
  ipWhitelist?: boolean;
437
441
  encryptionSecret?: string;
438
442
  }