@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
|
@@ -183,9 +183,9 @@ export default class BMRoomInfo {
|
|
|
183
183
|
addRaiseHandUser(user: BMUser): void;
|
|
184
184
|
/**
|
|
185
185
|
* 取消音频举手处理
|
|
186
|
-
* @param
|
|
186
|
+
* @param user
|
|
187
187
|
*/
|
|
188
|
-
removeRaiseHandUser(
|
|
188
|
+
removeRaiseHandUser(user: BMUser): void;
|
|
189
189
|
/**
|
|
190
190
|
* 视频申请处理
|
|
191
191
|
* @param user
|
|
@@ -193,9 +193,9 @@ export default class BMRoomInfo {
|
|
|
193
193
|
addVideoRaiseHandUser(user: BMUser): void;
|
|
194
194
|
/**
|
|
195
195
|
* 取消视频申请处理
|
|
196
|
-
* @param
|
|
196
|
+
* @param user
|
|
197
197
|
*/
|
|
198
|
-
removeVideoRaiseHandUser(
|
|
198
|
+
removeVideoRaiseHandUser(user: BMUser): void;
|
|
199
199
|
/**
|
|
200
200
|
* 举手处理
|
|
201
201
|
* @param user
|
|
@@ -203,9 +203,9 @@ export default class BMRoomInfo {
|
|
|
203
203
|
addSimpleRaiseHandUser(user: BMUser): void;
|
|
204
204
|
/**
|
|
205
205
|
* 取消举手处理
|
|
206
|
-
* @param
|
|
206
|
+
* @param user
|
|
207
207
|
*/
|
|
208
|
-
removeSimpleRaiseHandUser(
|
|
208
|
+
removeSimpleRaiseHandUser(user: BMUser): void;
|
|
209
209
|
private setRaiseHandsWatcherValue;
|
|
210
210
|
private setVideoRaiseHandsWatcherValue;
|
|
211
211
|
private setSimpleRaiseHandsWatcherValue;
|
|
@@ -160,7 +160,6 @@ export default class BMStreamModelVM {
|
|
|
160
160
|
* @param audio 是否发布音频流
|
|
161
161
|
* @param video 是否发布视频流
|
|
162
162
|
* @param localModel 本地的streamModel
|
|
163
|
-
* @param videoTrack
|
|
164
163
|
* @private
|
|
165
164
|
*/
|
|
166
165
|
private createStreamAndPublish;
|
|
@@ -189,8 +188,7 @@ export default class BMStreamModelVM {
|
|
|
189
188
|
/**
|
|
190
189
|
* 排序变化之后的处理逻辑
|
|
191
190
|
*/
|
|
192
|
-
|
|
193
|
-
updateModelSort: any;
|
|
191
|
+
updateSort: any;
|
|
194
192
|
handleNoContainer: (info: NoPlayerContainer) => void;
|
|
195
193
|
/**
|
|
196
194
|
* 创建canvas,目的是为了捕获空track流,给brtc使用
|
|
@@ -38,7 +38,7 @@ export default class BMUserVM {
|
|
|
38
38
|
* 移除用户
|
|
39
39
|
* @param userId 用户id
|
|
40
40
|
*/
|
|
41
|
-
removeUser(userId: string):
|
|
41
|
+
removeUser(userId: string): void;
|
|
42
42
|
/**
|
|
43
43
|
* 获取用户视频开启状态
|
|
44
44
|
* @param userId 用户id
|
|
@@ -83,7 +83,7 @@ export default class BMUserVM {
|
|
|
83
83
|
* 联席主持人设置嘉宾的操作
|
|
84
84
|
* @param userId
|
|
85
85
|
*/
|
|
86
|
-
managerChangeToGuest(userId: string):
|
|
86
|
+
managerChangeToGuest(userId: string): BMUser | undefined;
|
|
87
87
|
/**
|
|
88
88
|
* 改变联席主持人,返回设置为联席主持人的bmuser对象
|
|
89
89
|
* @param userId
|
|
@@ -97,7 +97,6 @@ export default class BMUserVM {
|
|
|
97
97
|
*/
|
|
98
98
|
getLocalUser(): BMUser;
|
|
99
99
|
updateUser(bmUser: BMUser, bcUser: BCUser): void;
|
|
100
|
-
updateLocalUserPermission(permission: string): void;
|
|
101
100
|
/**
|
|
102
101
|
* bcUser变成BMUser
|
|
103
102
|
* @param bcUser
|
package/umd/src/constants.d.ts
CHANGED
|
@@ -110,4 +110,3 @@ export declare const UNSUBSCRIBE_STREAM = "unsubscribe-stream";
|
|
|
110
110
|
export declare const CHANG_IS_GUEST = "change-is-guest";
|
|
111
111
|
export declare const BIND_BIG_ELEMENT = "bind-big-element";
|
|
112
112
|
export declare const NO_CONTAINER = "no-container";
|
|
113
|
-
export declare const MODEL_SORT_NUM_CHANGE = "model-sort-num-change";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
-
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION,
|
|
2
|
+
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
3
3
|
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
4
4
|
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
5
5
|
declare type Events = {
|
|
@@ -13,7 +13,6 @@ declare type Events = {
|
|
|
13
13
|
[BIND_ELEMENT]: SubscribeMessage;
|
|
14
14
|
[BIND_BIG_ELEMENT]: SubscribeMessage;
|
|
15
15
|
[NO_CONTAINER]: NoPlayerContainer;
|
|
16
|
-
[MODEL_SORT_NUM_CHANGE]: null;
|
|
17
16
|
};
|
|
18
17
|
export declare const emitter: import("mitt").Emitter<Events>;
|
|
19
18
|
export declare const removeEmitter: () => void;
|
|
@@ -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;
|