@hysc/meeting 4.0.2 → 4.0.4
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/esm/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +11 -8
- package/esm/boom-meeting/src/BMChat/BMChatVM.d.ts +2 -1
- package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
- package/esm/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
- package/esm/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
- package/esm/boom-meeting/src/BMStream/sortStream.d.ts +5 -2
- package/esm/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
- package/esm/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
- package/esm/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
- package/esm/boom-meeting/src/constants.d.ts +38 -8
- package/esm/boom-meeting/src/error/RTCError.d.ts +20 -0
- package/esm/boom-meeting/src/error/errorType.d.ts +96 -0
- package/esm/boom-meeting/src/handleEvent/attachEvents.d.ts +30 -0
- package/esm/boom-meeting/src/handleEvent/brtcNetEvent.d.ts +9 -0
- package/esm/boom-meeting/src/handleEvent/customMessageEvent.d.ts +2 -0
- package/esm/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +22 -0
- package/esm/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +14 -0
- package/esm/boom-meeting/src/handleEvent/messageEvent.d.ts +5 -0
- package/esm/boom-meeting/src/handleEvent/pullUser.d.ts +7 -0
- package/esm/boom-meeting/src/handleEvent/roomErrEvent.d.ts +7 -0
- package/esm/boom-meeting/src/handleEvent/streamEvent.d.ts +16 -0
- package/esm/boom-meeting/src/logger/logger.d.ts +86 -0
- package/esm/boom-meeting/src/util/Pqueue.d.ts +61 -0
- package/esm/boom-meeting/src/util/constant.d.ts +67 -0
- package/esm/boom-meeting/src/util/emitter.d.ts +4 -2
- package/esm/index.js +2 -2
- package/esm/index.js.map +3 -3
- package/esm/src/BMChat/BMChatVM.d.ts +25 -25
- package/esm/src/BMChat/BMMessageInfo.d.ts +31 -31
- package/esm/src/BMRoom/BMLiveVM.d.ts +35 -35
- package/esm/src/BMRoom/BMRoomInfo.d.ts +213 -213
- package/esm/src/BMRoom/BMRoomVM.d.ts +302 -302
- package/esm/src/BMStream/BMStreamModelVM.d.ts +254 -254
- package/esm/src/BMStream/sortStream.d.ts +5 -2
- package/esm/src/BMUser/BMUser.d.ts +156 -156
- package/esm/src/BMUser/BMUserVM.d.ts +141 -141
- package/esm/src/bjy-common/function/getErrorMessage.d.ts +1 -1
- package/esm/src/constants.d.ts +113 -113
- package/esm/src/error/RTCError.d.ts +20 -20
- package/esm/src/error/errorType.d.ts +96 -96
- package/esm/src/handleEvent/attachEvents.d.ts +30 -0
- package/esm/src/handleEvent/brtcNetEvent.d.ts +9 -0
- package/esm/src/handleEvent/customMessageEvent.d.ts +2 -0
- package/esm/src/handleEvent/handleParticipantEvent.d.ts +22 -0
- package/esm/src/handleEvent/handleRoomEvent.d.ts +14 -0
- package/esm/src/handleEvent/messageEvent.d.ts +5 -0
- package/esm/src/handleEvent/pullUser.d.ts +7 -0
- package/esm/src/handleEvent/roomErrEvent.d.ts +7 -0
- package/esm/src/handleEvent/streamEvent.d.ts +16 -0
- package/esm/src/logger/logger.d.ts +86 -86
- package/esm/src/util/Pqueue.d.ts +61 -61
- package/esm/src/util/constant.d.ts +67 -67
- package/esm/src/util/emitter.d.ts +20 -20
- package/esm/utils/BoomError.d.ts +21 -0
- package/esm/utils/ErrorTypes.d.ts +99 -0
- package/esm/utils/index.d.ts +9 -0
- package/package.json +4 -4
- package/umd/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +11 -8
- package/umd/boom-meeting/src/BMChat/BMChatVM.d.ts +2 -1
- package/umd/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
- package/umd/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
- package/umd/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
- package/umd/boom-meeting/src/BMStream/sortStream.d.ts +5 -2
- package/umd/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
- package/umd/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
- package/umd/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
- package/umd/boom-meeting/src/constants.d.ts +38 -8
- package/umd/boom-meeting/src/error/RTCError.d.ts +20 -0
- package/umd/boom-meeting/src/error/errorType.d.ts +96 -0
- package/umd/boom-meeting/src/handleEvent/attachEvents.d.ts +30 -0
- package/umd/boom-meeting/src/handleEvent/brtcNetEvent.d.ts +9 -0
- package/umd/boom-meeting/src/handleEvent/customMessageEvent.d.ts +2 -0
- package/umd/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +22 -0
- package/umd/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +14 -0
- package/umd/boom-meeting/src/handleEvent/messageEvent.d.ts +5 -0
- package/umd/boom-meeting/src/handleEvent/pullUser.d.ts +7 -0
- package/umd/boom-meeting/src/handleEvent/roomErrEvent.d.ts +7 -0
- package/umd/boom-meeting/src/handleEvent/streamEvent.d.ts +16 -0
- package/umd/boom-meeting/src/logger/logger.d.ts +86 -0
- package/umd/boom-meeting/src/util/Pqueue.d.ts +61 -0
- package/umd/boom-meeting/src/util/constant.d.ts +67 -0
- package/umd/boom-meeting/src/util/emitter.d.ts +4 -2
- package/umd/index.js +2 -2
- package/umd/src/BMRoom/BMRoomInfo.d.ts +6 -6
- package/umd/src/BMStream/BMStreamModelVM.d.ts +1 -3
- package/umd/src/BMUser/BMUser.d.ts +2 -2
- package/umd/src/BMUser/BMUserVM.d.ts +2 -3
- package/umd/src/constants.d.ts +0 -1
- package/umd/src/util/emitter.d.ts +1 -2
- package/umd/utils/BoomError.d.ts +21 -0
- package/umd/utils/ErrorTypes.d.ts +99 -0
- package/umd/utils/index.d.ts +9 -0
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* debug 级别
|
|
3
|
-
*/
|
|
4
|
-
export declare const DEBUG = 1;
|
|
5
|
-
/**
|
|
6
|
-
* info 级别
|
|
7
|
-
*/
|
|
8
|
-
export declare const INFO = 2;
|
|
9
|
-
/**
|
|
10
|
-
* info 级别
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* warn 级别
|
|
14
|
-
*/
|
|
15
|
-
export declare const WARN = 3;
|
|
16
|
-
/**
|
|
17
|
-
* error 级别
|
|
18
|
-
*/
|
|
19
|
-
export declare const ERROR = 4;
|
|
20
|
-
/**
|
|
21
|
-
* 关闭所有日志
|
|
22
|
-
*/
|
|
23
|
-
export declare const CLOSE = 5;
|
|
24
|
-
/**
|
|
25
|
-
* fatal 级别
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
export declare const FATAL = 6;
|
|
29
|
-
/**
|
|
30
|
-
* 设置日志输出级别
|
|
31
|
-
*
|
|
32
|
-
* @param level 日志输出级别
|
|
33
|
-
*/
|
|
34
|
-
export declare function setLevel(level: number): void;
|
|
35
|
-
/**
|
|
36
|
-
* 打印 debug 日志
|
|
37
|
-
*
|
|
38
|
-
* @param msg 日志内容
|
|
39
|
-
*/
|
|
40
|
-
export declare function debug(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
41
|
-
/**
|
|
42
|
-
* 打印 info 日志
|
|
43
|
-
*
|
|
44
|
-
* @param msg 日志内容
|
|
45
|
-
*/
|
|
46
|
-
export declare function info(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
47
|
-
/**
|
|
48
|
-
* 打印 call 日志
|
|
49
|
-
*
|
|
50
|
-
* @param msg
|
|
51
|
-
* @param args
|
|
52
|
-
*/
|
|
53
|
-
/**
|
|
54
|
-
* 打印 warn 日志
|
|
55
|
-
*
|
|
56
|
-
* @param msg 日志内容
|
|
57
|
-
*/
|
|
58
|
-
export declare function warn(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
59
|
-
/**
|
|
60
|
-
* 打印 error 日志
|
|
61
|
-
*
|
|
62
|
-
* @param msg 日志内容
|
|
63
|
-
*/
|
|
64
|
-
export declare function error(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
65
|
-
/**
|
|
66
|
-
* 致命错误,中断程序
|
|
67
|
-
*
|
|
68
|
-
* @param msg 日志内容
|
|
69
|
-
*/
|
|
70
|
-
export declare function fatal(code: number, name?: string, message?: string): void;
|
|
71
|
-
/**
|
|
72
|
-
* 打开日志上传
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
export declare function enableUploadLog(): void;
|
|
76
|
-
/**
|
|
77
|
-
* 关闭日志上传
|
|
78
|
-
*
|
|
79
|
-
*/
|
|
80
|
-
export declare function disableUploadLog(): void;
|
|
81
|
-
export declare const LogMap: {
|
|
82
|
-
1: typeof debug;
|
|
83
|
-
2: typeof info;
|
|
84
|
-
3: typeof warn;
|
|
85
|
-
4: typeof error;
|
|
86
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* debug 级别
|
|
3
|
+
*/
|
|
4
|
+
export declare const DEBUG = 1;
|
|
5
|
+
/**
|
|
6
|
+
* info 级别
|
|
7
|
+
*/
|
|
8
|
+
export declare const INFO = 2;
|
|
9
|
+
/**
|
|
10
|
+
* info 级别
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* warn 级别
|
|
14
|
+
*/
|
|
15
|
+
export declare const WARN = 3;
|
|
16
|
+
/**
|
|
17
|
+
* error 级别
|
|
18
|
+
*/
|
|
19
|
+
export declare const ERROR = 4;
|
|
20
|
+
/**
|
|
21
|
+
* 关闭所有日志
|
|
22
|
+
*/
|
|
23
|
+
export declare const CLOSE = 5;
|
|
24
|
+
/**
|
|
25
|
+
* fatal 级别
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare const FATAL = 6;
|
|
29
|
+
/**
|
|
30
|
+
* 设置日志输出级别
|
|
31
|
+
*
|
|
32
|
+
* @param level 日志输出级别
|
|
33
|
+
*/
|
|
34
|
+
export declare function setLevel(level: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* 打印 debug 日志
|
|
37
|
+
*
|
|
38
|
+
* @param msg 日志内容
|
|
39
|
+
*/
|
|
40
|
+
export declare function debug(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
41
|
+
/**
|
|
42
|
+
* 打印 info 日志
|
|
43
|
+
*
|
|
44
|
+
* @param msg 日志内容
|
|
45
|
+
*/
|
|
46
|
+
export declare function info(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* 打印 call 日志
|
|
49
|
+
*
|
|
50
|
+
* @param msg
|
|
51
|
+
* @param args
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* 打印 warn 日志
|
|
55
|
+
*
|
|
56
|
+
* @param msg 日志内容
|
|
57
|
+
*/
|
|
58
|
+
export declare function warn(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
59
|
+
/**
|
|
60
|
+
* 打印 error 日志
|
|
61
|
+
*
|
|
62
|
+
* @param msg 日志内容
|
|
63
|
+
*/
|
|
64
|
+
export declare function error(msg: string, tag?: string, userId?: any, args?: any): void;
|
|
65
|
+
/**
|
|
66
|
+
* 致命错误,中断程序
|
|
67
|
+
*
|
|
68
|
+
* @param msg 日志内容
|
|
69
|
+
*/
|
|
70
|
+
export declare function fatal(code: number, name?: string, message?: string): void;
|
|
71
|
+
/**
|
|
72
|
+
* 打开日志上传
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export declare function enableUploadLog(): void;
|
|
76
|
+
/**
|
|
77
|
+
* 关闭日志上传
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare function disableUploadLog(): void;
|
|
81
|
+
export declare const LogMap: {
|
|
82
|
+
1: typeof debug;
|
|
83
|
+
2: typeof info;
|
|
84
|
+
3: typeof warn;
|
|
85
|
+
4: typeof error;
|
|
86
|
+
};
|
package/esm/src/util/Pqueue.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @ Author: zhaozhidan
|
|
3
|
-
* @ Create Time: 2020-04-26 11:47:55
|
|
4
|
-
* @ Modified by: zhaozhidan
|
|
5
|
-
* @ Modified time: 2020-09-19 22:19:21
|
|
6
|
-
* @ Description: Boom
|
|
7
|
-
*/
|
|
8
|
-
declare class Pqueue {
|
|
9
|
-
private queueArray;
|
|
10
|
-
private isTaskPending;
|
|
11
|
-
private queue;
|
|
12
|
-
constructor(maxTask: number, isStart?: boolean);
|
|
13
|
-
/**
|
|
14
|
-
* 添加队列
|
|
15
|
-
* @param {*} fn 生成Promise函数
|
|
16
|
-
* @param {String} taskId 任务标识别
|
|
17
|
-
* @param {Number} priority 任务优先级
|
|
18
|
-
* @param {String} nickName 要打印的值
|
|
19
|
-
*/
|
|
20
|
-
addQueue(fn: any, taskId: string, priority?: number, nickName?: string): void;
|
|
21
|
-
/**
|
|
22
|
-
* 清空队列
|
|
23
|
-
*/
|
|
24
|
-
clearQueue(): void;
|
|
25
|
-
/**
|
|
26
|
-
* 队列开始执行
|
|
27
|
-
*/
|
|
28
|
-
startQueue(): void;
|
|
29
|
-
/**
|
|
30
|
-
* 暂停队列
|
|
31
|
-
*/
|
|
32
|
-
pauseQueue(): any[];
|
|
33
|
-
/**
|
|
34
|
-
* 返回队列里还未pending和执行完的任务数
|
|
35
|
-
* @returns {number}
|
|
36
|
-
*/
|
|
37
|
-
size(): number;
|
|
38
|
-
/**
|
|
39
|
-
* 返回队列里还未pending和执行完的任务数
|
|
40
|
-
* @returns {number}
|
|
41
|
-
*/
|
|
42
|
-
pending(): number;
|
|
43
|
-
/**
|
|
44
|
-
* 查询任务是否结束
|
|
45
|
-
*/
|
|
46
|
-
checkTaskStatus(): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* 修改任务的状态
|
|
49
|
-
*/
|
|
50
|
-
setTaskStatus(res: boolean): void;
|
|
51
|
-
/**
|
|
52
|
-
* 队列是否执行完了.
|
|
53
|
-
*/
|
|
54
|
-
onIdle(): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* 队列是否执行完了.
|
|
57
|
-
*/
|
|
58
|
-
onEmpty(): Promise<void>;
|
|
59
|
-
}
|
|
60
|
-
export declare const streamPullQueue: Pqueue;
|
|
61
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @ Author: zhaozhidan
|
|
3
|
+
* @ Create Time: 2020-04-26 11:47:55
|
|
4
|
+
* @ Modified by: zhaozhidan
|
|
5
|
+
* @ Modified time: 2020-09-19 22:19:21
|
|
6
|
+
* @ Description: Boom
|
|
7
|
+
*/
|
|
8
|
+
declare class Pqueue {
|
|
9
|
+
private queueArray;
|
|
10
|
+
private isTaskPending;
|
|
11
|
+
private queue;
|
|
12
|
+
constructor(maxTask: number, isStart?: boolean);
|
|
13
|
+
/**
|
|
14
|
+
* 添加队列
|
|
15
|
+
* @param {*} fn 生成Promise函数
|
|
16
|
+
* @param {String} taskId 任务标识别
|
|
17
|
+
* @param {Number} priority 任务优先级
|
|
18
|
+
* @param {String} nickName 要打印的值
|
|
19
|
+
*/
|
|
20
|
+
addQueue(fn: any, taskId: string, priority?: number, nickName?: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* 清空队列
|
|
23
|
+
*/
|
|
24
|
+
clearQueue(): void;
|
|
25
|
+
/**
|
|
26
|
+
* 队列开始执行
|
|
27
|
+
*/
|
|
28
|
+
startQueue(): void;
|
|
29
|
+
/**
|
|
30
|
+
* 暂停队列
|
|
31
|
+
*/
|
|
32
|
+
pauseQueue(): any[];
|
|
33
|
+
/**
|
|
34
|
+
* 返回队列里还未pending和执行完的任务数
|
|
35
|
+
* @returns {number}
|
|
36
|
+
*/
|
|
37
|
+
size(): number;
|
|
38
|
+
/**
|
|
39
|
+
* 返回队列里还未pending和执行完的任务数
|
|
40
|
+
* @returns {number}
|
|
41
|
+
*/
|
|
42
|
+
pending(): number;
|
|
43
|
+
/**
|
|
44
|
+
* 查询任务是否结束
|
|
45
|
+
*/
|
|
46
|
+
checkTaskStatus(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 修改任务的状态
|
|
49
|
+
*/
|
|
50
|
+
setTaskStatus(res: boolean): void;
|
|
51
|
+
/**
|
|
52
|
+
* 队列是否执行完了.
|
|
53
|
+
*/
|
|
54
|
+
onIdle(): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* 队列是否执行完了.
|
|
57
|
+
*/
|
|
58
|
+
onEmpty(): Promise<void>;
|
|
59
|
+
}
|
|
60
|
+
export declare const streamPullQueue: Pqueue;
|
|
61
|
+
export {};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file 为了压缩,定义的常量
|
|
3
|
-
* @author zhaogaoxing
|
|
4
|
-
*/
|
|
5
|
-
export declare const TRUE = true;
|
|
6
|
-
export declare const FALSE = false;
|
|
7
|
-
export declare const NULL: null;
|
|
8
|
-
export declare const UNDEFINED: undefined;
|
|
9
|
-
export declare const MINUS_ONE = -1;
|
|
10
|
-
export declare const RAW_TRUE = "true";
|
|
11
|
-
export declare const RAW_FALSE = "false";
|
|
12
|
-
export declare const RAW_NULL = "null";
|
|
13
|
-
export declare const RAW_UNDEFINED = "undefined";
|
|
14
|
-
export declare const RAW_THIS = "this";
|
|
15
|
-
export declare const RAW_VALUE = "value";
|
|
16
|
-
export declare const RAW_LENGTH = "length";
|
|
17
|
-
export declare const RAW_FUNCTION = "function";
|
|
18
|
-
export declare const RAW_WILDCARD = "*";
|
|
19
|
-
export declare const RAW_DOT = ".";
|
|
20
|
-
export declare const RAW_SLASH = "/";
|
|
21
|
-
export declare const RAW_TAG = "tag";
|
|
22
|
-
export declare const KEYPATH_PARENT = "..";
|
|
23
|
-
export declare const KEYPATH_CURRENT = "this";
|
|
24
|
-
/**
|
|
25
|
-
* Single instance for window in browser
|
|
26
|
-
*/
|
|
27
|
-
export declare const WINDOW: (Window & typeof globalThis) | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Single instance for document in browser
|
|
30
|
-
*/
|
|
31
|
-
export declare const DOCUMENT: Document | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Single instance for global in nodejs or browser
|
|
34
|
-
*/
|
|
35
|
-
export declare const GLOBAL: typeof globalThis | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Single instance for noop function
|
|
38
|
-
*/
|
|
39
|
-
export declare const EMPTY_FUNCTION: () => void;
|
|
40
|
-
/**
|
|
41
|
-
* 空对象,很多地方会用到,比如 `a || EMPTY_OBJECT` 确保是个对象
|
|
42
|
-
*/
|
|
43
|
-
export declare const EMPTY_OBJECT: Readonly<{}>;
|
|
44
|
-
/**
|
|
45
|
-
* 空数组
|
|
46
|
-
*/
|
|
47
|
-
export declare const EMPTY_ARRAY: readonly never[];
|
|
48
|
-
/**
|
|
49
|
-
* 空字符串
|
|
50
|
-
*/
|
|
51
|
-
export declare const EMPTY_STRING = "";
|
|
52
|
-
export declare const WEBRTC_TYPE_VLOUD = 0;
|
|
53
|
-
export declare const WEBRTC_TYPE_TENCENT = 1;
|
|
54
|
-
export declare const PRODUCTION = "production";
|
|
55
|
-
export declare const BETA = "beta";
|
|
56
|
-
export declare const DEVELOPMENT = "development";
|
|
57
|
-
export declare const LOGGER_TAG_CLIENT = "c";
|
|
58
|
-
export declare const LOGGER_TAG_STREAM = "s";
|
|
59
|
-
export declare const LOGGER_TAG_SIGNAL = "g";
|
|
60
|
-
export declare const LOGGER_TAG_PLAYER = "p";
|
|
61
|
-
export declare const MEDIA_TYPE_CAMERA = "videoinput";
|
|
62
|
-
export declare const MEDIA_TYPE_MIC = "audioinput";
|
|
63
|
-
export declare const MEDIA_TYPE_SPEAKER = "audiooutput";
|
|
64
|
-
export declare const ROOM_CHANNEL_TYPE_WS = 0;
|
|
65
|
-
export declare const ROOM_CHANNEL_TYPE_DC = 1;
|
|
66
|
-
export declare const SING_MODE = 1;
|
|
67
|
-
export declare const MIX_MODE = 2;
|
|
1
|
+
/**
|
|
2
|
+
* @file 为了压缩,定义的常量
|
|
3
|
+
* @author zhaogaoxing
|
|
4
|
+
*/
|
|
5
|
+
export declare const TRUE = true;
|
|
6
|
+
export declare const FALSE = false;
|
|
7
|
+
export declare const NULL: null;
|
|
8
|
+
export declare const UNDEFINED: undefined;
|
|
9
|
+
export declare const MINUS_ONE = -1;
|
|
10
|
+
export declare const RAW_TRUE = "true";
|
|
11
|
+
export declare const RAW_FALSE = "false";
|
|
12
|
+
export declare const RAW_NULL = "null";
|
|
13
|
+
export declare const RAW_UNDEFINED = "undefined";
|
|
14
|
+
export declare const RAW_THIS = "this";
|
|
15
|
+
export declare const RAW_VALUE = "value";
|
|
16
|
+
export declare const RAW_LENGTH = "length";
|
|
17
|
+
export declare const RAW_FUNCTION = "function";
|
|
18
|
+
export declare const RAW_WILDCARD = "*";
|
|
19
|
+
export declare const RAW_DOT = ".";
|
|
20
|
+
export declare const RAW_SLASH = "/";
|
|
21
|
+
export declare const RAW_TAG = "tag";
|
|
22
|
+
export declare const KEYPATH_PARENT = "..";
|
|
23
|
+
export declare const KEYPATH_CURRENT = "this";
|
|
24
|
+
/**
|
|
25
|
+
* Single instance for window in browser
|
|
26
|
+
*/
|
|
27
|
+
export declare const WINDOW: (Window & typeof globalThis) | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Single instance for document in browser
|
|
30
|
+
*/
|
|
31
|
+
export declare const DOCUMENT: Document | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Single instance for global in nodejs or browser
|
|
34
|
+
*/
|
|
35
|
+
export declare const GLOBAL: typeof globalThis | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Single instance for noop function
|
|
38
|
+
*/
|
|
39
|
+
export declare const EMPTY_FUNCTION: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* 空对象,很多地方会用到,比如 `a || EMPTY_OBJECT` 确保是个对象
|
|
42
|
+
*/
|
|
43
|
+
export declare const EMPTY_OBJECT: Readonly<{}>;
|
|
44
|
+
/**
|
|
45
|
+
* 空数组
|
|
46
|
+
*/
|
|
47
|
+
export declare const EMPTY_ARRAY: readonly never[];
|
|
48
|
+
/**
|
|
49
|
+
* 空字符串
|
|
50
|
+
*/
|
|
51
|
+
export declare const EMPTY_STRING = "";
|
|
52
|
+
export declare const WEBRTC_TYPE_VLOUD = 0;
|
|
53
|
+
export declare const WEBRTC_TYPE_TENCENT = 1;
|
|
54
|
+
export declare const PRODUCTION = "production";
|
|
55
|
+
export declare const BETA = "beta";
|
|
56
|
+
export declare const DEVELOPMENT = "development";
|
|
57
|
+
export declare const LOGGER_TAG_CLIENT = "c";
|
|
58
|
+
export declare const LOGGER_TAG_STREAM = "s";
|
|
59
|
+
export declare const LOGGER_TAG_SIGNAL = "g";
|
|
60
|
+
export declare const LOGGER_TAG_PLAYER = "p";
|
|
61
|
+
export declare const MEDIA_TYPE_CAMERA = "videoinput";
|
|
62
|
+
export declare const MEDIA_TYPE_MIC = "audioinput";
|
|
63
|
+
export declare const MEDIA_TYPE_SPEAKER = "audiooutput";
|
|
64
|
+
export declare const ROOM_CHANNEL_TYPE_WS = 0;
|
|
65
|
+
export declare const ROOM_CHANNEL_TYPE_DC = 1;
|
|
66
|
+
export declare const SING_MODE = 1;
|
|
67
|
+
export declare const MIX_MODE = 2;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
-
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
3
|
-
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
4
|
-
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
5
|
-
declare type Events = {
|
|
6
|
-
[RECEIVE_SUBSCRIBE_MESSAGE]: SubscribeMessage;
|
|
7
|
-
[USER_SORT_NUM_CHANGE]: null;
|
|
8
|
-
[HANDLE_STREAM_CONNECT_ERROR]: ConnectErrorMessage;
|
|
9
|
-
[RAISE_HAND]: RaiseHandInfo;
|
|
10
|
-
[UNSUBSCRIBE_STREAM]: SubscribeMessage;
|
|
11
|
-
[MANUAL_SUBSCRIPTION]: SubscribeMessage;
|
|
12
|
-
[CHANG_IS_GUEST]: ChangeIsGuest;
|
|
13
|
-
[BIND_ELEMENT]: SubscribeMessage;
|
|
14
|
-
[BIND_BIG_ELEMENT]: SubscribeMessage;
|
|
15
|
-
[NO_CONTAINER]: NoPlayerContainer;
|
|
16
|
-
[MODEL_SORT_NUM_CHANGE]: null;
|
|
17
|
-
};
|
|
18
|
-
export declare const emitter: import("mitt").Emitter<Events>;
|
|
19
|
-
export declare const removeEmitter: () => void;
|
|
20
|
-
export {};
|
|
1
|
+
import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
+
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
3
|
+
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
4
|
+
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
5
|
+
declare type Events = {
|
|
6
|
+
[RECEIVE_SUBSCRIBE_MESSAGE]: SubscribeMessage;
|
|
7
|
+
[USER_SORT_NUM_CHANGE]: null;
|
|
8
|
+
[HANDLE_STREAM_CONNECT_ERROR]: ConnectErrorMessage;
|
|
9
|
+
[RAISE_HAND]: RaiseHandInfo;
|
|
10
|
+
[UNSUBSCRIBE_STREAM]: SubscribeMessage;
|
|
11
|
+
[MANUAL_SUBSCRIPTION]: SubscribeMessage;
|
|
12
|
+
[CHANG_IS_GUEST]: ChangeIsGuest;
|
|
13
|
+
[BIND_ELEMENT]: SubscribeMessage;
|
|
14
|
+
[BIND_BIG_ELEMENT]: SubscribeMessage;
|
|
15
|
+
[NO_CONTAINER]: NoPlayerContainer;
|
|
16
|
+
[MODEL_SORT_NUM_CHANGE]: null;
|
|
17
|
+
};
|
|
18
|
+
export declare const emitter: import("mitt").Emitter<Events>;
|
|
19
|
+
export declare const removeEmitter: () => void;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: BoomError
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-04-21 10:11
|
|
5
|
+
* @description:BoomError
|
|
6
|
+
* @update: 2023-04-21 10:11
|
|
7
|
+
*/
|
|
8
|
+
export declare class BoomError extends Error {
|
|
9
|
+
readonly boom_error_flag_ = "__BOOM_ERROR___";
|
|
10
|
+
private readonly code;
|
|
11
|
+
message: string;
|
|
12
|
+
private readonly eName?;
|
|
13
|
+
constructor(code: number, message: string | object, name?: string);
|
|
14
|
+
/**
|
|
15
|
+
* 返回的是一个JSON 的 字符串,可以通过JSON.parse 解析
|
|
16
|
+
*/
|
|
17
|
+
toString(): string;
|
|
18
|
+
getCode(): number;
|
|
19
|
+
getMessage(): string;
|
|
20
|
+
getErrorName(): string | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: ErrorTypes
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-07-08 11:20
|
|
5
|
+
* @description:ErrorTypes
|
|
6
|
+
* @update: 2022-07-08 11:20
|
|
7
|
+
*/
|
|
8
|
+
import { BoomError } from "./BoomError";
|
|
9
|
+
/**
|
|
10
|
+
* boom-core层的错误
|
|
11
|
+
*/
|
|
12
|
+
export declare type ErrorTypes = {
|
|
13
|
+
code: number;
|
|
14
|
+
message: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare enum BoomCoreErrorCode {
|
|
18
|
+
'BloudLock' = 28,
|
|
19
|
+
'ShareScreenNoPermission' = 100,
|
|
20
|
+
'ShareScreenCanceled' = 101,
|
|
21
|
+
'ShareScreenOtherError' = 102,
|
|
22
|
+
'ShareScreenContentHintError' = 103,
|
|
23
|
+
'ShareScreenClientJoinedError' = 104,
|
|
24
|
+
'BrtcShareSigError' = 105,
|
|
25
|
+
'ToggleShareScreenError' = 106,
|
|
26
|
+
'BrtcCreateStreamError' = 107,
|
|
27
|
+
'BrtcSubscribeError' = 108,
|
|
28
|
+
'BrtcPublishError' = 109,
|
|
29
|
+
'BrtcUnsubscribeError' = 110,
|
|
30
|
+
'BrtcUnPublishError' = 111,
|
|
31
|
+
'RepeatJoinError' = 112,
|
|
32
|
+
'ProxiesUrlTypeError' = 113,
|
|
33
|
+
'getBloudProxiesUrlError' = 114,
|
|
34
|
+
'JoinUserInfoError' = 115,
|
|
35
|
+
'JoinTypeError' = 116,
|
|
36
|
+
'JoinBrtcError' = 117,
|
|
37
|
+
'JoinBloudError' = 118,
|
|
38
|
+
'UpdateCustomStatsError' = 119,
|
|
39
|
+
'CreateBloudError' = 120
|
|
40
|
+
}
|
|
41
|
+
export declare const ShareScreenNoPermission: BoomError;
|
|
42
|
+
export declare const ShareScreenCanceled: BoomError;
|
|
43
|
+
export declare const ShareScreenOtherError: (msg: string) => BoomError;
|
|
44
|
+
export declare const ShareScreenContentHintError: BoomError;
|
|
45
|
+
export declare const ShareScreenClientJoinedError: BoomError;
|
|
46
|
+
export declare const BrtcShareSigError: BoomError;
|
|
47
|
+
export declare const ToggleShareScreenError: (msg: string) => BoomError;
|
|
48
|
+
export declare const RepeatJoinError: BoomError;
|
|
49
|
+
export declare const ProxiesUrlTypeError: BoomError;
|
|
50
|
+
export declare const getBloudProxiesUrlError: (msg: string) => BoomError;
|
|
51
|
+
export declare const JoinUserInfoError: BoomError;
|
|
52
|
+
export declare const JoinTypeError: BoomError;
|
|
53
|
+
export declare const JoinBrtcError: (msg: string) => BoomError;
|
|
54
|
+
export declare const JoinBloudError: (msg: string) => BoomError;
|
|
55
|
+
export declare const BloudLockError: (msg: string) => BoomError;
|
|
56
|
+
export declare const BrtcCreateStreamError: (msg: string) => BoomError;
|
|
57
|
+
export declare const BrtcSubscribeError: (msg: string) => BoomError;
|
|
58
|
+
export declare const BrtcPublishError: (msg: string) => BoomError;
|
|
59
|
+
export declare const BrtcUnsubscribeError: (msg: string) => BoomError;
|
|
60
|
+
export declare const BrtcUnPublishError: (msg: string) => BoomError;
|
|
61
|
+
export declare const updateCustomStatsError: (msg: string) => BoomError;
|
|
62
|
+
export declare enum BoomMeetingErrorCode {
|
|
63
|
+
'BmJoinError' = 200,
|
|
64
|
+
'BMLeaveError' = 201,
|
|
65
|
+
'BmSetRemoteVideoEnable' = 202,
|
|
66
|
+
'BmSetRemoteAudioEnable' = 203,
|
|
67
|
+
'BmSetLocalVideoEnable' = 204,
|
|
68
|
+
'BmSetLocalAudioEnable' = 205,
|
|
69
|
+
'BmSetLocalSpeakerEnable' = 206,
|
|
70
|
+
'BmChangeMasterError' = 207,
|
|
71
|
+
'BmUpdateManagerError' = 208,
|
|
72
|
+
'BmEvictUserError' = 209,
|
|
73
|
+
'BmUpdateUserError' = 210,
|
|
74
|
+
'BmSetAudioOffError' = 211,
|
|
75
|
+
'BmSetVideoOffError' = 212,
|
|
76
|
+
'BmSetMsgOffError' = 213,
|
|
77
|
+
'BmUpdateCustomStatsError' = 214,
|
|
78
|
+
'BmChangeVideoProfileError' = 215,
|
|
79
|
+
'BmChangeAudioProfileError' = 216,
|
|
80
|
+
'BmCheckDeviceError' = 217
|
|
81
|
+
}
|
|
82
|
+
export declare const BmJoinError: (msg: string) => BoomError;
|
|
83
|
+
export declare const BmLeaveError: (msg: string) => BoomError;
|
|
84
|
+
export declare const BmSetRemoteVideoEnable: (msg: string) => BoomError;
|
|
85
|
+
export declare const BmSetRemoteAudioEnable: (msg: string) => BoomError;
|
|
86
|
+
export declare const BmSetLocalVideoEnable: (msg: string) => BoomError;
|
|
87
|
+
export declare const BmSetLocalAudioEnable: (msg: string) => BoomError;
|
|
88
|
+
export declare const BmSetLocalSpeakerEnable: (msg: string) => BoomError;
|
|
89
|
+
export declare const BmChangeMasterError: (msg: string) => BoomError;
|
|
90
|
+
export declare const BmUpdateManagerError: (msg: string) => BoomError;
|
|
91
|
+
export declare const BmEvictUserError: (msg: string) => BoomError;
|
|
92
|
+
export declare const BmUpdateUserError: (msg: string) => BoomError;
|
|
93
|
+
export declare const BmSetAudioOffError: (msg: string) => BoomError;
|
|
94
|
+
export declare const BmSetVideoOffError: (msg: string) => BoomError;
|
|
95
|
+
export declare const BmSetMsgOffError: (msg: string) => BoomError;
|
|
96
|
+
export declare const BmUpdateCustomStatsError: (msg: string) => BoomError;
|
|
97
|
+
export declare const BmChangeVideoProfileError: (msg: string) => BoomError;
|
|
98
|
+
export declare const BmChangeAudioProfileError: (msg: string) => BoomError;
|
|
99
|
+
export declare const BmCheckDeviceError: (msg: string) => BoomError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "boom meeting",
|
|
5
5
|
"main": "umd/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"author": "yangliye",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@hysc/core": "4.0.
|
|
17
|
+
"@hysc/core": "4.0.4",
|
|
18
18
|
"lodash-es": "^4.17.21",
|
|
19
19
|
"mitt": "^3.0.0",
|
|
20
20
|
"@hysc/p-queue": "6.3.0",
|
|
21
21
|
"rxjs": "^7.5.5",
|
|
22
22
|
"typescript": "^4.6.3",
|
|
23
|
-
"@hysc/utils": "1.2.
|
|
23
|
+
"@hysc/utils": "1.2.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@hysc/core": "4.0.
|
|
26
|
+
"@hysc/core": "4.0.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.6"
|