@hysc/meeting 5.0.46 → 5.0.48

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.
@@ -3,20 +3,17 @@ 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
- import BMStreamModel, { ConnectErrorMessage } from '../BMStream/BMStreamModel';
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
- import AudioPlay from "../audioPlay/AudioPlay";
15
13
  interface BMRoomProps {
16
14
  initDevices: boolean;
17
15
  }
18
16
  export declare let _selfSortType: number;
19
- export declare let autoPlayAudio: boolean;
20
17
  export default class BMRoom {
21
18
  roomVM: BMRoomVM | null;
22
19
  userVM: BMUserVM;
@@ -30,7 +27,6 @@ export default class BMRoom {
30
27
  selectVideoDevice: Device | null;
31
28
  selectAudioDevice: Device | null;
32
29
  selectAudioOutputDevice: Device | null;
33
- streamQueue: SingletonQueue;
34
30
  /**
35
31
  * 这个参数是和业务相关的功能,业务上的参会者列表是可以配置的,如果设置了只展示一列,那么所有的用户都要存储
36
32
  * 在commonUserList中
@@ -44,11 +40,6 @@ export default class BMRoom {
44
40
  * brtc断网重连的时候,所有的订阅和播放相关的处理,都不需要
45
41
  */
46
42
  BRTCConnectFailed: boolean;
47
- /**
48
- * 本端推流失败次数
49
- */
50
- pubFailedNum: number;
51
- streamConnectedErrorQueue: Array<ConnectErrorMessage>;
52
43
  /**
53
44
  * 会议模式
54
45
  * 1 会议
@@ -80,29 +71,11 @@ export default class BMRoom {
80
71
  * bloud断网重连的时候的提示
81
72
  */
82
73
  bloudWSReconnectWatcher: Subject<boolean>;
83
- netConnecting: boolean;
84
- netConnectingWatcher: Subject<boolean>;
85
- hasSyncPermission: boolean;
86
74
  /**
87
75
  * 会控底层相关处理, 比如是否取消自动拉流
88
76
  */
89
77
  private meetingControlOptions;
90
- forceId: string;
91
- /**
92
- * bloud brtc 断网重连的处理
93
- * networkState 记录网络状态
94
- * handleReconnectedStream 防抖函数,当双方有连接断网重连之后,会执行这个方法
95
- *
96
- * brtc 的sync-room 之后,本地会把所有的stream都销毁,清空,然后统一走一遍查询处理
97
- * 绑定新的stream,这么做简单粗暴处理所有的brtc流,防止流重复问题i
98
- */
99
- networkState: {
100
- bloud: boolean;
101
- brtc: boolean;
102
- };
103
- brtcNetEnableWatcher: Subject<boolean>;
104
- autoPlayAudio: boolean;
105
- audioPlayer: AudioPlay;
78
+ hasSyncPermission: boolean;
106
79
  get isSingleColumns(): boolean;
107
80
  /**
108
81
  * 传递信息用的,主要是用于message信令往上层业务发送消息
@@ -112,20 +85,7 @@ export default class BMRoom {
112
85
  localUser: BMUser;
113
86
  bmLiveVM: BMLiveVM;
114
87
  isInWaitRoom: boolean;
115
- shouldPlayAudio: boolean;
116
88
  constructor({ initDevices }?: BMRoomProps);
117
- /**
118
- * 是否自动播放声音
119
- * @param value
120
- */
121
- setAutoPlayAudio(value: boolean): void;
122
- /**
123
- * 是否应该播放声音
124
- * @param value
125
- */
126
- setShouldPlayAudio(value: boolean): void;
127
- handleReprocessStreamError: () => void;
128
- initAudioPlayer(playerContainerId: string): void;
129
89
  /**
130
90
  * 初始化底层会控相关
131
91
  * @param options
@@ -287,6 +247,7 @@ export default class BMRoom {
287
247
  */
288
248
  setLocalSpeakerEnable(status: boolean): Promise<void>;
289
249
  private _attachEvents;
250
+ private _attachBrtcEvent;
290
251
  /**
291
252
  * 创建本地流
292
253
  * @param options
@@ -341,7 +302,7 @@ export default class BMRoom {
341
302
  * @param options 订阅选项
342
303
  * @returns
343
304
  */
344
- subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<any>;
305
+ subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<void>;
345
306
  /**
346
307
  * 取消订阅远端流
347
308
  *
@@ -568,7 +529,7 @@ export default class BMRoom {
568
529
  /**
569
530
  * 获取自定义属性
570
531
  */
571
- getCustomStats(): any;
532
+ getCustomStats(): import("./BMRoomInfo").OperationCustomStats | undefined;
572
533
  /**
573
534
  * 获取会议时间进度,返回秒数
574
535
  */
@@ -627,7 +588,6 @@ export default class BMRoom {
627
588
  /**
628
589
  * 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
629
590
  * @param event
630
- * @param failed
631
591
  */
632
592
  private handleStreamConnectError;
633
593
  /**
@@ -675,12 +635,6 @@ export default class BMRoom {
675
635
  * 重拉远端流
676
636
  */
677
637
  handleResetOtherStreamStatus(): void;
678
- addUser2Queue(pullItem: PullItem): Promise<void>;
679
- processUser: (uIds: Map<string, PullItem>) => Promise<void>;
680
- queueProcessor: any;
681
- queryBrtcStreams(uids: string[]): Promise<any>;
682
- handleAddStreams(streams: SingleRemoteStream[]): void;
683
- getForceUser(forceId: string): Promise<void>;
684
638
  getVersion(): string;
685
639
  }
686
640
  export {};