@hysc/meeting 5.0.14 → 5.0.15
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.
- package/esm/boom-meeting/src/audioPlay/AudioPlay.d.ts +1 -7
- package/esm/index.js +1 -1
- package/esm/index.js.map +3 -3
- package/esm/src/BMRoom/BMRoom.d.ts +670 -671
- package/esm/src/audioPlay/AudioPlay.d.ts +1 -7
- package/package.json +3 -3
- package/umd/boom-meeting/src/audioPlay/AudioPlay.d.ts +1 -7
- package/umd/index.js +1 -1
- package/umd/src/BMRoom/BMRoom.d.ts +36 -6
|
@@ -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
|
|
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 from '../BMStream/BMStreamModel';
|
|
10
|
+
import BMStreamModel, { ConnectErrorMessage } 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中
|
|
@@ -40,6 +42,11 @@ export default class BMRoom {
|
|
|
40
42
|
* brtc断网重连的时候,所有的订阅和播放相关的处理,都不需要
|
|
41
43
|
*/
|
|
42
44
|
BRTCConnectFailed: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 本端推流失败次数
|
|
47
|
+
*/
|
|
48
|
+
pubFailedNum: number;
|
|
49
|
+
streamConnectedErrorQueue: Array<ConnectErrorMessage>;
|
|
43
50
|
/**
|
|
44
51
|
* 会议模式
|
|
45
52
|
* 1 会议
|
|
@@ -71,11 +78,27 @@ export default class BMRoom {
|
|
|
71
78
|
* bloud断网重连的时候的提示
|
|
72
79
|
*/
|
|
73
80
|
bloudWSReconnectWatcher: Subject<boolean>;
|
|
81
|
+
netConnecting: boolean;
|
|
82
|
+
netConnectingWatcher: Subject<boolean>;
|
|
83
|
+
hasSyncPermission: boolean;
|
|
74
84
|
/**
|
|
75
85
|
* 会控底层相关处理, 比如是否取消自动拉流
|
|
76
86
|
*/
|
|
77
87
|
private meetingControlOptions;
|
|
78
|
-
|
|
88
|
+
forceId: string;
|
|
89
|
+
/**
|
|
90
|
+
* bloud brtc 断网重连的处理
|
|
91
|
+
* networkState 记录网络状态
|
|
92
|
+
* handleReconnectedStream 防抖函数,当双方有连接断网重连之后,会执行这个方法
|
|
93
|
+
*
|
|
94
|
+
* brtc 的sync-room 之后,本地会把所有的stream都销毁,清空,然后统一走一遍查询处理
|
|
95
|
+
* 绑定新的stream,这么做简单粗暴处理所有的brtc流,防止流重复问题i
|
|
96
|
+
*/
|
|
97
|
+
networkState: {
|
|
98
|
+
bloud: boolean;
|
|
99
|
+
brtc: boolean;
|
|
100
|
+
};
|
|
101
|
+
brtcNetEnableWatcher: Subject<boolean>;
|
|
79
102
|
get isSingleColumns(): boolean;
|
|
80
103
|
/**
|
|
81
104
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
@@ -86,6 +109,7 @@ export default class BMRoom {
|
|
|
86
109
|
bmLiveVM: BMLiveVM;
|
|
87
110
|
isInWaitRoom: boolean;
|
|
88
111
|
constructor({ initDevices }?: BMRoomProps);
|
|
112
|
+
handleReprocessStreamError: () => void;
|
|
89
113
|
/**
|
|
90
114
|
* 初始化底层会控相关
|
|
91
115
|
* @param options
|
|
@@ -247,7 +271,6 @@ export default class BMRoom {
|
|
|
247
271
|
*/
|
|
248
272
|
setLocalSpeakerEnable(status: boolean): Promise<void>;
|
|
249
273
|
private _attachEvents;
|
|
250
|
-
private _attachBrtcEvent;
|
|
251
274
|
/**
|
|
252
275
|
* 创建本地流
|
|
253
276
|
* @param options
|
|
@@ -302,7 +325,7 @@ export default class BMRoom {
|
|
|
302
325
|
* @param options 订阅选项
|
|
303
326
|
* @returns
|
|
304
327
|
*/
|
|
305
|
-
subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<
|
|
328
|
+
subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<any>;
|
|
306
329
|
/**
|
|
307
330
|
* 取消订阅远端流
|
|
308
331
|
*
|
|
@@ -529,7 +552,7 @@ export default class BMRoom {
|
|
|
529
552
|
/**
|
|
530
553
|
* 获取自定义属性
|
|
531
554
|
*/
|
|
532
|
-
getCustomStats():
|
|
555
|
+
getCustomStats(): any;
|
|
533
556
|
/**
|
|
534
557
|
* 获取会议时间进度,返回秒数
|
|
535
558
|
*/
|
|
@@ -588,6 +611,7 @@ export default class BMRoom {
|
|
|
588
611
|
/**
|
|
589
612
|
* 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
|
|
590
613
|
* @param event
|
|
614
|
+
* @param failed
|
|
591
615
|
*/
|
|
592
616
|
private handleStreamConnectError;
|
|
593
617
|
/**
|
|
@@ -635,6 +659,12 @@ export default class BMRoom {
|
|
|
635
659
|
* 重拉远端流
|
|
636
660
|
*/
|
|
637
661
|
handleResetOtherStreamStatus(): void;
|
|
662
|
+
addUser2Queue(pullItem: PullItem): Promise<void>;
|
|
663
|
+
processUser: (uIds: Map<string, PullItem>) => Promise<void>;
|
|
664
|
+
queueProcessor: any;
|
|
665
|
+
queryBrtcStreams(uids: string[]): Promise<any>;
|
|
666
|
+
handleAddStreams(streams: SingleRemoteStream[]): void;
|
|
667
|
+
getForceUser(forceId: string): Promise<void>;
|
|
638
668
|
getVersion(): string;
|
|
639
669
|
}
|
|
640
670
|
export {};
|