quickvo-player 0.2.0 → 0.2.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.
- package/dist/P2P.d.ts +1 -0
- package/dist/PrResolves.d.ts +19 -0
- package/dist/QuickVoPlayer.d.ts +1 -0
- package/dist/index.js +454 -451
- package/dist/index.umd.cjs +4 -4
- package/package.json +3 -2
package/dist/P2P.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare let aa: WebSocket;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type ResolveInfo = Map<string, {
|
|
2
|
+
resolve: Function;
|
|
3
|
+
timer: number;
|
|
4
|
+
}>;
|
|
5
|
+
export declare class PrResolves {
|
|
6
|
+
resolvesMap: Map<string, ResolveInfo>;
|
|
7
|
+
index: number;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param eventKey 唯一key
|
|
12
|
+
* @param checkFun 检测函数
|
|
13
|
+
* @param timeout 超时时间 ms
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
add: (eventKey: string, checkFun?: Function, timeout?: number) => Promise<unknown>;
|
|
17
|
+
emit: (eventKey: string) => Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|