@hysc/meeting 4.0.82 → 4.0.84
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/BMRoom/BMRoom.d.ts +36 -6
- package/esm/boom-meeting/src/audioPlay/AudioPlay.d.ts +14 -0
- package/esm/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/esm/src/audioPlay/AudioPlay.d.ts +14 -0
- package/package.json +3 -3
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +36 -6
- package/umd/boom-meeting/src/audioPlay/AudioPlay.d.ts +14 -0
- package/umd/index.js +1 -1
- package/umd/index.js.map +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: AudioPlay.ts
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-06-08 16:35
|
|
5
|
+
* @description:AudioPlay.ts
|
|
6
|
+
* @update: 2023-06-08 16:35
|
|
7
|
+
*/
|
|
8
|
+
import { SingleStream } from "../type";
|
|
9
|
+
export default class AudioPlay {
|
|
10
|
+
playMap: WeakSet<SingleStream>;
|
|
11
|
+
audioCtx: AudioContext;
|
|
12
|
+
addStream(stream: SingleStream): void;
|
|
13
|
+
play(stream: SingleStream): void;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.84",
|
|
4
4
|
"description": "boom meeting",
|
|
5
5
|
"main": "umd/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "yangliye",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@hysc/core": "4.0.
|
|
17
|
+
"@hysc/core": "4.0.84",
|
|
18
18
|
"lodash-es": "^4.17.21",
|
|
19
19
|
"mitt": "^3.0.0",
|
|
20
20
|
"@hysc/p-queue": "6.3.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@hysc/utils": "1.2.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@hysc/core": "4.0.
|
|
26
|
+
"@hysc/core": "4.0.84"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.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,10 +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;
|
|
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>;
|
|
78
102
|
get isSingleColumns(): boolean;
|
|
79
103
|
/**
|
|
80
104
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
@@ -246,7 +270,6 @@ export default class BMRoom {
|
|
|
246
270
|
*/
|
|
247
271
|
setLocalSpeakerEnable(status: boolean): Promise<void>;
|
|
248
272
|
private _attachEvents;
|
|
249
|
-
private _attachBrtcEvent;
|
|
250
273
|
/**
|
|
251
274
|
* 创建本地流
|
|
252
275
|
* @param options
|
|
@@ -301,7 +324,7 @@ export default class BMRoom {
|
|
|
301
324
|
* @param options 订阅选项
|
|
302
325
|
* @returns
|
|
303
326
|
*/
|
|
304
|
-
subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<
|
|
327
|
+
subscribe(remoteStream: SingleRemoteStream, options?: SubscribeOptions): Promise<any>;
|
|
305
328
|
/**
|
|
306
329
|
* 取消订阅远端流
|
|
307
330
|
*
|
|
@@ -528,7 +551,7 @@ export default class BMRoom {
|
|
|
528
551
|
/**
|
|
529
552
|
* 获取自定义属性
|
|
530
553
|
*/
|
|
531
|
-
getCustomStats():
|
|
554
|
+
getCustomStats(): any;
|
|
532
555
|
/**
|
|
533
556
|
* 获取会议时间进度,返回秒数
|
|
534
557
|
*/
|
|
@@ -538,7 +561,7 @@ export default class BMRoom {
|
|
|
538
561
|
*/
|
|
539
562
|
checkUserHasMaster(userId: string): boolean;
|
|
540
563
|
changeNickName(userId: string, nickName: string): Promise<any>;
|
|
541
|
-
handleQueueTask(streamModel: BMStreamModel, noPlayChanged?: boolean)
|
|
564
|
+
handleQueueTask: (streamModel: BMStreamModel, noPlayChanged?: boolean) => Promise<void>;
|
|
542
565
|
handleStreamTask(streamModel: BMStreamModel, noPlayChanged?: boolean): Promise<void>;
|
|
543
566
|
/**
|
|
544
567
|
* 处理拉流的逻辑
|
|
@@ -587,6 +610,7 @@ export default class BMRoom {
|
|
|
587
610
|
/**
|
|
588
611
|
* 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
|
|
589
612
|
* @param event
|
|
613
|
+
* @param failed
|
|
590
614
|
*/
|
|
591
615
|
private handleStreamConnectError;
|
|
592
616
|
/**
|
|
@@ -634,6 +658,12 @@ export default class BMRoom {
|
|
|
634
658
|
* 重拉远端流
|
|
635
659
|
*/
|
|
636
660
|
handleResetOtherStreamStatus(): void;
|
|
661
|
+
addUser2Queue(pullItem: PullItem): Promise<void>;
|
|
662
|
+
processUser: (uIds: Map<string, PullItem>) => Promise<void>;
|
|
663
|
+
queueProcessor: any;
|
|
664
|
+
queryBrtcStreams(uids: string[]): Promise<any>;
|
|
665
|
+
handleAddStreams(streams: SingleRemoteStream[]): void;
|
|
666
|
+
getForceUser(forceId: string): Promise<void>;
|
|
637
667
|
getVersion(): string;
|
|
638
668
|
}
|
|
639
669
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: AudioPlay.ts
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-06-08 16:35
|
|
5
|
+
* @description:AudioPlay.ts
|
|
6
|
+
* @update: 2023-06-08 16:35
|
|
7
|
+
*/
|
|
8
|
+
import { SingleStream } from "../type";
|
|
9
|
+
export default class AudioPlay {
|
|
10
|
+
playMap: WeakSet<SingleStream>;
|
|
11
|
+
audioCtx: AudioContext;
|
|
12
|
+
addStream(stream: SingleStream): void;
|
|
13
|
+
play(stream: SingleStream): void;
|
|
14
|
+
}
|