quickvo-sdk-js 1.6.50 → 1.6.52
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/index.js +20124 -19881
- package/dist/index.umd.cjs +3 -3
- package/dist/src/QuickVO.d.ts +4 -2
- package/dist/src/action/ActionSFU.d.ts +4 -0
- package/dist/src/base/Base.d.ts +1 -1
- package/dist/src/base/modules/AnimationFrame.d.ts +7 -2
- package/dist/src/base/modules/StreamRecorder.d.ts +4 -0
- package/dist/src/base/modules/cws/CallsWebSocket.d.ts +5 -0
- package/dist/src/base/modules/users/modules/UserBase.d.ts +1 -0
- package/package.json +1 -1
package/dist/src/QuickVO.d.ts
CHANGED
|
@@ -72,8 +72,10 @@ export declare class QuickVO {
|
|
|
72
72
|
quitRoom: () => Promise<boolean>;
|
|
73
73
|
quitRoomEx: () => Promise<boolean>;
|
|
74
74
|
destroy: () => void;
|
|
75
|
-
addRequestAnimationFrame: (key: string, func: FrameRequestCallback
|
|
76
|
-
|
|
75
|
+
addRequestAnimationFrame: (key: string, func: FrameRequestCallback, options?: {
|
|
76
|
+
fps?: number;
|
|
77
|
+
}) => void;
|
|
78
|
+
clearRequestAnimationFrame: (keys?: string[]) => void;
|
|
77
79
|
getLocalUserTrackReports: (mediaType: import('./enums').K_mediaType) => import('./types').TrackReport;
|
|
78
80
|
getRemoteUserTrackReports: (userId: string, origin: "sfu" | "p2p", direction: "sends" | "recvs", mediaType: import('./enums').K_mediaType) => import('./types').TrackReport | undefined;
|
|
79
81
|
_openP2P: (remoteUserId: string, mediaTypes: import('./enums').K_mediaType[], isRemotePush: boolean) => Promise<void>;
|
|
@@ -5,6 +5,10 @@ export declare class ActionSFU {
|
|
|
5
5
|
base: Base;
|
|
6
6
|
private _onOnline?;
|
|
7
7
|
private _reconnectTimerId?;
|
|
8
|
+
/** 网络计算是否进行中,用于避免与 interval 重叠执行 */
|
|
9
|
+
private _networkCalculating;
|
|
10
|
+
/** 上次打印 generateTrackAnalysis 超时告警的时间,用于限流(每 30 秒最多一次) */
|
|
11
|
+
private _lastTrackAnalysisWarnTime;
|
|
8
12
|
constructor({ base }: {
|
|
9
13
|
base: Base;
|
|
10
14
|
});
|
package/dist/src/base/Base.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare class Base {
|
|
|
53
53
|
mediaTypes: K_mediaType[];
|
|
54
54
|
desc?: string;
|
|
55
55
|
connectedTime?: string;
|
|
56
|
-
}) => Promise<Pick<import('../protos/protoEvent').MessageRsp<"reportP2PConnectEx">, "sn" | "event" | "data" | "code" | "desc"
|
|
56
|
+
}) => Promise<Pick<import('../protos/protoEvent').MessageRsp<"reportP2PConnectEx">, "sn" | "event" | "data" | "code" | "desc">> | undefined;
|
|
57
57
|
_reportLog: (_type: Report_Log_Type, describe?: string) => void;
|
|
58
58
|
}
|
|
59
59
|
export {};
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
export declare class AnimationFrame {
|
|
2
2
|
private _requestAnimationFrameId?;
|
|
3
3
|
private _requestAnimationFrameItems;
|
|
4
|
+
/** 每个 key 对应的上次调用时间(ms),用于按 fps 节流 */
|
|
5
|
+
private _lastInvokeTime;
|
|
4
6
|
/**
|
|
5
7
|
* add FrameRequestCallback
|
|
6
8
|
* @param key string
|
|
7
9
|
* @param func FrameRequestCallback
|
|
10
|
+
* @param options.fps 目标帧率(每秒调用次数),默认 20
|
|
8
11
|
*/
|
|
9
|
-
addRequestAnimationFrame: (key: string, func: FrameRequestCallback
|
|
12
|
+
addRequestAnimationFrame: (key: string, func: FrameRequestCallback, options?: {
|
|
13
|
+
fps?: number;
|
|
14
|
+
}) => void;
|
|
10
15
|
/**
|
|
11
16
|
* clear FrameRequestCallback
|
|
12
17
|
* @param keys string[] = []
|
|
13
18
|
*/
|
|
14
|
-
clearRequestAnimationFrame: (keys?: string[]) =>
|
|
19
|
+
clearRequestAnimationFrame: (keys?: string[]) => void;
|
|
15
20
|
init: () => void;
|
|
16
21
|
stop: () => void;
|
|
17
22
|
}
|
|
@@ -28,6 +28,10 @@ export declare class CallsWebSocket {
|
|
|
28
28
|
close?: (e: any) => void;
|
|
29
29
|
open?: (e: any) => void;
|
|
30
30
|
};
|
|
31
|
+
/** 日志写入节流:内存缓冲,避免每条消息都读写 localStorage */
|
|
32
|
+
private _logBuffer;
|
|
33
|
+
private _logFlushTimer;
|
|
34
|
+
private static _LOG_FLUSH_DELAY;
|
|
31
35
|
constructor({ config }: {
|
|
32
36
|
config: Config;
|
|
33
37
|
});
|
|
@@ -39,4 +43,5 @@ export declare class CallsWebSocket {
|
|
|
39
43
|
clearEvents: () => void;
|
|
40
44
|
retryEvents: () => Promise<void>;
|
|
41
45
|
private _updataLogs;
|
|
46
|
+
private _flushLogs;
|
|
42
47
|
}
|