@hysc/meeting 5.0.115 → 5.0.117
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/index.js +40401 -8
- package/esm/index.js.map +3 -3
- package/esm/src/BMChat/BMChatVM.d.ts +3 -3
- package/esm/src/BMRoom/BMRoom.d.ts +19 -10
- package/esm/src/BMStream/BMStreamModel.d.ts +6 -5
- package/esm/src/BMStream/BMStreamModelVM.d.ts +5 -15
- package/esm/src/BMUser/BMUser.d.ts +1 -1
- package/esm/src/BMUser/BMUserVM.d.ts +4 -4
- package/esm/src/audioPlay/AudioPlay.d.ts +1 -1
- package/esm/src/handleEvent/attachEvents.d.ts +2 -3
- package/esm/src/handleEvent/handleParticipantEvent.d.ts +2 -2
- package/esm/src/index.d.ts +4 -2
- package/esm/src/type/stream.d.ts +1 -4
- package/package.json +8 -7
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +3 -0
- package/umd/boom-meeting/src/BMStream/BMStreamModel.d.ts +1 -1
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +0 -11
- package/umd/index.js +1 -1
- package/esm/BMChat/BMChatVM.d.ts +0 -24
- package/esm/BMChat/BMMessageInfo.d.ts +0 -31
- package/esm/BMRoom/BMLiveVM.d.ts +0 -35
- package/esm/BMRoom/BMRoom.d.ts +0 -638
- package/esm/BMRoom/BMRoomInfo.d.ts +0 -189
- package/esm/BMRoom/BMRoomVM.d.ts +0 -284
- package/esm/BMRoom/RoomEvent.d.ts +0 -1
- package/esm/BMRoom/attachEvents.d.ts +0 -27
- package/esm/BMStream/BMSpeaker.d.ts +0 -44
- package/esm/BMStream/BMStreamModel.d.ts +0 -262
- package/esm/BMStream/BMStreamModelVM.d.ts +0 -235
- package/esm/BMStream/getHTMLMediaStreamOptions.d.ts +0 -35
- package/esm/BMUser/BMUser.d.ts +0 -153
- package/esm/BMUser/BMUserVM.d.ts +0 -131
- package/esm/bjy-common/function/debounce.d.ts +0 -9
- package/esm/bjy-common/function/execute.d.ts +0 -9
- package/esm/bjy-common/function/getErrorMessage.d.ts +0 -1
- package/esm/bjy-common/function/isDef.d.ts +0 -1
- package/esm/bjy-common/function/isNative.d.ts +0 -1
- package/esm/bjy-common/function/isUndef.d.ts +0 -1
- package/esm/bjy-common/function/nextTick.d.ts +0 -2
- package/esm/bjy-common/function/throttling.d.ts +0 -9
- package/esm/bjy-common/function/toNumber.d.ts +0 -1
- package/esm/bjy-common/function/toString.d.ts +0 -1
- package/esm/bjy-common/type/api.d.ts +0 -66
- package/esm/bjy-common/type/options.d.ts +0 -7
- package/esm/bjy-common/type/type.d.ts +0 -90
- package/esm/bjy-common/util/CustomEvent.d.ts +0 -30
- package/esm/bjy-common/util/Emitter.d.ts +0 -57
- package/esm/bjy-common/util/NextTask.d.ts +0 -28
- package/esm/bjy-common/util/Sleep.d.ts +0 -14
- package/esm/bjy-common/util/Timer.d.ts +0 -13
- package/esm/bjy-common/util/array.d.ts +0 -96
- package/esm/bjy-common/util/browser.d.ts +0 -6
- package/esm/bjy-common/util/constant.d.ts +0 -50
- package/esm/bjy-common/util/holder.d.ts +0 -6
- package/esm/bjy-common/util/is.d.ts +0 -49
- package/esm/bjy-common/util/keypath.d.ts +0 -41
- package/esm/bjy-common/util/logger.d.ts +0 -42
- package/esm/bjy-common/util/network.d.ts +0 -4
- package/esm/bjy-common/util/object.d.ts +0 -83
- package/esm/bjy-common/util/os.d.ts +0 -14
- package/esm/bjy-common/util/string.d.ts +0 -102
- package/esm/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +0 -428
- package/esm/boom-meeting/src/BMChat/BMChatVM.d.ts +0 -26
- package/esm/boom-meeting/src/BMChat/BMMessageInfo.d.ts +0 -31
- package/esm/boom-meeting/src/BMRoom/BMLiveVM.d.ts +0 -35
- package/esm/boom-meeting/src/BMRoom/BMRoom.d.ts +0 -696
- package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +0 -215
- package/esm/boom-meeting/src/BMRoom/BMRoomVM.d.ts +0 -317
- package/esm/boom-meeting/src/BMRoom/RoomEvent.d.ts +0 -1
- package/esm/boom-meeting/src/BMRoom/attachEvents.d.ts +0 -34
- package/esm/boom-meeting/src/BMStream/BMSpeaker.d.ts +0 -26
- package/esm/boom-meeting/src/BMStream/BMStreamModel.d.ts +0 -305
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +0 -270
- package/esm/boom-meeting/src/BMStream/getHTMLMediaStreamOptions.d.ts +0 -35
- package/esm/boom-meeting/src/BMStream/sortStream.d.ts +0 -30
- package/esm/boom-meeting/src/BMUser/BMUser.d.ts +0 -156
- package/esm/boom-meeting/src/BMUser/BMUserVM.d.ts +0 -177
- package/esm/boom-meeting/src/EventHandler.d.ts +0 -20
- package/esm/boom-meeting/src/SingletonQueue/SingletonQueue.d.ts +0 -26
- package/esm/boom-meeting/src/audioPlay/AudioPlay.d.ts +0 -31
- package/esm/boom-meeting/src/bjy-common/function/debounce.d.ts +0 -9
- package/esm/boom-meeting/src/bjy-common/function/execute.d.ts +0 -9
- package/esm/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +0 -1
- package/esm/boom-meeting/src/bjy-common/function/isDef.d.ts +0 -1
- package/esm/boom-meeting/src/bjy-common/function/isNative.d.ts +0 -1
- package/esm/boom-meeting/src/bjy-common/function/isUndef.d.ts +0 -1
- package/esm/boom-meeting/src/bjy-common/function/nextTick.d.ts +0 -2
- package/esm/boom-meeting/src/bjy-common/function/throttling.d.ts +0 -9
- package/esm/boom-meeting/src/bjy-common/function/toNumber.d.ts +0 -1
- package/esm/boom-meeting/src/bjy-common/function/toString.d.ts +0 -1
- package/esm/boom-meeting/src/bjy-common/type/api.d.ts +0 -66
- package/esm/boom-meeting/src/bjy-common/type/options.d.ts +0 -7
- package/esm/boom-meeting/src/bjy-common/type/type.d.ts +0 -90
- package/esm/boom-meeting/src/bjy-common/util/CustomEvent.d.ts +0 -30
- package/esm/boom-meeting/src/bjy-common/util/Emitter.d.ts +0 -57
- package/esm/boom-meeting/src/bjy-common/util/NextTask.d.ts +0 -28
- package/esm/boom-meeting/src/bjy-common/util/Sleep.d.ts +0 -14
- package/esm/boom-meeting/src/bjy-common/util/Timer.d.ts +0 -13
- package/esm/boom-meeting/src/bjy-common/util/array.d.ts +0 -96
- package/esm/boom-meeting/src/bjy-common/util/browser.d.ts +0 -6
- package/esm/boom-meeting/src/bjy-common/util/constant.d.ts +0 -50
- package/esm/boom-meeting/src/bjy-common/util/holder.d.ts +0 -6
- package/esm/boom-meeting/src/bjy-common/util/is.d.ts +0 -49
- package/esm/boom-meeting/src/bjy-common/util/keypath.d.ts +0 -41
- package/esm/boom-meeting/src/bjy-common/util/logger.d.ts +0 -42
- package/esm/boom-meeting/src/bjy-common/util/network.d.ts +0 -4
- package/esm/boom-meeting/src/bjy-common/util/object.d.ts +0 -83
- package/esm/boom-meeting/src/bjy-common/util/os.d.ts +0 -14
- package/esm/boom-meeting/src/bjy-common/util/string.d.ts +0 -102
- package/esm/boom-meeting/src/constants.d.ts +0 -129
- package/esm/boom-meeting/src/error/RTCError.d.ts +0 -20
- package/esm/boom-meeting/src/error/errorMap.d.ts +0 -70
- package/esm/boom-meeting/src/error/errorType.d.ts +0 -96
- package/esm/boom-meeting/src/handleEvent/attachEvents.d.ts +0 -48
- package/esm/boom-meeting/src/handleEvent/brtcNetEvent.d.ts +0 -9
- package/esm/boom-meeting/src/handleEvent/customMessageEvent.d.ts +0 -2
- package/esm/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +0 -24
- package/esm/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +0 -20
- package/esm/boom-meeting/src/handleEvent/messageEvent.d.ts +0 -5
- package/esm/boom-meeting/src/handleEvent/pullUser.d.ts +0 -7
- package/esm/boom-meeting/src/handleEvent/roomErrEvent.d.ts +0 -9
- package/esm/boom-meeting/src/handleEvent/streamEvent.d.ts +0 -22
- package/esm/boom-meeting/src/logger/logger.d.ts +0 -86
- package/esm/boom-meeting/src/type/customStats.d.ts +0 -123
- package/esm/boom-meeting/src/type/index.d.ts +0 -9
- package/esm/boom-meeting/src/type/stream.d.ts +0 -15
- package/esm/boom-meeting/src/type/user.d.ts +0 -9
- package/esm/boom-meeting/src/util/PackLoss.d.ts +0 -7
- package/esm/boom-meeting/src/util/Pqueue.d.ts +0 -62
- package/esm/boom-meeting/src/util/Privileges.d.ts +0 -20
- package/esm/boom-meeting/src/util/ReportCollector.d.ts +0 -22
- package/esm/boom-meeting/src/util/Stutter.d.ts +0 -19
- package/esm/boom-meeting/src/util/Thread.d.ts +0 -12
- package/esm/boom-meeting/src/util/base64.d.ts +0 -4
- package/esm/boom-meeting/src/util/checkPermissions.d.ts +0 -1
- package/esm/boom-meeting/src/util/checkSystemRequirements.d.ts +0 -1
- package/esm/boom-meeting/src/util/constant.d.ts +0 -67
- package/esm/boom-meeting/src/util/devices.d.ts +0 -2
- package/esm/boom-meeting/src/util/emitter.d.ts +0 -43
- package/esm/boom-meeting/src/util/formatUserId.d.ts +0 -2
- package/esm/boom-meeting/src/util/is.d.ts +0 -70
- package/esm/boom-meeting/src/util/peerToPeerProbe.d.ts +0 -9
- package/esm/boom-meeting/src/util/request.d.ts +0 -45
- package/esm/boom-meeting/src/util/roomUtils.d.ts +0 -9
- package/esm/boom-meeting/src/util/sortUtils.d.ts +0 -10
- package/esm/boom-meeting/src/util/util.d.ts +0 -78
- package/esm/constants.d.ts +0 -107
- package/esm/error/RTCError.d.ts +0 -20
- package/esm/error/errorMap.d.ts +0 -70
- package/esm/error/errorType.d.ts +0 -96
- package/esm/index.d.ts +0 -2
- package/esm/logger/logger.d.ts +0 -86
- package/esm/src/BMRoom/attachEvents.d.ts +0 -34
- package/esm/src/EventHandler.d.ts +0 -20
- package/esm/type/customStats.d.ts +0 -117
- package/esm/type/index.d.ts +0 -9
- package/esm/type/stream.d.ts +0 -17
- package/esm/type/user.d.ts +0 -9
- package/esm/util/PackLoss.d.ts +0 -7
- package/esm/util/Pqueue.d.ts +0 -61
- package/esm/util/Privileges.d.ts +0 -20
- package/esm/util/ReportCollector.d.ts +0 -22
- package/esm/util/Stutter.d.ts +0 -19
- package/esm/util/base64.d.ts +0 -4
- package/esm/util/checkPermissions.d.ts +0 -1
- package/esm/util/checkSystemRequirements.d.ts +0 -1
- package/esm/util/constant.d.ts +0 -67
- package/esm/util/devices.d.ts +0 -2
- package/esm/util/emitter.d.ts +0 -18
- package/esm/util/formatUserId.d.ts +0 -2
- package/esm/util/is.d.ts +0 -70
- package/esm/util/peerToPeerProbe.d.ts +0 -9
- package/esm/util/request.d.ts +0 -45
- package/esm/util/roomUtils.d.ts +0 -9
- package/esm/util/sortUtils.d.ts +0 -10
- package/esm/util/util.d.ts +0 -76
- package/esm/utils/BoomError.d.ts +0 -19
- package/esm/utils/ErrorTypes.d.ts +0 -139
- package/esm/utils/index.d.ts +0 -9
package/esm/error/errorMap.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export declare const BoomErrorMessage: {
|
|
2
|
-
1000: {
|
|
3
|
-
name: string;
|
|
4
|
-
message: string;
|
|
5
|
-
};
|
|
6
|
-
1001: {
|
|
7
|
-
name: string;
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
1002: {
|
|
11
|
-
name: string;
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
1003: {
|
|
15
|
-
name: string;
|
|
16
|
-
message: string;
|
|
17
|
-
};
|
|
18
|
-
4000: {
|
|
19
|
-
name: string;
|
|
20
|
-
message: string;
|
|
21
|
-
};
|
|
22
|
-
4001: {
|
|
23
|
-
name: string;
|
|
24
|
-
message: string;
|
|
25
|
-
};
|
|
26
|
-
4002: {
|
|
27
|
-
name: string;
|
|
28
|
-
message: string;
|
|
29
|
-
};
|
|
30
|
-
4003: {
|
|
31
|
-
name: string;
|
|
32
|
-
message: string;
|
|
33
|
-
};
|
|
34
|
-
4004: {
|
|
35
|
-
name: string;
|
|
36
|
-
message: string;
|
|
37
|
-
};
|
|
38
|
-
4005: {
|
|
39
|
-
name: string;
|
|
40
|
-
message: string;
|
|
41
|
-
};
|
|
42
|
-
4006: {
|
|
43
|
-
name: string;
|
|
44
|
-
message: string;
|
|
45
|
-
};
|
|
46
|
-
4007: {
|
|
47
|
-
name: string;
|
|
48
|
-
message: string;
|
|
49
|
-
};
|
|
50
|
-
4008: {
|
|
51
|
-
name: string;
|
|
52
|
-
message: string;
|
|
53
|
-
};
|
|
54
|
-
5000: {
|
|
55
|
-
name: string;
|
|
56
|
-
message: string;
|
|
57
|
-
};
|
|
58
|
-
5001: {
|
|
59
|
-
name: string;
|
|
60
|
-
message: string;
|
|
61
|
-
};
|
|
62
|
-
9000: {
|
|
63
|
-
name: string;
|
|
64
|
-
message: string;
|
|
65
|
-
};
|
|
66
|
-
1010: {
|
|
67
|
-
name: string;
|
|
68
|
-
message: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
package/esm/error/errorType.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 本地一般错误
|
|
3
|
-
*/
|
|
4
|
-
export declare const LOCAL_ERROR = 1000;
|
|
5
|
-
/**
|
|
6
|
-
* 无效参数
|
|
7
|
-
*/
|
|
8
|
-
export declare const INVALID_PARAMETER = 1001;
|
|
9
|
-
/**
|
|
10
|
-
* 非法操作
|
|
11
|
-
*/
|
|
12
|
-
export declare const INVALID_OPERATION = 1002;
|
|
13
|
-
/**
|
|
14
|
-
* 不支持
|
|
15
|
-
*/
|
|
16
|
-
export declare const NOT_SUPPORTED = 1003;
|
|
17
|
-
/**
|
|
18
|
-
* 没有权限
|
|
19
|
-
*/
|
|
20
|
-
export declare const PERMISSION_DENY = 1010;
|
|
21
|
-
/**
|
|
22
|
-
* 没有推送音频权限
|
|
23
|
-
*/
|
|
24
|
-
export declare const PERMISSION_DENY_AUDIO = 1011;
|
|
25
|
-
/**
|
|
26
|
-
* 没有推送视频权限
|
|
27
|
-
*/
|
|
28
|
-
export declare const PERMISSION_DENY_VIDEO = 1012;
|
|
29
|
-
/**
|
|
30
|
-
* 进入频道失败
|
|
31
|
-
*/
|
|
32
|
-
export declare const JOIN_CHANNEL_ERROR = 4000;
|
|
33
|
-
/**
|
|
34
|
-
* 信令通道建立失败
|
|
35
|
-
*/
|
|
36
|
-
export declare const SIGNAL_SETUP_FAILED = 4001;
|
|
37
|
-
/**
|
|
38
|
-
* 信令通道错误
|
|
39
|
-
*/
|
|
40
|
-
export declare const SIGNAL_ERROR = 4002;
|
|
41
|
-
/**
|
|
42
|
-
* ICE Tansport 连接错误
|
|
43
|
-
*/
|
|
44
|
-
export declare const ICE_TRANSPORT_ERROR = 4003;
|
|
45
|
-
/**
|
|
46
|
-
* 创建 sdp offer 失败
|
|
47
|
-
*/
|
|
48
|
-
export declare const CREATE_OFFER_FAILED = 4004;
|
|
49
|
-
/**
|
|
50
|
-
* 端被踢出
|
|
51
|
-
*/
|
|
52
|
-
export declare const CLIENT_BANNED = 4005;
|
|
53
|
-
/**
|
|
54
|
-
* 媒体传输超时
|
|
55
|
-
*/
|
|
56
|
-
export declare const MEDIA_SERVER_TIMEOUT = 4006;
|
|
57
|
-
/**
|
|
58
|
-
* 订阅远端流超时
|
|
59
|
-
*/
|
|
60
|
-
export declare const SUBSCRIPTION_TIMEOUT = 4007;
|
|
61
|
-
/**
|
|
62
|
-
* 推流错误
|
|
63
|
-
*/
|
|
64
|
-
export declare const MEDIA_PUBLISH_ERROR = 4008;
|
|
65
|
-
/**
|
|
66
|
-
* 用户被踢出
|
|
67
|
-
*/
|
|
68
|
-
export declare const USER_KICKED = 4009;
|
|
69
|
-
/**
|
|
70
|
-
* 订阅重试的过程中出现 stream 已被销毁
|
|
71
|
-
*/
|
|
72
|
-
export declare const MEDIA_SUBSCRIPTION_RETRY_NULL_ERROR = 4010;
|
|
73
|
-
/**
|
|
74
|
-
* HTTP 请求失败
|
|
75
|
-
*/
|
|
76
|
-
export declare const FETCH_ERROR = 5000;
|
|
77
|
-
/**
|
|
78
|
-
* userSig 校验失败
|
|
79
|
-
*/
|
|
80
|
-
export declare const USER_SIG_ERROR = 5001;
|
|
81
|
-
/**
|
|
82
|
-
* token 过期
|
|
83
|
-
*/
|
|
84
|
-
export declare const TOKEN_EXPIRE_ERROR = 5002;
|
|
85
|
-
/**
|
|
86
|
-
* 房间关闭
|
|
87
|
-
*/
|
|
88
|
-
export declare const ROOM_CLOSED_ERROR = 5003;
|
|
89
|
-
/**
|
|
90
|
-
* 未知错误
|
|
91
|
-
*/
|
|
92
|
-
export declare const UNKNOWN = 9000;
|
|
93
|
-
/**
|
|
94
|
-
* 用户不存在
|
|
95
|
-
*/
|
|
96
|
-
export declare const USER_NOT_EXIT = 9001;
|
package/esm/index.d.ts
DELETED
package/esm/logger/logger.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
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,34 +0,0 @@
|
|
|
1
|
-
import BoomCore from '@hysc/core/esm';
|
|
2
|
-
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
3
|
-
import BMRoom from './BMRoom';
|
|
4
|
-
import { SingleRemoteStream } from '../type';
|
|
5
|
-
import BMUserVM from "../BMUser/BMUserVM";
|
|
6
|
-
import BMChatVM from '../BMChat/BMChatVM';
|
|
7
|
-
import { BehaviorSubject } from 'rxjs';
|
|
8
|
-
import BMStreamModel from "../BMStream/BMStreamModel";
|
|
9
|
-
import { BCEvent } from "@hysc/core/src/BoomCore/BCClient/clientEventType";
|
|
10
|
-
/**
|
|
11
|
-
* 收到消息信令的集合
|
|
12
|
-
*/
|
|
13
|
-
export declare enum MessageType {
|
|
14
|
-
/**
|
|
15
|
-
* 初始化watcher用
|
|
16
|
-
*/
|
|
17
|
-
INIT = "init",
|
|
18
|
-
/**
|
|
19
|
-
* 收到远端控制本地摄像头的消息
|
|
20
|
-
*/
|
|
21
|
-
VIDEO_FORCE_CHANGE = "video-force-change",
|
|
22
|
-
/**
|
|
23
|
-
* 收到远端控制本地麦克风的消息
|
|
24
|
-
*/
|
|
25
|
-
AUDIO_FORCE_CHANGE = "audio-force-change"
|
|
26
|
-
}
|
|
27
|
-
export declare function getStreamFromBrtcStreamMap(remoteStream: SingleRemoteStream): import("@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default | undefined;
|
|
28
|
-
export declare function attachBRTCEvent(boomCore: BoomCore, bmStreamVm: BMStreamModelVM, userVM: BMUserVM): void;
|
|
29
|
-
declare type Observes = {
|
|
30
|
-
[K in BCEvent]: BehaviorSubject<any>;
|
|
31
|
-
};
|
|
32
|
-
export declare function attachEvents(boomCore: BoomCore, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, chatVM: BMChatVM, bmRoom: BMRoom): Observes;
|
|
33
|
-
export declare function checkStreamIsNormal(streamModel: BMStreamModel | undefined): void;
|
|
34
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name: EventHandler
|
|
3
|
-
* @author: yangliye
|
|
4
|
-
* @date: 2023-04-04 10:14
|
|
5
|
-
* @description:EventHandler
|
|
6
|
-
* @update: 2023-04-04 10:14
|
|
7
|
-
*/
|
|
8
|
-
import BMUserVM from "./BMUser/BMUserVM";
|
|
9
|
-
import BMRoom from "./BMRoom/BMRoom";
|
|
10
|
-
import BMStreamModelVM from "./BMStream/BMStreamModelVM";
|
|
11
|
-
import BCClient from "@hysc/core";
|
|
12
|
-
import BMChatVM from "./BMChat/BMChatVM";
|
|
13
|
-
import BoomCore from "@hysc/core";
|
|
14
|
-
import BCUser from "@hysc/core/esm/BoomAdapter/User/User";
|
|
15
|
-
import BMUser from "./BMUser/BMUser";
|
|
16
|
-
export declare function handleParticipantLeft(data: any, userVM: BMUserVM, bmRoom: BMRoom, observes: any, bmStreamVm: BMStreamModelVM, boomCore: BCClient, chatVM: BMChatVM): void;
|
|
17
|
-
export declare function handleParticipantJoin(data: any, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, boomCore: BoomCore, chatVM: BMChatVM, observes: any): Promise<void>;
|
|
18
|
-
export declare function handleRoomSync(data: any, bmRoom: BMRoom, userVm: BMUserVM, bmStreamVm: BMStreamModelVM): Promise<void>;
|
|
19
|
-
export declare function updateBMUser(allUsers: Map<string, BCUser>, bmUser: BMUser, userVm: BMUserVM): void;
|
|
20
|
-
export declare function handleInitRoomInfo(data: any, bmRoom: BMRoom): Promise<void>;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name: customStats
|
|
3
|
-
* @author: yangliye
|
|
4
|
-
* @date: 2022-07-14 17:35
|
|
5
|
-
* @description:customStats 类型声明定义
|
|
6
|
-
* @update: 2022-07-14 17:35
|
|
7
|
-
*/
|
|
8
|
-
export interface From {
|
|
9
|
-
fromTag: string;
|
|
10
|
-
}
|
|
11
|
-
export interface Tile {
|
|
12
|
-
index: number;
|
|
13
|
-
user: string;
|
|
14
|
-
nickname: string;
|
|
15
|
-
stream: string;
|
|
16
|
-
}
|
|
17
|
-
export interface NextTile {
|
|
18
|
-
index: number;
|
|
19
|
-
nickname: string;
|
|
20
|
-
user: string;
|
|
21
|
-
stream: string;
|
|
22
|
-
}
|
|
23
|
-
export interface MainLayout {
|
|
24
|
-
user: string;
|
|
25
|
-
layout: number;
|
|
26
|
-
activeSubtiles: boolean;
|
|
27
|
-
tiles: Tile[];
|
|
28
|
-
nextTiles: NextTile[];
|
|
29
|
-
}
|
|
30
|
-
export interface Tile2 {
|
|
31
|
-
index: number;
|
|
32
|
-
nickname: string;
|
|
33
|
-
user: string;
|
|
34
|
-
stream: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ForceOn {
|
|
37
|
-
user?: string;
|
|
38
|
-
isShare?: boolean;
|
|
39
|
-
active?: boolean;
|
|
40
|
-
laterScreen?: boolean;
|
|
41
|
-
tiles?: Tile2[];
|
|
42
|
-
}
|
|
43
|
-
export interface Tile3 {
|
|
44
|
-
index: number;
|
|
45
|
-
nickname: string;
|
|
46
|
-
user: string;
|
|
47
|
-
stream: string;
|
|
48
|
-
}
|
|
49
|
-
export interface Tiles4 {
|
|
50
|
-
index: number;
|
|
51
|
-
nickname: string;
|
|
52
|
-
user: string;
|
|
53
|
-
stream: string;
|
|
54
|
-
isSubStream?: boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface HostLayout {
|
|
57
|
-
user: string;
|
|
58
|
-
layout: number;
|
|
59
|
-
activeSubtiles: boolean;
|
|
60
|
-
tiles: Tiles4[];
|
|
61
|
-
}
|
|
62
|
-
export interface DefaultLayout {
|
|
63
|
-
mode: number;
|
|
64
|
-
allowSwitchingLayout: boolean;
|
|
65
|
-
tiles: Tile3[];
|
|
66
|
-
}
|
|
67
|
-
export interface Roll {
|
|
68
|
-
active: boolean;
|
|
69
|
-
start: number;
|
|
70
|
-
interval: number;
|
|
71
|
-
}
|
|
72
|
-
export interface ShareList {
|
|
73
|
-
user: string;
|
|
74
|
-
stream: string;
|
|
75
|
-
}
|
|
76
|
-
export interface CustomStats {
|
|
77
|
-
/**
|
|
78
|
-
* 默认为0,自由模式,可随时切换;
|
|
79
|
-
*
|
|
80
|
-
* 1时使用 defaultLayout,布局内可控;
|
|
81
|
-
*
|
|
82
|
-
* 2时使用 mainLayout,主会场同内容
|
|
83
|
-
*/
|
|
84
|
-
layoutMode: number;
|
|
85
|
-
from: From;
|
|
86
|
-
mainLayout: MainLayout;
|
|
87
|
-
forceOn: ForceOn;
|
|
88
|
-
defaultLayout: DefaultLayout;
|
|
89
|
-
roll: Roll;
|
|
90
|
-
shareList: ShareList[];
|
|
91
|
-
chatNotice: string;
|
|
92
|
-
chatNoticeRich: object;
|
|
93
|
-
giveLikeEnable: number;
|
|
94
|
-
chatEnable: number;
|
|
95
|
-
fileUpdateModel: number;
|
|
96
|
-
fileUpdateLook: number;
|
|
97
|
-
fileUpdateDown: number;
|
|
98
|
-
fileUpdateEdit: number;
|
|
99
|
-
screenShareModel: number;
|
|
100
|
-
activeSubtiles: boolean;
|
|
101
|
-
hostLayout: HostLayout;
|
|
102
|
-
updateKeys: any[];
|
|
103
|
-
joinAudioEnable: number;
|
|
104
|
-
joinVideoEnable: number;
|
|
105
|
-
userListEnable: number;
|
|
106
|
-
audioEnable: number;
|
|
107
|
-
videoEnable: number;
|
|
108
|
-
modifyNameEnable: number;
|
|
109
|
-
backgroundAIEnable: number;
|
|
110
|
-
recordEnable: number;
|
|
111
|
-
joinMicrophoneDisable: number;
|
|
112
|
-
joinCameraDisable: number;
|
|
113
|
-
forceOpenUserMic: boolean;
|
|
114
|
-
forceOpenUserCamera: boolean;
|
|
115
|
-
onlyOnePersonShare: number;
|
|
116
|
-
}
|
|
117
|
-
export declare type PartialCustomStats = Partial<CustomStats>;
|
package/esm/type/index.d.ts
DELETED
package/esm/type/stream.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name: stream
|
|
3
|
-
* @author: yangliye
|
|
4
|
-
* @date: 2022-04-25 13:42
|
|
5
|
-
* @description:stream
|
|
6
|
-
* @update: 2022-04-25 13:42
|
|
7
|
-
*/
|
|
8
|
-
import LocalStream from '@hysc/core/esm/BoomAdapter/singleMode/stream/LocalStream';
|
|
9
|
-
import RemoteStream from '@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream';
|
|
10
|
-
import { StreamDeviceOption } from '@hysc/core/esm/BoomAdapter/type/BRTCStream';
|
|
11
|
-
import { RemoteStreamOptions } from '@hysc/core/esm/BoomCore/BCClient/BCClient';
|
|
12
|
-
export { SubscribeOptions } from '@hysc/core/esm/BoomAdapter/type/BRTCClient';
|
|
13
|
-
export declare type SingleLocalStream = LocalStream;
|
|
14
|
-
export declare type SingleRemoteStream = RemoteStream;
|
|
15
|
-
export declare type SingleStream = SingleLocalStream | SingleRemoteStream;
|
|
16
|
-
export declare type SingleStreamDeviceOption = StreamDeviceOption;
|
|
17
|
-
export declare type SingleRemoteStreamOption = Pick<RemoteStreamOptions, 'uid' | 'stream' | 'subStream' | 'sid'>;
|
package/esm/type/user.d.ts
DELETED
package/esm/util/PackLoss.d.ts
DELETED
package/esm/util/Pqueue.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
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 {};
|
package/esm/util/Privileges.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default class Privileges {
|
|
2
|
-
private code;
|
|
3
|
-
constructor(code?: number);
|
|
4
|
-
/**
|
|
5
|
-
* 是否开启了权限控制
|
|
6
|
-
*/
|
|
7
|
-
enableAuth(): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* 是否可以发送音频
|
|
10
|
-
*/
|
|
11
|
-
canPushAudio(): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* 是否可以发送视频
|
|
14
|
-
*/
|
|
15
|
-
canPushVideo(): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* 是否可以使用互动白板
|
|
18
|
-
*/
|
|
19
|
-
canUseWhiteboard(): boolean;
|
|
20
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default class ReportCollector {
|
|
2
|
-
/**
|
|
3
|
-
* 数据采集间隔 秒
|
|
4
|
-
*/
|
|
5
|
-
private sample;
|
|
6
|
-
private audioPackLost;
|
|
7
|
-
private videoPackLost;
|
|
8
|
-
private audioBytesBefore;
|
|
9
|
-
private videoBytesBefore;
|
|
10
|
-
private audioBytesNow;
|
|
11
|
-
private videoBytesNow;
|
|
12
|
-
private frameBefore;
|
|
13
|
-
private frameNow;
|
|
14
|
-
constructor(sample?: number);
|
|
15
|
-
addData(audioBytes: number, videoBytes: number, audioPacketsTotal: number, audioPacketsLost: number, videoPacketsTotal: number, videoPacketsLost: number, frame: number): void;
|
|
16
|
-
getAudioPacketLoss(): number;
|
|
17
|
-
getVideoPacketLoss(): number;
|
|
18
|
-
getAudioBitrate(): number;
|
|
19
|
-
getVideoBitrate(): number;
|
|
20
|
-
getFrameRate(): number;
|
|
21
|
-
destroy(): void;
|
|
22
|
-
}
|
package/esm/util/Stutter.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReportThreshold } from '../type/type';
|
|
2
|
-
export default class Stutter {
|
|
3
|
-
private audioPacketLossStutter;
|
|
4
|
-
private videoPacketLossStutter;
|
|
5
|
-
private frameRateStutter;
|
|
6
|
-
private audioframeDelayStutter;
|
|
7
|
-
private videoframeDelayStutter;
|
|
8
|
-
private options;
|
|
9
|
-
private isPush;
|
|
10
|
-
constructor(options: ReportThreshold, isPush: boolean);
|
|
11
|
-
addFrameRate(frame: number): void;
|
|
12
|
-
addAudioLoss(packetTotal: number, packetLost: number): void;
|
|
13
|
-
addVideoLoss(packetTotal: number, packetLost: number): void;
|
|
14
|
-
addAudioFrameDelay(delay: number): void;
|
|
15
|
-
addVideoFrameDelay(delay: number): void;
|
|
16
|
-
judgeAudioStutter(): boolean;
|
|
17
|
-
judegVideoStutter(): boolean;
|
|
18
|
-
destroy(): void;
|
|
19
|
-
}
|
package/esm/util/base64.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (): Promise<boolean>;
|
package/esm/util/constant.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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;
|
package/esm/util/devices.d.ts
DELETED