@opentok/client 2.23.5 → 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.
- package/dist/js/opentok.d.ts +12 -9
- package/dist/js/opentok.js +482 -230
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +4 -4
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.d.ts
CHANGED
|
@@ -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;
|
|
@@ -403,6 +413,7 @@ declare namespace OT {
|
|
|
403
413
|
publish(publisher: Publisher, callback?: (error?: OTError) => void): Publisher;
|
|
404
414
|
publish(targetElement: string | HTMLElement, properties?: PublisherProperties, callback?: (error?: OTError) => void): Publisher;
|
|
405
415
|
setEncryptionSecret(secret: string): Promise<void>;
|
|
416
|
+
setIceConfig(iceConfig: IceConfig): Promise <void>;
|
|
406
417
|
|
|
407
418
|
signal(
|
|
408
419
|
signal: { type?: string, data?: string, to?: Connection },
|
|
@@ -425,15 +436,7 @@ declare namespace OT {
|
|
|
425
436
|
sessionId: string,
|
|
426
437
|
options?: {
|
|
427
438
|
connectionEventsSuppressed?: boolean;
|
|
428
|
-
iceConfig?:
|
|
429
|
-
includeServers: 'all' | 'custom';
|
|
430
|
-
transportPolicy: 'all' | 'relay';
|
|
431
|
-
customServers: {
|
|
432
|
-
urls: string | string[];
|
|
433
|
-
username?: string;
|
|
434
|
-
credential?: string;
|
|
435
|
-
}[];
|
|
436
|
-
};
|
|
439
|
+
iceConfig?: IceConfig;
|
|
437
440
|
ipWhitelist?: boolean;
|
|
438
441
|
encryptionSecret?: string;
|
|
439
442
|
}
|