@xylink/xy-rtc-sdk 4.0.0 → 4.0.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.
@@ -29,6 +29,18 @@ export declare const mergeCompatibleConstraints: (baseConstraints?: any) => {
29
29
  video: any;
30
30
  audio: any;
31
31
  };
32
+ /**
33
+ * 异步延迟等待
34
+ *
35
+ * @param { number } num - 延迟时间,单位毫秒
36
+ */
37
+ export declare const sleepAsync: (num: number) => Promise<unknown>;
38
+ /**
39
+ * 同步延迟等待
40
+ *
41
+ * @param { number } msec - 延迟时间,单位毫秒
42
+ */
43
+ export declare const sleepSync: (msec: number) => Promise<void>;
32
44
  /**
33
45
  * 处理采集视频流错误码
34
46
  *