@hysc/meeting 1.6.32 → 3.6.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.
@@ -1,5 +1,4 @@
1
1
  import BoomCore from '@hysc/core';
2
- import { MessageType } from './attachEvents';
3
2
  import BMRoomVM, { AudioProfileInfo } from "./BMRoomVM";
4
3
  import BMUserVM from '../BMUser/BMUserVM';
5
4
  import { SingleLocalStream, SingleRemoteStream, SingleRemoteStreamOption, SubscribeOptions } from '../type';
@@ -48,12 +47,12 @@ export default class BMRoom {
48
47
  videoDevicesWatcher: Subject<Device[]>;
49
48
  audioOutputDevicesWatcher: Subject<Device[]>;
50
49
  raiseHandleRespWatcher: Subject<{
51
- raiseHandsType: 0 | 1 | 2;
50
+ raiseHandsType: 0 | 1 | 2 | 3;
52
51
  raiseHands: boolean;
53
52
  }>;
54
53
  enableAudienceSpeakingWatcher: Subject<boolean>;
55
54
  videoProfile: VideoProfile;
56
- private audioProfile;
55
+ audioProfile: AudioProfileInfo | null;
57
56
  /**
58
57
  * brtc断网重连要给端上事件响应,所有端上把流单独做处理的,需要在收到这个事件之后,重新处理所有的effect
59
58
  */
@@ -69,10 +68,7 @@ export default class BMRoom {
69
68
  /**
70
69
  * 传递信息用的,主要是用于message信令往上层业务发送消息
71
70
  */
72
- messageWatcher: BehaviorSubject<{
73
- type: MessageType;
74
- status: boolean;
75
- }>;
71
+ messageWatcher: BehaviorSubject<any>;
76
72
  roomInfo: BMRoomInfo;
77
73
  localUser: BMUser;
78
74
  bmLiveVM: BMLiveVM;
@@ -216,8 +212,9 @@ export default class BMRoom {
216
212
  * 开关对端麦克风(现在还不知道怎么实现, 未找到实现逻辑)
217
213
  * @param status true:开,false:关
218
214
  * @param uid 用户id
215
+ * @param isNotCancelRootReport 当打开麦克风时, 是否不取消音频权限申请
219
216
  */
220
- setRemoteAudioEnable(status: boolean, uid: string): Promise<void>;
217
+ setRemoteAudioEnable(status: boolean, uid: string, isNotCancelRootReport: boolean | undefined): Promise<void>;
221
218
  /**
222
219
  * 开关本地摄像头
223
220
  * @param status true:开,false:关
@@ -77,6 +77,10 @@ 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;
80
84
  }
81
85
  export default class BMRoomInfo {
82
86
  private room;
@@ -131,6 +135,11 @@ export default class BMRoomInfo {
131
135
  */
132
136
  private raiseVideoHandsList;
133
137
  raiseVideoHandsWatcher: BehaviorSubject<BMUser[]>;
138
+ /**
139
+ * 所有的举手的人员
140
+ */
141
+ private raiseSimpleHandsList;
142
+ raiseSimpleHandsWatcher: BehaviorSubject<BMUser[]>;
134
143
  operationPermission: OperationCustomStats | undefined;
135
144
  operationPermissionWatcher: Subject<OperationCustomStats>;
136
145
  chatNoticeWatcher: Subject<unknown>;
@@ -174,16 +183,27 @@ export default class BMRoomInfo {
174
183
  */
175
184
  removeRaiseHandUser(user: BMUser): void;
176
185
  /**
177
- * 视频举手处理
186
+ * 视频申请处理
178
187
  * @param user
179
188
  */
180
189
  addVideoRaiseHandUser(user: BMUser): void;
181
190
  /**
182
- * 取消视频举手处理
191
+ * 取消视频申请处理
183
192
  * @param user
184
193
  */
185
194
  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;
186
205
  private setRaiseHandsWatcherValue;
187
206
  private setVideoRaiseHandsWatcherValue;
207
+ private setSimpleRaiseHandsWatcherValue;
188
208
  }
189
209
  export {};
@@ -59,6 +59,10 @@ export interface AudioProfileInfo {
59
59
  * 调整扬声器音量 0 - 100
60
60
  */
61
61
  speakerVolume?: number;
62
+ /**
63
+ * 调整麦克风音量 0 - 100
64
+ */
65
+ microVolume?: number;
62
66
  }
63
67
  export default class BMRoomVM {
64
68
  roomInfo: BMRoomInfo;
@@ -105,8 +109,9 @@ export default class BMRoomVM {
105
109
  * 开关对端麦克风-信令发送
106
110
  * @param status true:开,false:关
107
111
  * @param uid 用户id
112
+ * @param isNotCancelRootReport 当打开麦克风时, 是否不取消音频权限申请
108
113
  */
109
- setRemoteAudioEnable(status: boolean, uid: string): Promise<void>;
114
+ setRemoteAudioEnable(status: boolean, uid: string, isNotCancelRootReport: boolean | undefined): Promise<void>;
110
115
  /**
111
116
  * 开关对端摄像头-信令发送
112
117
  * @param status true:开,false:关
@@ -129,15 +134,15 @@ export default class BMRoomVM {
129
134
  * @param type 视频还是音频举手 audio/video
130
135
  * @param raise 举手还是放下举手 true/false
131
136
  */
132
- raiseHands(type: 'audio' | 'video', raise: boolean): Promise<void>;
137
+ raiseHands(type: 'audio' | 'video' | 'raiseHand', raise: boolean): Promise<void>;
133
138
  /**
134
139
  * 主持人处理举手操作
135
- * @param raiseHandsType 0 音视频 1 音频 2 视频
140
+ * @param raiseHandsType 0 音视频 1 音频 2 视频 3 单纯的举手
136
141
  * @param raiseHands true 同意 false 拒绝
137
142
  * @param uid 指定的用户Id
138
143
  * @description 如果不指定用户ID就是广播处理所有的举手的人员
139
144
  */
140
- handleRaiseHands(raiseHandsType: 0 | 1 | 2, raiseHands: boolean, uid?: string): Promise<undefined>;
145
+ handleRaiseHands(raiseHandsType: 0 | 1 | 2 | 3, raiseHands: boolean, uid?: string): Promise<undefined>;
141
146
  /**
142
147
  * 更新自定义属性 updateCustomStats
143
148
  * @param stats
@@ -214,6 +219,11 @@ export default class BMRoomVM {
214
219
  */
215
220
  recordEnable(enable: 0 | 1 | 2): Promise<void>;
216
221
  /**
222
+ * 是否全员可录制
223
+ * @param enable 0禁止全员举手 1嘉宾可举手 2全员可举手
224
+ */
225
+ raiseHandEnable(enable: 0 | 1 | 2): Promise<void>;
226
+ /**
217
227
  * 入会麦克风禁用
218
228
  * @param enable 0全员禁止使用 1嘉宾和学员不可使用 2不开启
219
229
  */
@@ -267,7 +277,7 @@ export default class BMRoomVM {
267
277
  * @param {boolean} status 设置是否成功
268
278
  * @param {string} userId
269
279
  */
270
- resp2ChangeRemoteVideoProfile(status: boolean, userId: string): Promise<any>;
280
+ resp2ChangeRemoteVideoProfile(status: boolean, userId: string, profile: string): Promise<any>;
271
281
  /**
272
282
  * 调节远端的音频参数
273
283
  * @param {Object} profileInfo
@@ -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' | 'raiseHand' | 'audienceEnableSpeaking';
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' | 'raiseHand';
23
23
  user: BMUser;
24
24
  }
25
25
  export default class BMUser {
@@ -57,6 +57,7 @@ export default class BMUser {
57
57
  * 'changeShare': 是否在屏幕共享
58
58
  * 'raiseHandsVideo': 是否视频举手
59
59
  * 'raiseHandsAudio': 是否音频举手
60
+ * 'raiseHand':单纯的举手
60
61
  * @property {BMUser} user
61
62
  */
62
63
  watcher: BehaviorSubject<IUserActionWatcher>;
@@ -69,6 +70,7 @@ export default class BMUser {
69
70
  */
70
71
  raiseVideoHands: boolean;
71
72
  raiseAudioHands: boolean;
73
+ raiseHand: boolean;
72
74
  isAudience: boolean;
73
75
  /**
74
76
  * 是不是普通参会者
@@ -129,4 +129,13 @@ 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
+ }>;
132
141
  }