@hysc/meeting 5.0.48 → 5.0.49
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/BMStream/BMStreamModelVM.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/esm/src/BMRoom/BMRoom.d.ts +687 -686
- package/esm/src/BMStream/BMStreamModelVM.d.ts +1 -1
- package/package.json +3 -3
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +1 -1
- package/umd/index.js +1 -1
- package/umd/src/BMRoom/BMRoom.d.ts +53 -6
|
@@ -3,17 +3,20 @@ 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";
|
|
14
|
+
import AudioPlay from "../audioPlay/AudioPlay";
|
|
13
15
|
interface BMRoomProps {
|
|
14
16
|
initDevices: boolean;
|
|
15
17
|
}
|
|
16
18
|
export declare let _selfSortType: number;
|
|
19
|
+
export declare let autoPlayAudio: boolean;
|
|
17
20
|
export default class BMRoom {
|
|
18
21
|
roomVM: BMRoomVM | null;
|
|
19
22
|
userVM: BMUserVM;
|
|
@@ -27,6 +30,7 @@ export default class BMRoom {
|
|
|
27
30
|
selectVideoDevice: Device | null;
|
|
28
31
|
selectAudioDevice: Device | null;
|
|
29
32
|
selectAudioOutputDevice: Device | null;
|
|
33
|
+
streamQueue: SingletonQueue;
|
|
30
34
|
/**
|
|
31
35
|
* 这个参数是和业务相关的功能,业务上的参会者列表是可以配置的,如果设置了只展示一列,那么所有的用户都要存储
|
|
32
36
|
* 在commonUserList中
|
|
@@ -40,6 +44,11 @@ export default class BMRoom {
|
|
|
40
44
|
* brtc断网重连的时候,所有的订阅和播放相关的处理,都不需要
|
|
41
45
|
*/
|
|
42
46
|
BRTCConnectFailed: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 本端推流失败次数
|
|
49
|
+
*/
|
|
50
|
+
pubFailedNum: number;
|
|
51
|
+
streamConnectedErrorQueue: Array<ConnectErrorMessage>;
|
|
43
52
|
/**
|
|
44
53
|
* 会议模式
|
|
45
54
|
* 1 会议
|
|
@@ -71,11 +80,29 @@ export default class BMRoom {
|
|
|
71
80
|
* bloud断网重连的时候的提示
|
|
72
81
|
*/
|
|
73
82
|
bloudWSReconnectWatcher: Subject<boolean>;
|
|
83
|
+
netConnecting: boolean;
|
|
84
|
+
netConnectingWatcher: Subject<boolean>;
|
|
85
|
+
hasSyncPermission: boolean;
|
|
74
86
|
/**
|
|
75
87
|
* 会控底层相关处理, 比如是否取消自动拉流
|
|
76
88
|
*/
|
|
77
89
|
private meetingControlOptions;
|
|
78
|
-
|
|
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;
|
|
79
106
|
get isSingleColumns(): boolean;
|
|
80
107
|
/**
|
|
81
108
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
@@ -85,7 +112,21 @@ export default class BMRoom {
|
|
|
85
112
|
localUser: BMUser;
|
|
86
113
|
bmLiveVM: BMLiveVM;
|
|
87
114
|
isInWaitRoom: boolean;
|
|
115
|
+
shouldPlayAudio: boolean;
|
|
88
116
|
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
|
+
handleReprocessShareStreamError: () => void;
|
|
129
|
+
initAudioPlayer(playerContainerId: string): void;
|
|
89
130
|
/**
|
|
90
131
|
* 初始化底层会控相关
|
|
91
132
|
* @param options
|
|
@@ -247,7 +288,6 @@ export default class BMRoom {
|
|
|
247
288
|
*/
|
|
248
289
|
setLocalSpeakerEnable(status: boolean): Promise<void>;
|
|
249
290
|
private _attachEvents;
|
|
250
|
-
private _attachBrtcEvent;
|
|
251
291
|
/**
|
|
252
292
|
* 创建本地流
|
|
253
293
|
* @param options
|
|
@@ -302,7 +342,7 @@ export default class BMRoom {
|
|
|
302
342
|
* @param options 订阅选项
|
|
303
343
|
* @returns
|
|
304
344
|
*/
|
|
305
|
-
subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<
|
|
345
|
+
subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<any>;
|
|
306
346
|
/**
|
|
307
347
|
* 取消订阅远端流
|
|
308
348
|
*
|
|
@@ -529,7 +569,7 @@ export default class BMRoom {
|
|
|
529
569
|
/**
|
|
530
570
|
* 获取自定义属性
|
|
531
571
|
*/
|
|
532
|
-
getCustomStats():
|
|
572
|
+
getCustomStats(): any;
|
|
533
573
|
/**
|
|
534
574
|
* 获取会议时间进度,返回秒数
|
|
535
575
|
*/
|
|
@@ -588,6 +628,7 @@ export default class BMRoom {
|
|
|
588
628
|
/**
|
|
589
629
|
* 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
|
|
590
630
|
* @param event
|
|
631
|
+
* @param failed
|
|
591
632
|
*/
|
|
592
633
|
private handleStreamConnectError;
|
|
593
634
|
/**
|
|
@@ -635,6 +676,12 @@ export default class BMRoom {
|
|
|
635
676
|
* 重拉远端流
|
|
636
677
|
*/
|
|
637
678
|
handleResetOtherStreamStatus(): void;
|
|
679
|
+
addUser2Queue(pullItem: PullItem): Promise<void>;
|
|
680
|
+
processUser: (uIds: Map<string, PullItem>) => Promise<void>;
|
|
681
|
+
queueProcessor: any;
|
|
682
|
+
queryBrtcStreams(uids: string[]): Promise<any>;
|
|
683
|
+
handleAddStreams(streams: SingleRemoteStream[]): void;
|
|
684
|
+
getForceUser(forceId: string): Promise<void>;
|
|
638
685
|
getVersion(): string;
|
|
639
686
|
}
|
|
640
687
|
export {};
|