@hysc/meeting 4.0.59 → 4.0.61

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,13 +3,14 @@ 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";
13
14
  interface BMRoomProps {
14
15
  initDevices: boolean;
15
16
  }
@@ -27,6 +28,7 @@ export default class BMRoom {
27
28
  selectVideoDevice: Device | null;
28
29
  selectAudioDevice: Device | null;
29
30
  selectAudioOutputDevice: Device | null;
31
+ streamQueue: SingletonQueue;
30
32
  /**
31
33
  * 这个参数是和业务相关的功能,业务上的参会者列表是可以配置的,如果设置了只展示一列,那么所有的用户都要存储
32
34
  * 在commonUserList中
@@ -71,10 +73,13 @@ export default class BMRoom {
71
73
  * bloud断网重连的时候的提示
72
74
  */
73
75
  bloudWSReconnectWatcher: Subject<boolean>;
76
+ netConnecting: boolean;
77
+ netConnectingWatcher: Subject<boolean>;
74
78
  /**
75
79
  * 会控底层相关处理, 比如是否取消自动拉流
76
80
  */
77
81
  private meetingControlOptions;
82
+ forceId: string;
78
83
  get isSingleColumns(): boolean;
79
84
  /**
80
85
  * 传递信息用的,主要是用于message信令往上层业务发送消息
@@ -246,7 +251,6 @@ export default class BMRoom {
246
251
  */
247
252
  setLocalSpeakerEnable(status: boolean): Promise<void>;
248
253
  private _attachEvents;
249
- private _attachBrtcEvent;
250
254
  /**
251
255
  * 创建本地流
252
256
  * @param options
@@ -301,7 +305,7 @@ export default class BMRoom {
301
305
  * @param options 订阅选项
302
306
  * @returns
303
307
  */
304
- subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<void>;
308
+ subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<any>;
305
309
  /**
306
310
  * 取消订阅远端流
307
311
  *
@@ -587,6 +591,7 @@ export default class BMRoom {
587
591
  /**
588
592
  * 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
589
593
  * @param event
594
+ * @param failed
590
595
  */
591
596
  private handleStreamConnectError;
592
597
  /**
@@ -634,6 +639,11 @@ export default class BMRoom {
634
639
  * 重拉远端流
635
640
  */
636
641
  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>;
637
647
  getVersion(): string;
638
648
  }
639
649
  export {};