@hysc/meeting 4.0.82 → 4.0.83

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,14 @@ export default class BMRoom {
71
73
  * bloud断网重连的时候的提示
72
74
  */
73
75
  bloudWSReconnectWatcher: Subject<boolean>;
76
+ netConnecting: boolean;
77
+ netConnectingWatcher: Subject<boolean>;
78
+ hasSyncPermission: boolean;
74
79
  /**
75
80
  * 会控底层相关处理, 比如是否取消自动拉流
76
81
  */
77
82
  private meetingControlOptions;
83
+ forceId: string;
78
84
  get isSingleColumns(): boolean;
79
85
  /**
80
86
  * 传递信息用的,主要是用于message信令往上层业务发送消息
@@ -246,7 +252,6 @@ export default class BMRoom {
246
252
  */
247
253
  setLocalSpeakerEnable(status: boolean): Promise<void>;
248
254
  private _attachEvents;
249
- private _attachBrtcEvent;
250
255
  /**
251
256
  * 创建本地流
252
257
  * @param options
@@ -301,7 +306,7 @@ export default class BMRoom {
301
306
  * @param options 订阅选项
302
307
  * @returns
303
308
  */
304
- subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<void>;
309
+ subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<any>;
305
310
  /**
306
311
  * 取消订阅远端流
307
312
  *
@@ -528,7 +533,7 @@ export default class BMRoom {
528
533
  /**
529
534
  * 获取自定义属性
530
535
  */
531
- getCustomStats(): import("./BMRoomInfo").OperationCustomStats | undefined;
536
+ getCustomStats(): any;
532
537
  /**
533
538
  * 获取会议时间进度,返回秒数
534
539
  */
@@ -538,7 +543,7 @@ export default class BMRoom {
538
543
  */
539
544
  checkUserHasMaster(userId: string): boolean;
540
545
  changeNickName(userId: string, nickName: string): Promise<any>;
541
- handleQueueTask(streamModel: BMStreamModel, noPlayChanged?: boolean): Promise<void>;
546
+ handleQueueTask: (streamModel: BMStreamModel, noPlayChanged?: boolean) => Promise<void>;
542
547
  handleStreamTask(streamModel: BMStreamModel, noPlayChanged?: boolean): Promise<void>;
543
548
  /**
544
549
  * 处理拉流的逻辑
@@ -587,6 +592,7 @@ export default class BMRoom {
587
592
  /**
588
593
  * 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
589
594
  * @param event
595
+ * @param failed
590
596
  */
591
597
  private handleStreamConnectError;
592
598
  /**
@@ -634,6 +640,12 @@ export default class BMRoom {
634
640
  * 重拉远端流
635
641
  */
636
642
  handleResetOtherStreamStatus(): void;
643
+ addUser2Queue(pullItem: PullItem): Promise<void>;
644
+ processUser: (uIds: Map<string, PullItem>) => Promise<void>;
645
+ queueProcessor: any;
646
+ queryBrtcStreams(uids: string[]): Promise<any>;
647
+ handleAddStreams(streams: SingleRemoteStream[]): void;
648
+ getForceUser(forceId: string): Promise<void>;
637
649
  getVersion(): string;
638
650
  }
639
651
  export {};