@hysc/meeting 2.6.64 → 3.0.1

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.
@@ -13,6 +13,7 @@ import BMLiveVM from './BMLiveVM';
13
13
  interface BMRoomProps {
14
14
  initDevices: boolean;
15
15
  }
16
+ export declare let _selfSortType: number;
16
17
  export default class BMRoom {
17
18
  roomVM: BMRoomVM | null;
18
19
  userVM: BMUserVM;
@@ -26,6 +27,15 @@ export default class BMRoom {
26
27
  selectVideoDevice: Device | null;
27
28
  selectAudioDevice: Device | null;
28
29
  selectAudioOutputDevice: Device | null;
30
+ /**
31
+ * 这个参数是和业务相关的功能,业务上的参会者列表是可以配置的,如果设置了只展示一列,那么所有的用户都要存储
32
+ * 在commonUserList中
33
+ */
34
+ userListColumns: number;
35
+ /**
36
+ * 排序规则 1 是标品排序, 2 是中移排序
37
+ */
38
+ sortType: number;
29
39
  /**
30
40
  * brtc断网重连的时候,所有的订阅和播放相关的处理,都不需要
31
41
  */
@@ -89,6 +99,8 @@ export default class BMRoom {
89
99
  * @param profile 设置视频分辨率
90
100
  */
91
101
  setVideoProfile(profile: VideoProfile): void;
102
+ setUserListColumns(column: number): void;
103
+ setSortType(type: number): void;
92
104
  /**
93
105
  * 设置声音增益的属性,回音消除 音频降噪 声音增益等
94
106
  * @param audioProfile
@@ -187,6 +187,14 @@ export default class BMStreamModel {
187
187
  sendMessage2Room: any;
188
188
  emitBindElement: any;
189
189
  emitBindBigElement: any;
190
+ /**
191
+ * 判断当前是不是正在小窗口播放
192
+ */
193
+ currentIsPlaying: () => boolean;
194
+ /**
195
+ * 判断当前是不是正在小窗口播放
196
+ */
197
+ currentBigIsPlaying: () => boolean | null | undefined;
190
198
  /**
191
199
  * 播放当前流
192
200
  */
@@ -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' | 'raiseHand' | 'audienceEnableSpeaking';
5
+ declare type Operation = 'none' | 'getMaster' | 'getManager' | 'removeMaster' | 'getGuest' | 'removeGuest' | 'removeManager' | 'changeNickName' | 'speakerEnable' | 'changeShare' | 'updateUser' | 'raiseHandsVideo' | 'raiseHandsAudio' | 'audienceEnableSpeaking' | 'inBackground' | 'raiseHand';
6
6
  interface IUserActionWatcher {
7
7
  operation: Operation;
8
8
  user: BMUser;
@@ -88,6 +88,7 @@ export default class BMUser {
88
88
  constructor(user: any, isLocal?: boolean);
89
89
  setup(userId: string, userinfo: UserInfo, nickname: string): void;
90
90
  getMainStreamModel(): BMStreamModel | undefined;
91
+ get nickname(): string;
91
92
  getShareStreamModel(): BMStreamModel | undefined;
92
93
  /**
93
94
  * 获取用户麦克风开启状态
@@ -150,6 +151,6 @@ export default class BMUser {
150
151
  * 更新当前用户的排序
151
152
  */
152
153
  updateSortNum(): void;
153
- updateSort(): void;
154
+ setSortNum(sortNum: number): void;
154
155
  }
155
156
  export {};
@@ -6,9 +6,9 @@
6
6
  * @update: 2022-04-27 10:39
7
7
  */
8
8
  /**
9
- * 窗口排序常量
9
+ * 标品排序规则
10
10
  */
11
- export declare enum MODEL_SORT_ENUM {
11
+ export declare enum MODEL_SORT_ENUM_STAND {
12
12
  SCREEN = 0,
13
13
  MASTER = 1,
14
14
  LOCAL = 2,
@@ -25,6 +25,30 @@ export declare enum MODEL_SORT_ENUM {
25
25
  VIDEO = 13,
26
26
  OTHER = 14
27
27
  }
28
+ /**
29
+ * 中移排序规则
30
+ */
31
+ export declare enum MODEL_SORT_ENUM_ZY {
32
+ SCREEN = 0,
33
+ RAISE_AUDIO = 1,
34
+ RAISE_VIDEO = 2,
35
+ LOCAL = 3,
36
+ MASTER_AUDIO_VIDEO = 4,
37
+ MANAGER_AUDIO_VIDEO = 5,
38
+ AUDIO_VIDEO = 6,
39
+ MASTER_AUDIO = 7,
40
+ MANAGER_AUDIO = 8,
41
+ AUDIO = 9,
42
+ MASTER_VIDEO = 10,
43
+ MANAGER_VIDEO = 11,
44
+ VIDEO = 12,
45
+ MASTER = 13,
46
+ MANAGER = 14,
47
+ GUEST = 15,
48
+ COMMON_USER = 16,
49
+ SIGNAL = 17,
50
+ OTHER = 18
51
+ }
28
52
  export declare enum STREAM_TYPE {
29
53
  /**
30
54
  * 大流