quickvo-sdk-js 0.8.3 → 0.9.0
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/README.md +7 -0
- package/dist/QuickVO.d.ts +8 -4
- package/dist/enums/eventName.d.ts +3 -1
- package/dist/enums/roomState.d.ts +2 -1
- package/dist/index.js +14187 -7911
- package/dist/index.umd.cjs +2 -2
- package/dist/protos/compiled.d.ts +5009 -4300
- package/dist/room/PrTaskQueue.d.ts +154 -0
- package/dist/room/RoomBase.d.ts +15 -16
- package/dist/room/RoomCalls.d.ts +38 -35
- package/dist/room/RoomMedias.d.ts +29 -29
- package/dist/room/RoomPeer.d.ts +12 -18
- package/dist/room/RoomUsers.d.ts +25 -27
- package/dist/types.d.ts +5 -1
- package/package.json +44 -43
package/README.md
CHANGED
package/dist/QuickVO.d.ts
CHANGED
|
@@ -4,24 +4,28 @@ export declare class QuickVO extends Room {
|
|
|
4
4
|
#private;
|
|
5
5
|
constructor(options: QuickOptions);
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* reconstruct
|
|
8
|
+
*/
|
|
9
|
+
reconstruct: () => Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* addNotify
|
|
8
12
|
* @param notify Notify
|
|
9
13
|
* @returns sn
|
|
10
14
|
*/
|
|
11
15
|
addNotify: (notify: Notify) => string;
|
|
12
16
|
/**
|
|
13
|
-
*
|
|
17
|
+
* add FrameRequestCallback
|
|
14
18
|
* @param key string
|
|
15
19
|
* @param func FrameRequestCallback
|
|
16
20
|
*/
|
|
17
21
|
addRequestAnimationFrame: (key: string, func: FrameRequestCallback) => Promise<void>;
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* clear FrameRequestCallback
|
|
20
24
|
* @param keys string[] = []
|
|
21
25
|
*/
|
|
22
26
|
clearRequestAnimationFrame: (keys?: string[]) => Promise<number[]>;
|
|
23
27
|
/**
|
|
24
|
-
*
|
|
28
|
+
* destroy
|
|
25
29
|
* @example quickvo.destroy()
|
|
26
30
|
*/
|
|
27
31
|
destroy: () => Promise<void>;
|
|
@@ -13,8 +13,10 @@ export declare const enum_eventName: {
|
|
|
13
13
|
readonly joinRoomEx: "加入房间(提前建连)";
|
|
14
14
|
readonly login: "登录";
|
|
15
15
|
readonly debugger: "调试";
|
|
16
|
+
readonly preventUsersBehavior: "阻止用户行为";
|
|
16
17
|
readonly pubNotify: "webrtc发布状态正常";
|
|
17
18
|
readonly heartbeat: "心跳";
|
|
19
|
+
readonly heartbeatEx: "慢心跳";
|
|
18
20
|
readonly shutdown: "清除缓存";
|
|
19
21
|
};
|
|
20
22
|
export type T_eventName = typeof enum_eventName;
|
|
@@ -25,4 +27,4 @@ export declare const eventName_options: {
|
|
|
25
27
|
label: any;
|
|
26
28
|
}[];
|
|
27
29
|
export declare const eventName_keys: (keyof typeof enum_eventName)[];
|
|
28
|
-
export declare const eventName_vals: ("更新网络状态" | "更新通话状态" | "同步房间" | "关闭轨道" | "协商流" | "订阅流" | "发布流" | "连接CF" | "退出房间" | "退出房间不断开连接" | "加入房间" | "加入房间(提前建连)" | "登录" | "调试" | "webrtc发布状态正常" | "心跳" | "清除缓存")[];
|
|
30
|
+
export declare const eventName_vals: ("更新网络状态" | "更新通话状态" | "同步房间" | "关闭轨道" | "协商流" | "订阅流" | "发布流" | "连接CF" | "退出房间" | "退出房间不断开连接" | "加入房间" | "加入房间(提前建连)" | "登录" | "调试" | "阻止用户行为" | "webrtc发布状态正常" | "心跳" | "慢心跳" | "清除缓存")[];
|
|
@@ -5,6 +5,7 @@ export declare const enum_roomState: {
|
|
|
5
5
|
readonly connected: "已连接";
|
|
6
6
|
readonly reconnect: "正在重新连接";
|
|
7
7
|
readonly disconnected: "已断开";
|
|
8
|
+
readonly failed: "连接错误";
|
|
8
9
|
readonly closed: "已关闭";
|
|
9
10
|
};
|
|
10
11
|
export type T_roomState = typeof enum_roomState;
|
|
@@ -15,4 +16,4 @@ export declare const roomState_options: {
|
|
|
15
16
|
label: any;
|
|
16
17
|
}[];
|
|
17
18
|
export declare const roomState_keys: (keyof typeof enum_roomState)[];
|
|
18
|
-
export declare const roomState_vals: ("已就绪" | "正在鉴权" | "连接中" | "已连接" | "正在重新连接" | "已断开" | "已关闭")[];
|
|
19
|
+
export declare const roomState_vals: ("已就绪" | "正在鉴权" | "连接中" | "已连接" | "正在重新连接" | "已断开" | "连接错误" | "已关闭")[];
|