@hysc/meeting 4.0.72 → 4.0.74

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.
@@ -538,7 +538,7 @@ export default class BMRoom {
538
538
  */
539
539
  checkUserHasMaster(userId: string): boolean;
540
540
  changeNickName(userId: string, nickName: string): Promise<any>;
541
- handleQueueTask(streamModel: BMStreamModel, noPlayChanged?: boolean): Promise<void>;
541
+ handleQueueTask: (streamModel: BMStreamModel, noPlayChanged?: boolean) => Promise<void>;
542
542
  handleStreamTask(streamModel: BMStreamModel, noPlayChanged?: boolean): Promise<void>;
543
543
  /**
544
544
  * 处理拉流的逻辑
@@ -132,17 +132,17 @@ export default class BMRoomInfo {
132
132
  /**
133
133
  * 所有的音频举手人员
134
134
  */
135
- private raiseHandsList;
135
+ raiseHandsList: Map<string, BMUser>;
136
136
  raiseHandsWatcher: BehaviorSubject<BMUser[]>;
137
137
  /**
138
138
  * 所有的视频举手的人员
139
139
  */
140
- private raiseVideoHandsList;
140
+ raiseVideoHandsList: Map<string, BMUser>;
141
141
  raiseVideoHandsWatcher: BehaviorSubject<BMUser[]>;
142
142
  /**
143
143
  * 所有的举手的人员
144
144
  */
145
- private raiseSimpleHandsList;
145
+ raiseSimpleHandsList: Map<string, BMUser>;
146
146
  raiseSimpleHandsWatcher: BehaviorSubject<BMUser[]>;
147
147
  operationPermission: OperationCustomStats | undefined;
148
148
  operationPermissionWatcher: Subject<OperationCustomStats>;
@@ -99,7 +99,7 @@ export default class BMStreamModelVM {
99
99
  getStreamModelByUId(userId: string): BMStreamModel | undefined;
100
100
  getShareStreamModelByUId(userId: string): BMStreamModel | undefined;
101
101
  getLocalStreamModel(): BMStreamModel | null;
102
- createStreamModel(user: BMUser, stream?: SingleStream): BMStreamModel;
102
+ createStreamModel(user: BMUser, stream?: SingleStream, forceShare?: boolean): BMStreamModel;
103
103
  addStreamModel(streamModel: BMStreamModel): void;
104
104
  addShareStreamModel(streamModel: BMStreamModel): void;
105
105
  removeStreamModel(streamModel: BMStreamModel): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hysc/meeting",
3
- "version": "4.0.72",
3
+ "version": "4.0.74",
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": "4.0.72",
17
+ "@hysc/core": "4.0.74",
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.3"
24
24
  },
25
25
  "peerDependencies": {
26
- "@hysc/core": "4.0.72"
26
+ "@hysc/core": "4.0.74"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/lodash-es": "^4.17.6"
@@ -3,14 +3,13 @@ import BMRoomVM, { AudioProfileInfo } from "./BMRoomVM";
3
3
  import BMUserVM from '../BMUser/BMUserVM';
4
4
  import { SingleLocalStream, SingleRemoteStream, SubscribeOptions } from '../type';
5
5
  import BMChatVM from '../BMChat/BMChatVM';
6
- import BMStreamModelVM from "../BMStream/BMStreamModelVM";
6
+ import BMStreamModelVM from '../BMStream/BMStreamModelVM';
7
7
  import { Device, VideoProfile } from '@hysc/core/esm/BoomAdapter/type/value';
8
8
  import BMRoomInfo from './BMRoomInfo';
9
9
  import { BehaviorSubject, Subject } from 'rxjs';
10
10
  import BMStreamModel from '../BMStream/BMStreamModel';
11
11
  import BMUser from '../BMUser/BMUser';
12
12
  import BMLiveVM from './BMLiveVM';
13
- import SingletonQueue, { PullItem } from "../SingletonQueue/SingletonQueue";
14
13
  interface BMRoomProps {
15
14
  initDevices: boolean;
16
15
  }
@@ -28,7 +27,6 @@ export default class BMRoom {
28
27
  selectVideoDevice: Device | null;
29
28
  selectAudioDevice: Device | null;
30
29
  selectAudioOutputDevice: Device | null;
31
- streamQueue: SingletonQueue;
32
30
  /**
33
31
  * 这个参数是和业务相关的功能,业务上的参会者列表是可以配置的,如果设置了只展示一列,那么所有的用户都要存储
34
32
  * 在commonUserList中
@@ -73,13 +71,10 @@ export default class BMRoom {
73
71
  * bloud断网重连的时候的提示
74
72
  */
75
73
  bloudWSReconnectWatcher: Subject<boolean>;
76
- netConnecting: boolean;
77
- netConnectingWatcher: Subject<boolean>;
78
74
  /**
79
75
  * 会控底层相关处理, 比如是否取消自动拉流
80
76
  */
81
77
  private meetingControlOptions;
82
- forceId: string;
83
78
  get isSingleColumns(): boolean;
84
79
  /**
85
80
  * 传递信息用的,主要是用于message信令往上层业务发送消息
@@ -251,6 +246,7 @@ export default class BMRoom {
251
246
  */
252
247
  setLocalSpeakerEnable(status: boolean): Promise<void>;
253
248
  private _attachEvents;
249
+ private _attachBrtcEvent;
254
250
  /**
255
251
  * 创建本地流
256
252
  * @param options
@@ -305,7 +301,7 @@ export default class BMRoom {
305
301
  * @param options 订阅选项
306
302
  * @returns
307
303
  */
308
- subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<any>;
304
+ subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<void>;
309
305
  /**
310
306
  * 取消订阅远端流
311
307
  *
@@ -532,7 +528,7 @@ export default class BMRoom {
532
528
  /**
533
529
  * 获取自定义属性
534
530
  */
535
- getCustomStats(): any;
531
+ getCustomStats(): import("./BMRoomInfo").OperationCustomStats | undefined;
536
532
  /**
537
533
  * 获取会议时间进度,返回秒数
538
534
  */
@@ -591,7 +587,6 @@ export default class BMRoom {
591
587
  /**
592
588
  * 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
593
589
  * @param event
594
- * @param failed
595
590
  */
596
591
  private handleStreamConnectError;
597
592
  /**
@@ -639,11 +634,6 @@ export default class BMRoom {
639
634
  * 重拉远端流
640
635
  */
641
636
  handleResetOtherStreamStatus(): void;
642
- addUser2Queue(pullItem: PullItem): Promise<void>;
643
- queueProcessor: any;
644
- queryBrtcStreams(uids: string[]): Promise<any>;
645
- handleAddStreams(streams: SingleRemoteStream[]): void;
646
- getForceUser(forceId: string): Promise<void>;
647
637
  getVersion(): string;
648
638
  }
649
639
  export {};
@@ -132,17 +132,17 @@ export default class BMRoomInfo {
132
132
  /**
133
133
  * 所有的音频举手人员
134
134
  */
135
- private raiseHandsList;
135
+ raiseHandsList: Map<string, BMUser>;
136
136
  raiseHandsWatcher: BehaviorSubject<BMUser[]>;
137
137
  /**
138
138
  * 所有的视频举手的人员
139
139
  */
140
- private raiseVideoHandsList;
140
+ raiseVideoHandsList: Map<string, BMUser>;
141
141
  raiseVideoHandsWatcher: BehaviorSubject<BMUser[]>;
142
142
  /**
143
143
  * 所有的举手的人员
144
144
  */
145
- private raiseSimpleHandsList;
145
+ raiseSimpleHandsList: Map<string, BMUser>;
146
146
  raiseSimpleHandsWatcher: BehaviorSubject<BMUser[]>;
147
147
  operationPermission: OperationCustomStats | undefined;
148
148
  operationPermissionWatcher: Subject<OperationCustomStats>;
@@ -99,7 +99,7 @@ export default class BMStreamModelVM {
99
99
  getStreamModelByUId(userId: string): BMStreamModel | undefined;
100
100
  getShareStreamModelByUId(userId: string): BMStreamModel | undefined;
101
101
  getLocalStreamModel(): BMStreamModel | null;
102
- createStreamModel(user: BMUser, stream?: SingleStream): BMStreamModel;
102
+ createStreamModel(user: BMUser, stream?: SingleStream, forceShare?: boolean): BMStreamModel;
103
103
  addStreamModel(streamModel: BMStreamModel): void;
104
104
  addShareStreamModel(streamModel: BMStreamModel): void;
105
105
  removeStreamModel(streamModel: BMStreamModel): void;