@hysc/meeting 1.6.44 → 1.7.33
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/BMRoom/BMRoom.d.ts +8 -5
- package/esm/BMRoom/BMRoomInfo.d.ts +2 -22
- package/esm/BMRoom/BMRoomVM.d.ts +5 -15
- package/esm/BMUser/BMUser.d.ts +2 -5
- package/esm/BMUser/BMUserVM.d.ts +0 -9
- package/esm/constants.d.ts +7 -8
- package/esm/index.js +6 -6
- package/esm/index.js.map +2 -2
- package/esm/type/customStats.d.ts +0 -1
- package/package.json +3 -3
- package/umd/BMRoom/BMRoom.d.ts +8 -5
- package/umd/BMRoom/BMRoomInfo.d.ts +2 -22
- package/umd/BMRoom/BMRoomVM.d.ts +5 -15
- package/umd/BMUser/BMUser.d.ts +2 -5
- package/umd/BMUser/BMUserVM.d.ts +0 -9
- package/umd/constants.d.ts +7 -8
- package/umd/index.js +6 -6
- package/umd/type/customStats.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.33",
|
|
4
4
|
"description": "boom meeting",
|
|
5
5
|
"main": "umd/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "yangliye",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@hysc/core": "1.
|
|
17
|
+
"@hysc/core": "1.7.21",
|
|
18
18
|
"lodash-es": "^4.17.21",
|
|
19
19
|
"mitt": "^3.0.0",
|
|
20
20
|
"@hysc/p-queue": "6.3.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@hysc/utils": "1.2.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@hysc/core": "1.
|
|
26
|
+
"@hysc/core": "1.7.21"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.6"
|
package/umd/BMRoom/BMRoom.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BoomCore from '@hysc/core';
|
|
2
|
+
import { MessageType } from './attachEvents';
|
|
2
3
|
import BMRoomVM, { AudioProfileInfo } from "./BMRoomVM";
|
|
3
4
|
import BMUserVM from '../BMUser/BMUserVM';
|
|
4
5
|
import { SingleLocalStream, SingleRemoteStream, SingleRemoteStreamOption, SubscribeOptions } from '../type';
|
|
@@ -47,12 +48,12 @@ export default class BMRoom {
|
|
|
47
48
|
videoDevicesWatcher: Subject<Device[]>;
|
|
48
49
|
audioOutputDevicesWatcher: Subject<Device[]>;
|
|
49
50
|
raiseHandleRespWatcher: Subject<{
|
|
50
|
-
raiseHandsType: 0 | 1 | 2
|
|
51
|
+
raiseHandsType: 0 | 1 | 2;
|
|
51
52
|
raiseHands: boolean;
|
|
52
53
|
}>;
|
|
53
54
|
enableAudienceSpeakingWatcher: Subject<boolean>;
|
|
54
55
|
videoProfile: VideoProfile;
|
|
55
|
-
audioProfile
|
|
56
|
+
private audioProfile;
|
|
56
57
|
/**
|
|
57
58
|
* brtc断网重连要给端上事件响应,所有端上把流单独做处理的,需要在收到这个事件之后,重新处理所有的effect
|
|
58
59
|
*/
|
|
@@ -68,7 +69,10 @@ export default class BMRoom {
|
|
|
68
69
|
/**
|
|
69
70
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
70
71
|
*/
|
|
71
|
-
messageWatcher: BehaviorSubject<
|
|
72
|
+
messageWatcher: BehaviorSubject<{
|
|
73
|
+
type: MessageType;
|
|
74
|
+
status: boolean;
|
|
75
|
+
}>;
|
|
72
76
|
roomInfo: BMRoomInfo;
|
|
73
77
|
localUser: BMUser;
|
|
74
78
|
bmLiveVM: BMLiveVM;
|
|
@@ -212,9 +216,8 @@ export default class BMRoom {
|
|
|
212
216
|
* 开关对端麦克风(现在还不知道怎么实现, 未找到实现逻辑)
|
|
213
217
|
* @param status true:开,false:关
|
|
214
218
|
* @param uid 用户id
|
|
215
|
-
* @param isNotCancelRootReport 当打开麦克风时, 是否不取消音频权限申请
|
|
216
219
|
*/
|
|
217
|
-
setRemoteAudioEnable(status: boolean, uid: string
|
|
220
|
+
setRemoteAudioEnable(status: boolean, uid: string): Promise<void>;
|
|
218
221
|
/**
|
|
219
222
|
* 开关本地摄像头
|
|
220
223
|
* @param status true:开,false:关
|
|
@@ -77,10 +77,6 @@ interface OperationCustomStats {
|
|
|
77
77
|
* 是否允许开启虚拟背景 0全员 1嘉宾 2主持人
|
|
78
78
|
*/
|
|
79
79
|
backgroundAIEnable: 0 | 1 | 2;
|
|
80
|
-
/**
|
|
81
|
-
* 是否允许举手 0禁止全员 1允许嘉宾 2全员可举手
|
|
82
|
-
*/
|
|
83
|
-
raiseHandEnable: 0 | 1 | 2;
|
|
84
80
|
}
|
|
85
81
|
export default class BMRoomInfo {
|
|
86
82
|
private room;
|
|
@@ -135,11 +131,6 @@ export default class BMRoomInfo {
|
|
|
135
131
|
*/
|
|
136
132
|
private raiseVideoHandsList;
|
|
137
133
|
raiseVideoHandsWatcher: BehaviorSubject<BMUser[]>;
|
|
138
|
-
/**
|
|
139
|
-
* 所有的举手的人员
|
|
140
|
-
*/
|
|
141
|
-
private raiseSimpleHandsList;
|
|
142
|
-
raiseSimpleHandsWatcher: BehaviorSubject<BMUser[]>;
|
|
143
134
|
operationPermission: OperationCustomStats | undefined;
|
|
144
135
|
operationPermissionWatcher: Subject<OperationCustomStats>;
|
|
145
136
|
chatNoticeWatcher: Subject<unknown>;
|
|
@@ -183,27 +174,16 @@ export default class BMRoomInfo {
|
|
|
183
174
|
*/
|
|
184
175
|
removeRaiseHandUser(user: BMUser): void;
|
|
185
176
|
/**
|
|
186
|
-
*
|
|
177
|
+
* 视频举手处理
|
|
187
178
|
* @param user
|
|
188
179
|
*/
|
|
189
180
|
addVideoRaiseHandUser(user: BMUser): void;
|
|
190
181
|
/**
|
|
191
|
-
*
|
|
182
|
+
* 取消视频举手处理
|
|
192
183
|
* @param user
|
|
193
184
|
*/
|
|
194
185
|
removeVideoRaiseHandUser(user: BMUser): void;
|
|
195
|
-
/**
|
|
196
|
-
* 举手处理
|
|
197
|
-
* @param user
|
|
198
|
-
*/
|
|
199
|
-
addSimpleRaiseHandUser(user: BMUser): void;
|
|
200
|
-
/**
|
|
201
|
-
* 取消举手处理
|
|
202
|
-
* @param user
|
|
203
|
-
*/
|
|
204
|
-
removeSimpleRaiseHandUser(user: BMUser): void;
|
|
205
186
|
private setRaiseHandsWatcherValue;
|
|
206
187
|
private setVideoRaiseHandsWatcherValue;
|
|
207
|
-
private setSimpleRaiseHandsWatcherValue;
|
|
208
188
|
}
|
|
209
189
|
export {};
|
package/umd/BMRoom/BMRoomVM.d.ts
CHANGED
|
@@ -59,10 +59,6 @@ export interface AudioProfileInfo {
|
|
|
59
59
|
* 调整扬声器音量 0 - 100
|
|
60
60
|
*/
|
|
61
61
|
speakerVolume?: number;
|
|
62
|
-
/**
|
|
63
|
-
* 调整麦克风音量 0 - 100
|
|
64
|
-
*/
|
|
65
|
-
microVolume?: number;
|
|
66
62
|
}
|
|
67
63
|
export default class BMRoomVM {
|
|
68
64
|
roomInfo: BMRoomInfo;
|
|
@@ -109,9 +105,8 @@ export default class BMRoomVM {
|
|
|
109
105
|
* 开关对端麦克风-信令发送
|
|
110
106
|
* @param status true:开,false:关
|
|
111
107
|
* @param uid 用户id
|
|
112
|
-
* @param isNotCancelRootReport 当打开麦克风时, 是否不取消音频权限申请
|
|
113
108
|
*/
|
|
114
|
-
setRemoteAudioEnable(status: boolean, uid: string
|
|
109
|
+
setRemoteAudioEnable(status: boolean, uid: string): Promise<void>;
|
|
115
110
|
/**
|
|
116
111
|
* 开关对端摄像头-信令发送
|
|
117
112
|
* @param status true:开,false:关
|
|
@@ -134,15 +129,15 @@ export default class BMRoomVM {
|
|
|
134
129
|
* @param type 视频还是音频举手 audio/video
|
|
135
130
|
* @param raise 举手还是放下举手 true/false
|
|
136
131
|
*/
|
|
137
|
-
raiseHands(type: 'audio' | 'video'
|
|
132
|
+
raiseHands(type: 'audio' | 'video', raise: boolean): Promise<void>;
|
|
138
133
|
/**
|
|
139
134
|
* 主持人处理举手操作
|
|
140
|
-
* @param raiseHandsType 0 音视频 1 音频 2 视频
|
|
135
|
+
* @param raiseHandsType 0 音视频 1 音频 2 视频
|
|
141
136
|
* @param raiseHands true 同意 false 拒绝
|
|
142
137
|
* @param uid 指定的用户Id
|
|
143
138
|
* @description 如果不指定用户ID就是广播处理所有的举手的人员
|
|
144
139
|
*/
|
|
145
|
-
handleRaiseHands(raiseHandsType: 0 | 1 | 2
|
|
140
|
+
handleRaiseHands(raiseHandsType: 0 | 1 | 2, raiseHands: boolean, uid?: string): Promise<undefined>;
|
|
146
141
|
/**
|
|
147
142
|
* 更新自定义属性 updateCustomStats
|
|
148
143
|
* @param stats
|
|
@@ -219,11 +214,6 @@ export default class BMRoomVM {
|
|
|
219
214
|
*/
|
|
220
215
|
recordEnable(enable: 0 | 1 | 2): Promise<void>;
|
|
221
216
|
/**
|
|
222
|
-
* 是否全员可录制
|
|
223
|
-
* @param enable 0禁止全员举手 1嘉宾可举手 2全员可举手
|
|
224
|
-
*/
|
|
225
|
-
raiseHandEnable(enable: 0 | 1 | 2): Promise<void>;
|
|
226
|
-
/**
|
|
227
217
|
* 入会麦克风禁用
|
|
228
218
|
* @param enable 0全员禁止使用 1嘉宾和学员不可使用 2不开启
|
|
229
219
|
*/
|
|
@@ -277,7 +267,7 @@ export default class BMRoomVM {
|
|
|
277
267
|
* @param {boolean} status 设置是否成功
|
|
278
268
|
* @param {string} userId
|
|
279
269
|
*/
|
|
280
|
-
resp2ChangeRemoteVideoProfile(status: boolean, userId: string
|
|
270
|
+
resp2ChangeRemoteVideoProfile(status: boolean, userId: string): Promise<any>;
|
|
281
271
|
/**
|
|
282
272
|
* 调节远端的音频参数
|
|
283
273
|
* @param {Object} profileInfo
|
package/umd/BMUser/BMUser.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import BMStreamModel from '../BMStream/BMStreamModel';
|
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import BCUser from '@hysc/core/esm/BoomAdapter/User/User';
|
|
4
4
|
import BMRoom from '../BMRoom/BMRoom';
|
|
5
|
-
declare type Operation = 'none' | 'getMaster' | 'getManager' | 'removeMaster' | 'getGuest' | 'removeGuest' | 'removeManager' | 'changeNickName' | 'speakerEnable' | 'changeShare' | 'updateUser' | 'raiseHandsVideo' | 'raiseHandsAudio' | 'audienceEnableSpeaking' | 'inBackground'
|
|
5
|
+
declare type Operation = 'none' | 'getMaster' | 'getManager' | 'removeMaster' | 'getGuest' | 'removeGuest' | 'removeManager' | 'changeNickName' | 'speakerEnable' | 'changeShare' | 'updateUser' | 'raiseHandsVideo' | 'raiseHandsAudio' | 'audienceEnableSpeaking' | 'inBackground';
|
|
6
6
|
interface IUserActionWatcher {
|
|
7
7
|
operation: Operation;
|
|
8
8
|
user: BMUser;
|
|
@@ -19,7 +19,7 @@ interface UserInfo {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export interface RaiseHandInfo {
|
|
22
|
-
status: 'raiseHandsAudio' | 'raiseHandsVideo'
|
|
22
|
+
status: 'raiseHandsAudio' | 'raiseHandsVideo';
|
|
23
23
|
user: BMUser;
|
|
24
24
|
}
|
|
25
25
|
export default class BMUser {
|
|
@@ -57,7 +57,6 @@ export default class BMUser {
|
|
|
57
57
|
* 'changeShare': 是否在屏幕共享
|
|
58
58
|
* 'raiseHandsVideo': 是否视频举手
|
|
59
59
|
* 'raiseHandsAudio': 是否音频举手
|
|
60
|
-
* 'raiseHand':单纯的举手
|
|
61
60
|
* @property {BMUser} user
|
|
62
61
|
*/
|
|
63
62
|
watcher: BehaviorSubject<IUserActionWatcher>;
|
|
@@ -70,7 +69,6 @@ export default class BMUser {
|
|
|
70
69
|
*/
|
|
71
70
|
raiseVideoHands: boolean;
|
|
72
71
|
raiseAudioHands: boolean;
|
|
73
|
-
raiseHand: boolean;
|
|
74
72
|
isAudience: boolean;
|
|
75
73
|
/**
|
|
76
74
|
* 是不是普通参会者
|
|
@@ -149,6 +147,5 @@ export default class BMUser {
|
|
|
149
147
|
* 更新当前用户的排序
|
|
150
148
|
*/
|
|
151
149
|
updateSortNum(): void;
|
|
152
|
-
updateSort(): void;
|
|
153
150
|
}
|
|
154
151
|
export {};
|
package/umd/BMUser/BMUserVM.d.ts
CHANGED
|
@@ -129,13 +129,4 @@ export default class BMUserVM {
|
|
|
129
129
|
}>;
|
|
130
130
|
getTotalUserNumber(): Promise<number>;
|
|
131
131
|
clearUsers(): void;
|
|
132
|
-
/**
|
|
133
|
-
* 参会者列表搜索(嘉宾及以上才能搜索)
|
|
134
|
-
* @param searchTxt 搜索文本
|
|
135
|
-
* @param pageSize 一页几个
|
|
136
|
-
*/
|
|
137
|
-
searchUsers(searchTxt: string, pageSize: number): Promise<{
|
|
138
|
-
userList: BMUser[];
|
|
139
|
-
commonUserList: BMUser[];
|
|
140
|
-
}>;
|
|
141
132
|
}
|
package/umd/constants.d.ts
CHANGED
|
@@ -16,14 +16,13 @@ export declare enum MODEL_SORT_ENUM {
|
|
|
16
16
|
MANAGER_AUDIO = 4,
|
|
17
17
|
MANAGER_VIDEO = 5,
|
|
18
18
|
MANAGER = 6,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
OTHER = 14
|
|
19
|
+
RAISE_AUDIO = 7,
|
|
20
|
+
RAISE_VIDEO = 8,
|
|
21
|
+
AUDIO_VIDEO = 9,
|
|
22
|
+
AUDIO = 10,
|
|
23
|
+
SIGNAL = 11,
|
|
24
|
+
VIDEO = 12,
|
|
25
|
+
OTHER = 13
|
|
27
26
|
}
|
|
28
27
|
export declare enum STREAM_TYPE {
|
|
29
28
|
/**
|