@opentok/client 2.21.0 → 2.21.4

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.
@@ -33,10 +33,17 @@ declare namespace OT {
33
33
  label: string;
34
34
  };
35
35
 
36
+ export type AudioOutputDevice = {
37
+ deviceId: string | null | undefined;
38
+ label: string | null;
39
+ };
40
+
36
41
  export function getDevices(
37
42
  callback: (error: OTError | undefined, devices?: Device[]) => void
38
43
  ): void;
39
44
 
45
+ export function getAudioOutputDevices(): Promise<AudioOutputDevice[]>;
46
+
40
47
  export function setProxyUrl(proxyUrl: string): void;
41
48
 
42
49
  export function getSupportedCodecs(): Promise<{ videoEncoders: ('H264' | 'VP8')[], videoDecoders: ('H264' | 'VP8')[] }>;
@@ -92,6 +99,7 @@ declare namespace OT {
92
99
  publishVideo?: boolean;
93
100
  style?: Partial<PublisherStyle>;
94
101
  videoContentHint?: VideoContentHint;
102
+ enableDtx?: boolean;
95
103
  };
96
104
 
97
105
  export type SubscriberStyle = WidgetStyle & {
@@ -479,6 +487,7 @@ declare namespace OT {
479
487
  getImgData(): string | null;
480
488
  getStats(callback: (error?: OTError, stats?: SubscriberStats) => void): void;
481
489
  getRtcStatsReport(): Promise<RTCStatsReport>;
490
+ isAudioBlocked(): boolean;
482
491
  restrictFrameRate(value: boolean): void;
483
492
  setAudioVolume(volume: number): void;
484
493
  setPreferredFrameRate(frameRate: number): void;
@@ -503,6 +512,8 @@ declare namespace OT {
503
512
 
504
513
  export function reportIssue(callback: (error?: OTError, reportId?: string) => void): void;
505
514
 
515
+ export function setAudioOutputDevice(deviceId: string): Promise<void>;
516
+
506
517
  export function setLogLevel(level: number): void;
507
518
 
508
519
  export function upgradeSystemRequirements(): void;