@hysc/meeting 4.0.48 → 4.0.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/esm/boom-meeting/src/BMRoom/BMRoomVM.d.ts +10 -0
- package/esm/boom-meeting/src/SingletonQueue/SingletonQueue.d.ts +25 -0
- package/esm/boom-meeting/src/constants.d.ts +6 -5
- package/esm/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +1 -1
- package/esm/boom-meeting/src/type/customStats.d.ts +2 -0
- package/esm/index.js +1 -1
- package/esm/index.js.map +3 -3
- package/esm/src/BMRoom/BMRoomVM.d.ts +10 -0
- package/esm/src/SingletonQueue/SingletonQueue.d.ts +25 -0
- package/esm/src/constants.d.ts +6 -5
- package/esm/src/handleEvent/handleRoomEvent.d.ts +1 -1
- package/esm/src/type/customStats.d.ts +2 -0
- package/package.json +3 -3
- package/umd/boom-meeting/src/BMRoom/BMRoomVM.d.ts +10 -0
- package/umd/boom-meeting/src/SingletonQueue/SingletonQueue.d.ts +25 -0
- package/umd/boom-meeting/src/constants.d.ts +6 -5
- package/umd/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +1 -1
- package/umd/boom-meeting/src/type/customStats.d.ts +2 -0
- package/umd/index.js +1 -1
- package/umd/src/BMRoom/BMRoom.d.ts +21 -2
|
@@ -165,6 +165,16 @@ export default class BMRoomVM {
|
|
|
165
165
|
* @param enable
|
|
166
166
|
*/
|
|
167
167
|
changeAutoMute(enable: 0 | 1 | 2): Promise<void>;
|
|
168
|
+
/**
|
|
169
|
+
* 允许成员接收进入/离开会议通知配置 0 关闭 1 开启自动静音
|
|
170
|
+
* @param enable
|
|
171
|
+
*/
|
|
172
|
+
allUserReceiveJoinLeaveMessages(enable: 0 | 1): Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* 成员入会时给主持人播放提示音配置 0 关闭 1 开启自动静音
|
|
175
|
+
* @param enable
|
|
176
|
+
*/
|
|
177
|
+
userJoinMasterVoice(enable: 0 | 1): Promise<void>;
|
|
168
178
|
/**
|
|
169
179
|
* 观众点赞(走customMessage)
|
|
170
180
|
* @param type 1:点赞, 2:送花, 3:爱心, 4: 鼓掌, 5: 喝彩
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: SingletonQueue
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-05-18 09:47
|
|
5
|
+
* @description:SingletonQueue
|
|
6
|
+
* @update: 2023-05-18 09:47
|
|
7
|
+
*/
|
|
8
|
+
declare type CallBack = (arg: Map<string, PullItem>, ...args: any) => void;
|
|
9
|
+
export declare type PullItem = {
|
|
10
|
+
id: string;
|
|
11
|
+
isScreen: boolean;
|
|
12
|
+
isWeb?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export default class SingletonQueue {
|
|
15
|
+
private static instance;
|
|
16
|
+
private _callback;
|
|
17
|
+
private pullMap;
|
|
18
|
+
constructor();
|
|
19
|
+
addUsers(userIds: PullItem[]): void;
|
|
20
|
+
removeUsers(userId: PullItem[]): void;
|
|
21
|
+
restart(): void;
|
|
22
|
+
setQueueProcessor(callback: CallBack): void;
|
|
23
|
+
removeQueueProcessor(): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -22,11 +22,12 @@ export declare enum MODEL_SORT_ENUM_STAND {
|
|
|
22
22
|
GUEST_AUDIO_VIDEO = 10,
|
|
23
23
|
GUEST_AUDIO = 11,
|
|
24
24
|
GUEST_VIDEO = 12,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
GUEST = 13,
|
|
26
|
+
SIGNAL = 14,
|
|
27
|
+
COMMONUSER_AUDIO_VIDEO = 15,
|
|
28
|
+
COMMONUSER_AUDIO = 16,
|
|
29
|
+
COMMONUSER_VIDEO = 17,
|
|
30
|
+
OTHER = 18
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* 中移排序规则
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import BMRoom from "../BMRoom/BMRoom";
|
|
9
9
|
import BMUserVM from "../BMUser/BMUserVM";
|
|
10
10
|
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
11
|
-
export declare function handleRoomConnected(data: any, bmRoom: BMRoom, userVM: BMUserVM, observes: any): Promise<void>;
|
|
11
|
+
export declare function handleRoomConnected(data: any, bmRoom: BMRoom, userVM: BMUserVM, observes: any, shouldNotification?: boolean): Promise<void>;
|
|
12
12
|
export declare function handleRoomUpdated(data: any, bmRoom: BMRoom): void;
|
|
13
13
|
export declare function handleInitRoomInfo(data: any, bmRoom: BMRoom): Promise<void>;
|
|
14
14
|
export declare function handleRoomSync(data: any, bmRoom: BMRoom, userVm: BMUserVM, bmStreamVm: BMStreamModelVM): Promise<void>;
|
|
@@ -116,5 +116,7 @@ export interface CustomStats {
|
|
|
116
116
|
raiseHandEnable: number;
|
|
117
117
|
joinCueVoice: number;
|
|
118
118
|
autoMute: number;
|
|
119
|
+
allUserReceiveJoinLeaveMessages: number;
|
|
120
|
+
userJoinMasterVoice: number;
|
|
119
121
|
}
|
|
120
122
|
export declare type PartialCustomStats = Partial<CustomStats>;
|