@hysc/meeting 0.1.0
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/BMChat/BMChatVM.d.ts +24 -0
- package/esm/BMChat/BMMessageInfo.d.ts +27 -0
- package/esm/BMRoom/BMLiveVM.d.ts +35 -0
- package/esm/BMRoom/BMRoom.d.ts +622 -0
- package/esm/BMRoom/BMRoomInfo.d.ts +189 -0
- package/esm/BMRoom/BMRoomVM.d.ts +283 -0
- package/esm/BMRoom/RoomEvent.d.ts +1 -0
- package/esm/BMRoom/attachEvents.d.ts +27 -0
- package/esm/BMStream/BMSpeaker.d.ts +44 -0
- package/esm/BMStream/BMStreamModel.d.ts +248 -0
- package/esm/BMStream/BMStreamModelVM.d.ts +233 -0
- package/esm/BMStream/getHTMLMediaStreamOptions.d.ts +35 -0
- package/esm/BMUser/BMUser.d.ts +147 -0
- package/esm/BMUser/BMUserVM.d.ts +137 -0
- package/esm/bjy-common/function/debounce.d.ts +9 -0
- package/esm/bjy-common/function/execute.d.ts +9 -0
- package/esm/bjy-common/function/isDef.d.ts +1 -0
- package/esm/bjy-common/function/isNative.d.ts +1 -0
- package/esm/bjy-common/function/isUndef.d.ts +1 -0
- package/esm/bjy-common/function/nextTick.d.ts +2 -0
- package/esm/bjy-common/function/throttling.d.ts +9 -0
- package/esm/bjy-common/function/toNumber.d.ts +1 -0
- package/esm/bjy-common/function/toString.d.ts +1 -0
- package/esm/bjy-common/type/api.d.ts +66 -0
- package/esm/bjy-common/type/options.d.ts +7 -0
- package/esm/bjy-common/type/type.d.ts +90 -0
- package/esm/bjy-common/util/CustomEvent.d.ts +30 -0
- package/esm/bjy-common/util/Emitter.d.ts +57 -0
- package/esm/bjy-common/util/NextTask.d.ts +28 -0
- package/esm/bjy-common/util/Sleep.d.ts +14 -0
- package/esm/bjy-common/util/Timer.d.ts +13 -0
- package/esm/bjy-common/util/array.d.ts +96 -0
- package/esm/bjy-common/util/browser.d.ts +6 -0
- package/esm/bjy-common/util/constant.d.ts +50 -0
- package/esm/bjy-common/util/holder.d.ts +6 -0
- package/esm/bjy-common/util/is.d.ts +49 -0
- package/esm/bjy-common/util/keypath.d.ts +41 -0
- package/esm/bjy-common/util/logger.d.ts +42 -0
- package/esm/bjy-common/util/network.d.ts +4 -0
- package/esm/bjy-common/util/object.d.ts +83 -0
- package/esm/bjy-common/util/os.d.ts +14 -0
- package/esm/bjy-common/util/string.d.ts +102 -0
- package/esm/boom-meeting/src/BMChat/BMChatVM.d.ts +21 -0
- package/esm/boom-meeting/src/BMChat/BMMessageInfo.d.ts +27 -0
- package/esm/boom-meeting/src/BMRoom/BMLiveVM.d.ts +35 -0
- package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +147 -0
- package/esm/boom-meeting/src/BMRoom/RoomEvent.d.ts +1 -0
- package/esm/boom-meeting/src/BMStream/BMSpeaker.d.ts +44 -0
- package/esm/boom-meeting/src/BMStream/BMStreamModel.d.ts +248 -0
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +213 -0
- package/esm/boom-meeting/src/BMStream/getHTMLMediaStreamOptions.d.ts +35 -0
- package/esm/boom-meeting/src/BMUser/BMUser.d.ts +147 -0
- package/esm/boom-meeting/src/BMUser/BMUserVM.d.ts +111 -0
- package/esm/boom-meeting/src/bjy-common/function/debounce.d.ts +9 -0
- package/esm/boom-meeting/src/bjy-common/function/execute.d.ts +9 -0
- package/esm/boom-meeting/src/bjy-common/function/isDef.d.ts +1 -0
- package/esm/boom-meeting/src/bjy-common/function/isNative.d.ts +1 -0
- package/esm/boom-meeting/src/bjy-common/function/isUndef.d.ts +1 -0
- package/esm/boom-meeting/src/bjy-common/function/nextTick.d.ts +2 -0
- package/esm/boom-meeting/src/bjy-common/function/throttling.d.ts +9 -0
- package/esm/boom-meeting/src/bjy-common/function/toNumber.d.ts +1 -0
- package/esm/boom-meeting/src/bjy-common/function/toString.d.ts +1 -0
- package/esm/boom-meeting/src/bjy-common/type/api.d.ts +66 -0
- package/esm/boom-meeting/src/bjy-common/type/options.d.ts +7 -0
- package/esm/boom-meeting/src/bjy-common/type/type.d.ts +90 -0
- package/esm/boom-meeting/src/bjy-common/util/CustomEvent.d.ts +30 -0
- package/esm/boom-meeting/src/bjy-common/util/Emitter.d.ts +57 -0
- package/esm/boom-meeting/src/bjy-common/util/NextTask.d.ts +28 -0
- package/esm/boom-meeting/src/bjy-common/util/Sleep.d.ts +14 -0
- package/esm/boom-meeting/src/bjy-common/util/Timer.d.ts +13 -0
- package/esm/boom-meeting/src/bjy-common/util/array.d.ts +96 -0
- package/esm/boom-meeting/src/bjy-common/util/browser.d.ts +6 -0
- package/esm/boom-meeting/src/bjy-common/util/constant.d.ts +50 -0
- package/esm/boom-meeting/src/bjy-common/util/holder.d.ts +6 -0
- package/esm/boom-meeting/src/bjy-common/util/is.d.ts +49 -0
- package/esm/boom-meeting/src/bjy-common/util/keypath.d.ts +41 -0
- package/esm/boom-meeting/src/bjy-common/util/logger.d.ts +42 -0
- package/esm/boom-meeting/src/bjy-common/util/network.d.ts +4 -0
- package/esm/boom-meeting/src/bjy-common/util/object.d.ts +83 -0
- package/esm/boom-meeting/src/bjy-common/util/os.d.ts +14 -0
- package/esm/boom-meeting/src/bjy-common/util/string.d.ts +102 -0
- package/esm/boom-meeting/src/constants.d.ts +83 -0
- package/esm/boom-meeting/src/error/errorMap.d.ts +70 -0
- package/esm/boom-meeting/src/error/errorType.d.ts +96 -0
- package/esm/boom-meeting/src/logger/logger.d.ts +86 -0
- package/esm/boom-meeting/src/type/customStats.d.ts +117 -0
- package/esm/boom-meeting/src/type/index.d.ts +9 -0
- package/esm/boom-meeting/src/type/stream.d.ts +17 -0
- package/esm/boom-meeting/src/type/user.d.ts +9 -0
- package/esm/boom-meeting/src/types/customStats.d.ts +103 -0
- package/esm/boom-meeting/src/types/index.d.ts +9 -0
- package/esm/boom-meeting/src/types/stream.d.ts +17 -0
- package/esm/boom-meeting/src/types/user.d.ts +11 -0
- package/esm/boom-meeting/src/util/PackLoss.d.ts +7 -0
- package/esm/boom-meeting/src/util/Privileges.d.ts +20 -0
- package/esm/boom-meeting/src/util/ReportCollector.d.ts +22 -0
- package/esm/boom-meeting/src/util/Stutter.d.ts +19 -0
- package/esm/boom-meeting/src/util/base64.d.ts +4 -0
- package/esm/boom-meeting/src/util/checkPermissions.d.ts +1 -0
- package/esm/boom-meeting/src/util/checkSystemRequirements.d.ts +1 -0
- package/esm/boom-meeting/src/util/devices.d.ts +2 -0
- package/esm/boom-meeting/src/util/emitter.d.ts +18 -0
- package/esm/boom-meeting/src/util/formatUserId.d.ts +2 -0
- package/esm/boom-meeting/src/util/is.d.ts +70 -0
- package/esm/boom-meeting/src/util/peerToPeerProbe.d.ts +9 -0
- package/esm/boom-meeting/src/util/request.d.ts +45 -0
- package/esm/boom-meeting/src/util/roomUtils.d.ts +9 -0
- package/esm/boom-meeting/src/util/util.d.ts +76 -0
- package/esm/constants.d.ts +83 -0
- package/esm/error/RTCError.d.ts +20 -0
- package/esm/error/errorMap.d.ts +70 -0
- package/esm/error/errorType.d.ts +96 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +60529 -0
- package/esm/index.js.map +7 -0
- package/esm/logger/logger.d.ts +86 -0
- package/esm/type/customStats.d.ts +117 -0
- package/esm/type/index.d.ts +9 -0
- package/esm/type/stream.d.ts +17 -0
- package/esm/type/user.d.ts +9 -0
- package/esm/types/customStats.d.ts +103 -0
- package/esm/types/index.d.ts +9 -0
- package/esm/types/stream.d.ts +17 -0
- package/esm/types/user.d.ts +11 -0
- package/esm/util/PackLoss.d.ts +7 -0
- package/esm/util/Pqueue.d.ts +61 -0
- package/esm/util/Privileges.d.ts +20 -0
- package/esm/util/ReportCollector.d.ts +22 -0
- package/esm/util/Stutter.d.ts +19 -0
- package/esm/util/base64.d.ts +4 -0
- package/esm/util/checkPermissions.d.ts +1 -0
- package/esm/util/checkSystemRequirements.d.ts +1 -0
- package/esm/util/constant.d.ts +67 -0
- package/esm/util/devices.d.ts +2 -0
- package/esm/util/emitter.d.ts +18 -0
- package/esm/util/formatUserId.d.ts +2 -0
- package/esm/util/is.d.ts +70 -0
- package/esm/util/peerToPeerProbe.d.ts +9 -0
- package/esm/util/request.d.ts +45 -0
- package/esm/util/roomUtils.d.ts +9 -0
- package/esm/util/util.d.ts +76 -0
- package/esm/utils/ErrorTypes.d.ts +97 -0
- package/package.json +36 -0
- package/umd/BMChat/BMChatVM.d.ts +24 -0
- package/umd/BMRoom/BMRoom.d.ts +622 -0
- package/umd/BMRoom/BMRoomInfo.d.ts +189 -0
- package/umd/BMRoom/BMRoomVM.d.ts +283 -0
- package/umd/BMRoom/attachEvents.d.ts +27 -0
- package/umd/BMStream/BMStreamModelVM.d.ts +233 -0
- package/umd/BMUser/BMUser.d.ts +147 -0
- package/umd/BMUser/BMUserVM.d.ts +137 -0
- package/umd/boom-meeting/src/BMChat/BMMessageInfo.d.ts +27 -0
- package/umd/boom-meeting/src/BMRoom/BMLiveVM.d.ts +35 -0
- package/umd/boom-meeting/src/BMRoom/RoomEvent.d.ts +1 -0
- package/umd/boom-meeting/src/BMStream/BMSpeaker.d.ts +44 -0
- package/umd/boom-meeting/src/BMStream/BMStreamModel.d.ts +248 -0
- package/umd/boom-meeting/src/BMStream/getHTMLMediaStreamOptions.d.ts +35 -0
- package/umd/boom-meeting/src/bjy-common/function/debounce.d.ts +9 -0
- package/umd/boom-meeting/src/bjy-common/function/execute.d.ts +9 -0
- package/umd/boom-meeting/src/bjy-common/function/isDef.d.ts +1 -0
- package/umd/boom-meeting/src/bjy-common/function/isNative.d.ts +1 -0
- package/umd/boom-meeting/src/bjy-common/function/isUndef.d.ts +1 -0
- package/umd/boom-meeting/src/bjy-common/function/nextTick.d.ts +2 -0
- package/umd/boom-meeting/src/bjy-common/function/throttling.d.ts +9 -0
- package/umd/boom-meeting/src/bjy-common/function/toNumber.d.ts +1 -0
- package/umd/boom-meeting/src/bjy-common/function/toString.d.ts +1 -0
- package/umd/boom-meeting/src/bjy-common/type/api.d.ts +66 -0
- package/umd/boom-meeting/src/bjy-common/type/options.d.ts +7 -0
- package/umd/boom-meeting/src/bjy-common/type/type.d.ts +90 -0
- package/umd/boom-meeting/src/bjy-common/util/CustomEvent.d.ts +30 -0
- package/umd/boom-meeting/src/bjy-common/util/Emitter.d.ts +57 -0
- package/umd/boom-meeting/src/bjy-common/util/NextTask.d.ts +28 -0
- package/umd/boom-meeting/src/bjy-common/util/Sleep.d.ts +14 -0
- package/umd/boom-meeting/src/bjy-common/util/Timer.d.ts +13 -0
- package/umd/boom-meeting/src/bjy-common/util/array.d.ts +96 -0
- package/umd/boom-meeting/src/bjy-common/util/browser.d.ts +6 -0
- package/umd/boom-meeting/src/bjy-common/util/constant.d.ts +50 -0
- package/umd/boom-meeting/src/bjy-common/util/holder.d.ts +6 -0
- package/umd/boom-meeting/src/bjy-common/util/is.d.ts +49 -0
- package/umd/boom-meeting/src/bjy-common/util/keypath.d.ts +41 -0
- package/umd/boom-meeting/src/bjy-common/util/logger.d.ts +42 -0
- package/umd/boom-meeting/src/bjy-common/util/network.d.ts +4 -0
- package/umd/boom-meeting/src/bjy-common/util/object.d.ts +83 -0
- package/umd/boom-meeting/src/bjy-common/util/os.d.ts +14 -0
- package/umd/boom-meeting/src/bjy-common/util/string.d.ts +102 -0
- package/umd/boom-meeting/src/constants.d.ts +83 -0
- package/umd/boom-meeting/src/error/errorMap.d.ts +70 -0
- package/umd/boom-meeting/src/type/customStats.d.ts +117 -0
- package/umd/boom-meeting/src/type/index.d.ts +9 -0
- package/umd/boom-meeting/src/type/stream.d.ts +17 -0
- package/umd/boom-meeting/src/type/user.d.ts +9 -0
- package/umd/boom-meeting/src/util/PackLoss.d.ts +7 -0
- package/umd/boom-meeting/src/util/Privileges.d.ts +20 -0
- package/umd/boom-meeting/src/util/ReportCollector.d.ts +22 -0
- package/umd/boom-meeting/src/util/Stutter.d.ts +19 -0
- package/umd/boom-meeting/src/util/base64.d.ts +4 -0
- package/umd/boom-meeting/src/util/checkPermissions.d.ts +1 -0
- package/umd/boom-meeting/src/util/checkSystemRequirements.d.ts +1 -0
- package/umd/boom-meeting/src/util/devices.d.ts +2 -0
- package/umd/boom-meeting/src/util/emitter.d.ts +18 -0
- package/umd/boom-meeting/src/util/formatUserId.d.ts +2 -0
- package/umd/boom-meeting/src/util/is.d.ts +70 -0
- package/umd/boom-meeting/src/util/peerToPeerProbe.d.ts +9 -0
- package/umd/boom-meeting/src/util/request.d.ts +45 -0
- package/umd/boom-meeting/src/util/roomUtils.d.ts +9 -0
- package/umd/boom-meeting/src/util/util.d.ts +76 -0
- package/umd/error/RTCError.d.ts +20 -0
- package/umd/error/errorType.d.ts +96 -0
- package/umd/index.d.ts +2 -0
- package/umd/index.js +60 -0
- package/umd/logger/logger.d.ts +86 -0
- package/umd/util/Pqueue.d.ts +61 -0
- package/umd/util/constant.d.ts +67 -0
- package/umd/utils/ErrorTypes.d.ts +97 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: customStats
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-07-14 17:35
|
|
5
|
+
* @description:customStats 类型声明定义
|
|
6
|
+
* @update: 2022-07-14 17:35
|
|
7
|
+
*/
|
|
8
|
+
export interface From {
|
|
9
|
+
fromTag: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Tile {
|
|
12
|
+
index: number;
|
|
13
|
+
user: string;
|
|
14
|
+
nickname: string;
|
|
15
|
+
stream: string;
|
|
16
|
+
}
|
|
17
|
+
export interface NextTile {
|
|
18
|
+
index: number;
|
|
19
|
+
nickname: string;
|
|
20
|
+
user: string;
|
|
21
|
+
stream: string;
|
|
22
|
+
}
|
|
23
|
+
export interface MainLayout {
|
|
24
|
+
user: string;
|
|
25
|
+
layout: number;
|
|
26
|
+
activeSubtiles: boolean;
|
|
27
|
+
tiles: Tile[];
|
|
28
|
+
nextTiles: NextTile[];
|
|
29
|
+
}
|
|
30
|
+
export interface Tile2 {
|
|
31
|
+
index: number;
|
|
32
|
+
nickname: string;
|
|
33
|
+
user: string;
|
|
34
|
+
stream: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ForceOn {
|
|
37
|
+
user?: string;
|
|
38
|
+
isShare?: boolean;
|
|
39
|
+
active?: boolean;
|
|
40
|
+
laterScreen?: boolean;
|
|
41
|
+
tiles?: Tile2[];
|
|
42
|
+
}
|
|
43
|
+
export interface Tile3 {
|
|
44
|
+
index: number;
|
|
45
|
+
nickname: string;
|
|
46
|
+
user: string;
|
|
47
|
+
stream: string;
|
|
48
|
+
}
|
|
49
|
+
export interface Tiles4 {
|
|
50
|
+
index: number;
|
|
51
|
+
nickname: string;
|
|
52
|
+
user: string;
|
|
53
|
+
stream: string;
|
|
54
|
+
isSubStream?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface HostLayout {
|
|
57
|
+
user: string;
|
|
58
|
+
layout: number;
|
|
59
|
+
activeSubtiles: boolean;
|
|
60
|
+
tiles: Tiles4[];
|
|
61
|
+
}
|
|
62
|
+
export interface DefaultLayout {
|
|
63
|
+
mode: number;
|
|
64
|
+
allowSwitchingLayout: boolean;
|
|
65
|
+
tiles: Tile3[];
|
|
66
|
+
}
|
|
67
|
+
export interface Roll {
|
|
68
|
+
active: boolean;
|
|
69
|
+
start: number;
|
|
70
|
+
interval: number;
|
|
71
|
+
}
|
|
72
|
+
export interface ShareList {
|
|
73
|
+
user: string;
|
|
74
|
+
stream: string;
|
|
75
|
+
}
|
|
76
|
+
export interface CustomStats {
|
|
77
|
+
/**
|
|
78
|
+
* 默认为0,自由模式,可随时切换;
|
|
79
|
+
*
|
|
80
|
+
* 1时使用 defaultLayout,布局内可控;
|
|
81
|
+
*
|
|
82
|
+
* 2时使用 mainLayout,主会场同内容
|
|
83
|
+
*/
|
|
84
|
+
layoutMode: number;
|
|
85
|
+
from: From;
|
|
86
|
+
mainLayout: MainLayout;
|
|
87
|
+
forceOn: ForceOn;
|
|
88
|
+
defaultLayout: DefaultLayout;
|
|
89
|
+
roll: Roll;
|
|
90
|
+
shareList: ShareList[];
|
|
91
|
+
chatNotice: string;
|
|
92
|
+
chatNoticeRich: object;
|
|
93
|
+
giveLikeEnable: number;
|
|
94
|
+
chatEnable: number;
|
|
95
|
+
fileUpdateModel: number;
|
|
96
|
+
fileUpdateLook: number;
|
|
97
|
+
fileUpdateDown: number;
|
|
98
|
+
fileUpdateEdit: number;
|
|
99
|
+
screenShareModel: number;
|
|
100
|
+
activeSubtiles: boolean;
|
|
101
|
+
hostLayout: HostLayout;
|
|
102
|
+
updateKeys: any[];
|
|
103
|
+
joinAudioEnable: number;
|
|
104
|
+
joinVideoEnable: number;
|
|
105
|
+
userListEnable: number;
|
|
106
|
+
audioEnable: number;
|
|
107
|
+
videoEnable: number;
|
|
108
|
+
modifyNameEnable: number;
|
|
109
|
+
backgroundAIEnable: number;
|
|
110
|
+
recordEnable: number;
|
|
111
|
+
joinMicrophoneDisable: number;
|
|
112
|
+
joinCameraDisable: number;
|
|
113
|
+
forceOpenUserMic: boolean;
|
|
114
|
+
forceOpenUserCamera: boolean;
|
|
115
|
+
onlyOnePersonShare: number;
|
|
116
|
+
}
|
|
117
|
+
export declare type PartialCustomStats = Partial<CustomStats>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: stream
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-04-25 13:42
|
|
5
|
+
* @description:stream
|
|
6
|
+
* @update: 2022-04-25 13:42
|
|
7
|
+
*/
|
|
8
|
+
import LocalStream from '@boom/core/esm/BoomAdapter/singleMode/stream/LocalStream';
|
|
9
|
+
import RemoteStream from '@boom/core/esm/BoomAdapter/singleMode/stream/RemoteStream';
|
|
10
|
+
import { StreamDeviceOption } from '@boom/core/esm/BoomAdapter/type/BRTCStream';
|
|
11
|
+
import { RemoteStreamOptions } from '@boom/core/esm/BoomCore/BCClient/BCClient';
|
|
12
|
+
export { SubscribeOptions } from '@boom/core/esm/BoomAdapter/type/BRTCClient';
|
|
13
|
+
export declare type SingleLocalStream = LocalStream;
|
|
14
|
+
export declare type SingleRemoteStream = RemoteStream;
|
|
15
|
+
export declare type SingleStream = SingleLocalStream | SingleRemoteStream;
|
|
16
|
+
export declare type SingleStreamDeviceOption = StreamDeviceOption;
|
|
17
|
+
export declare type SingleRemoteStreamOption = Pick<RemoteStreamOptions, 'uid' | 'stream' | 'subStream' | 'sid'>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: customStats
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-07-14 17:35
|
|
5
|
+
* @description:customStats 类型声明定义
|
|
6
|
+
* @update: 2022-07-14 17:35
|
|
7
|
+
*/
|
|
8
|
+
export interface From {
|
|
9
|
+
fromTag: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Tile {
|
|
12
|
+
index: number;
|
|
13
|
+
user: string;
|
|
14
|
+
nickname: string;
|
|
15
|
+
stream: string;
|
|
16
|
+
}
|
|
17
|
+
export interface NextTile {
|
|
18
|
+
index: number;
|
|
19
|
+
nickname: string;
|
|
20
|
+
user: string;
|
|
21
|
+
stream: string;
|
|
22
|
+
}
|
|
23
|
+
export interface MainLayout {
|
|
24
|
+
user: string;
|
|
25
|
+
layout: number;
|
|
26
|
+
activeSubtiles: boolean;
|
|
27
|
+
tiles: Tile[];
|
|
28
|
+
nextTiles: NextTile[];
|
|
29
|
+
}
|
|
30
|
+
export interface Tile2 {
|
|
31
|
+
index: number;
|
|
32
|
+
nickname: string;
|
|
33
|
+
user: string;
|
|
34
|
+
stream: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ForceOn {
|
|
37
|
+
user?: string;
|
|
38
|
+
isShare?: boolean;
|
|
39
|
+
active?: boolean;
|
|
40
|
+
laterScreen?: boolean;
|
|
41
|
+
tiles?: Tile2[];
|
|
42
|
+
}
|
|
43
|
+
export interface Tile3 {
|
|
44
|
+
index: number;
|
|
45
|
+
nickname: string;
|
|
46
|
+
user: string;
|
|
47
|
+
stream: string;
|
|
48
|
+
}
|
|
49
|
+
export interface Tiles4 {
|
|
50
|
+
index: number;
|
|
51
|
+
nickname: string;
|
|
52
|
+
user: string;
|
|
53
|
+
stream: string;
|
|
54
|
+
isSubStream?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface HostLayout {
|
|
57
|
+
user: string;
|
|
58
|
+
layout: number;
|
|
59
|
+
activeSubtiles: boolean;
|
|
60
|
+
tiles: Tiles4[];
|
|
61
|
+
}
|
|
62
|
+
export interface DefaultLayout {
|
|
63
|
+
mode: number;
|
|
64
|
+
allowSwitchingLayout: boolean;
|
|
65
|
+
tiles: Tile3[];
|
|
66
|
+
}
|
|
67
|
+
export interface Roll {
|
|
68
|
+
active: boolean;
|
|
69
|
+
start: number;
|
|
70
|
+
interval: number;
|
|
71
|
+
}
|
|
72
|
+
export interface ShareList {
|
|
73
|
+
user: string;
|
|
74
|
+
stream: string;
|
|
75
|
+
}
|
|
76
|
+
export interface CustomStats {
|
|
77
|
+
/**
|
|
78
|
+
* 默认为0,自由模式,可随时切换;
|
|
79
|
+
*
|
|
80
|
+
* 1时使用 defaultLayout,布局内可控;
|
|
81
|
+
*
|
|
82
|
+
* 2时使用 mainLayout,主会场同内容
|
|
83
|
+
*/
|
|
84
|
+
layoutMode: number;
|
|
85
|
+
from: From;
|
|
86
|
+
mainLayout: MainLayout;
|
|
87
|
+
forceOn: ForceOn;
|
|
88
|
+
defaultLayout: DefaultLayout;
|
|
89
|
+
roll: Roll;
|
|
90
|
+
shareList: ShareList[];
|
|
91
|
+
chatNotice: string;
|
|
92
|
+
giveLikeEnable: number;
|
|
93
|
+
chatEnable: number;
|
|
94
|
+
fileUpdateModel: number;
|
|
95
|
+
fileUpdateLook: number;
|
|
96
|
+
fileUpdateDown: number;
|
|
97
|
+
fileUpdateEdit: number;
|
|
98
|
+
screenShareModel: number;
|
|
99
|
+
activeSubtiles: boolean;
|
|
100
|
+
hostLayout: HostLayout;
|
|
101
|
+
updateKeys: any[];
|
|
102
|
+
}
|
|
103
|
+
export declare type PartialCustomStats = Partial<CustomStats>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: stream
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-04-25 13:42
|
|
5
|
+
* @description:stream
|
|
6
|
+
* @update: 2022-04-25 13:42
|
|
7
|
+
*/
|
|
8
|
+
import LocalStream from '@boom/core/esm/BoomAdapter/singleMode/stream/LocalStream';
|
|
9
|
+
import RemoteStream from '@boom/core/esm/BoomAdapter/singleMode/stream/RemoteStream';
|
|
10
|
+
import { StreamDeviceOption } from '@boom/core/esm/BoomAdapter/type/BRTCStream';
|
|
11
|
+
import { RemoteStreamOptions } from '@boom/core/esm/BoomCore/BCClient/BCClient';
|
|
12
|
+
export { SubscribeOptions } from '@boom/core/esm/BoomAdapter/type/BRTCClient';
|
|
13
|
+
export declare type SingleLocalStream = LocalStream;
|
|
14
|
+
export declare type SingleRemoteStream = RemoteStream;
|
|
15
|
+
export declare type SingleStream = SingleLocalStream | SingleRemoteStream;
|
|
16
|
+
export declare type SingleStreamDeviceOption = StreamDeviceOption;
|
|
17
|
+
export declare type SingleRemoteStreamOption = Pick<RemoteStreamOptions, 'uid' | 'stream' | 'subStream' | 'sid'>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import BCUser from '@boom/core/esm/BoomAdapter/User/User';
|
|
2
|
+
import BMUser from '../BMUser/BMUser';
|
|
3
|
+
export declare type BCUSer = BCUser;
|
|
4
|
+
export declare type UpdateMasterType = {
|
|
5
|
+
master: BMUser;
|
|
6
|
+
oldMaster: BMUser;
|
|
7
|
+
};
|
|
8
|
+
export declare type audioOffWatcherValue = {
|
|
9
|
+
audioOff: boolean;
|
|
10
|
+
selfopenaudio: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default class Privileges {
|
|
2
|
+
private code;
|
|
3
|
+
constructor(code?: number);
|
|
4
|
+
/**
|
|
5
|
+
* 是否开启了权限控制
|
|
6
|
+
*/
|
|
7
|
+
enableAuth(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 是否可以发送音频
|
|
10
|
+
*/
|
|
11
|
+
canPushAudio(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否可以发送视频
|
|
14
|
+
*/
|
|
15
|
+
canPushVideo(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 是否可以使用互动白板
|
|
18
|
+
*/
|
|
19
|
+
canUseWhiteboard(): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default class ReportCollector {
|
|
2
|
+
/**
|
|
3
|
+
* 数据采集间隔 秒
|
|
4
|
+
*/
|
|
5
|
+
private sample;
|
|
6
|
+
private audioPackLost;
|
|
7
|
+
private videoPackLost;
|
|
8
|
+
private audioBytesBefore;
|
|
9
|
+
private videoBytesBefore;
|
|
10
|
+
private audioBytesNow;
|
|
11
|
+
private videoBytesNow;
|
|
12
|
+
private frameBefore;
|
|
13
|
+
private frameNow;
|
|
14
|
+
constructor(sample?: number);
|
|
15
|
+
addData(audioBytes: number, videoBytes: number, audioPacketsTotal: number, audioPacketsLost: number, videoPacketsTotal: number, videoPacketsLost: number, frame: number): void;
|
|
16
|
+
getAudioPacketLoss(): number;
|
|
17
|
+
getVideoPacketLoss(): number;
|
|
18
|
+
getAudioBitrate(): number;
|
|
19
|
+
getVideoBitrate(): number;
|
|
20
|
+
getFrameRate(): number;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReportThreshold } from '../type/type';
|
|
2
|
+
export default class Stutter {
|
|
3
|
+
private audioPacketLossStutter;
|
|
4
|
+
private videoPacketLossStutter;
|
|
5
|
+
private frameRateStutter;
|
|
6
|
+
private audioframeDelayStutter;
|
|
7
|
+
private videoframeDelayStutter;
|
|
8
|
+
private options;
|
|
9
|
+
private isPush;
|
|
10
|
+
constructor(options: ReportThreshold, isPush: boolean);
|
|
11
|
+
addFrameRate(frame: number): void;
|
|
12
|
+
addAudioLoss(packetTotal: number, packetLost: number): void;
|
|
13
|
+
addVideoLoss(packetTotal: number, packetLost: number): void;
|
|
14
|
+
addAudioFrameDelay(delay: number): void;
|
|
15
|
+
addVideoFrameDelay(delay: number): void;
|
|
16
|
+
judgeAudioStutter(): boolean;
|
|
17
|
+
judegVideoStutter(): boolean;
|
|
18
|
+
destroy(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): Promise<boolean>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ConnectErrorMessage, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
+
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
3
|
+
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
4
|
+
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
5
|
+
declare type Events = {
|
|
6
|
+
[RECEIVE_SUBSCRIBE_MESSAGE]: SubscribeMessage;
|
|
7
|
+
[USER_SORT_NUM_CHANGE]: null;
|
|
8
|
+
[HANDLE_STREAM_CONNECT_ERROR]: ConnectErrorMessage;
|
|
9
|
+
[RAISE_HAND]: RaiseHandInfo;
|
|
10
|
+
[UNSUBSCRIBE_STREAM]: SubscribeMessage;
|
|
11
|
+
[MANUAL_SUBSCRIPTION]: SubscribeMessage;
|
|
12
|
+
[CHANG_IS_GUEST]: ChangeIsGuest;
|
|
13
|
+
[BIND_ELEMENT]: SubscribeMessage;
|
|
14
|
+
[BIND_BIG_ELEMENT]: SubscribeMessage;
|
|
15
|
+
};
|
|
16
|
+
export declare const emitter: import("mitt").Emitter<Events>;
|
|
17
|
+
export declare const removeEmitter: () => void;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare function func(value: any): value is Function;
|
|
2
|
+
/**
|
|
3
|
+
* Check if value is an array.
|
|
4
|
+
*
|
|
5
|
+
* @param value
|
|
6
|
+
* @return
|
|
7
|
+
*/
|
|
8
|
+
export declare function array<T>(value: any): value is Array<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Check if value is an object.
|
|
11
|
+
*
|
|
12
|
+
* @param value
|
|
13
|
+
* @return
|
|
14
|
+
*/
|
|
15
|
+
export declare function object(value: any): value is Object;
|
|
16
|
+
/**
|
|
17
|
+
* Check if value is a string.
|
|
18
|
+
*
|
|
19
|
+
* @param value
|
|
20
|
+
* @return
|
|
21
|
+
*/
|
|
22
|
+
export declare function string(value: any): value is string;
|
|
23
|
+
/**
|
|
24
|
+
* Check if value is a number.
|
|
25
|
+
*
|
|
26
|
+
* @param value
|
|
27
|
+
* @return
|
|
28
|
+
*/
|
|
29
|
+
export declare function number(value: any): value is number;
|
|
30
|
+
/**
|
|
31
|
+
* Check if value is boolean.
|
|
32
|
+
*
|
|
33
|
+
* @param value
|
|
34
|
+
* @return
|
|
35
|
+
*/
|
|
36
|
+
export declare function boolean(value: any): value is boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Check if value is numeric.
|
|
39
|
+
*
|
|
40
|
+
* @param value
|
|
41
|
+
* @return
|
|
42
|
+
*/
|
|
43
|
+
export declare function numeric(value: any): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 判断是不是普通字面量对象
|
|
46
|
+
*
|
|
47
|
+
* @param {*} target
|
|
48
|
+
* @return {boolean}
|
|
49
|
+
*/
|
|
50
|
+
export declare function isPlainObject(target: any): target is Object;
|
|
51
|
+
/**
|
|
52
|
+
* 判断 value 是否在指定范围中
|
|
53
|
+
*
|
|
54
|
+
* @param value 待判断值
|
|
55
|
+
* @param min 范围左区间
|
|
56
|
+
* @param max 范围右区间
|
|
57
|
+
*/
|
|
58
|
+
export declare function range(value: number, min: number, max: number): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Check if value is ArrayBuffer.
|
|
61
|
+
*
|
|
62
|
+
* @param value
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
export declare function arrayBuffer(value: any): value is ArrayBuffer;
|
|
66
|
+
export declare function isVloudWebRTC(type: number): boolean;
|
|
67
|
+
export declare function isTencentWebRTC(type: number): boolean;
|
|
68
|
+
export declare function videoTrack(track: MediaStreamTrack): boolean;
|
|
69
|
+
export declare function audioTrack(track: MediaStreamTrack): boolean;
|
|
70
|
+
export declare function isSingleMode(type: number): boolean;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MsaterRes, ProbeServerRes, SigRes } from '../type/type';
|
|
2
|
+
/**
|
|
3
|
+
* 设置请求环境
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* @param e 环境
|
|
7
|
+
*/
|
|
8
|
+
export declare function setRequestEnv(e: string): void;
|
|
9
|
+
export declare function getURL(path: string): string;
|
|
10
|
+
export declare function getTokenAuthUrl(): string;
|
|
11
|
+
/**
|
|
12
|
+
* 发送 post 请求
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
* @param path fetch 路径
|
|
16
|
+
* @param data post 发送 data
|
|
17
|
+
* @returns 返回数据
|
|
18
|
+
*/
|
|
19
|
+
export declare function post(path: string, data: Object): Promise<any>;
|
|
20
|
+
/**
|
|
21
|
+
* 发送 get 请求
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
* @param path fetch 路径
|
|
25
|
+
* @param data get 发送 data
|
|
26
|
+
* @returns 返回数据
|
|
27
|
+
*/
|
|
28
|
+
export declare function get(path: string, data: Object): Promise<any>;
|
|
29
|
+
/**
|
|
30
|
+
* 获取 token
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
* @param sign
|
|
34
|
+
* @returns 返回数据
|
|
35
|
+
*/
|
|
36
|
+
export declare function checkSign(sign: string, roomId: string, userId: number): Promise<SigRes>;
|
|
37
|
+
/**
|
|
38
|
+
* 获取 Proxies
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
* @param MasterRes
|
|
42
|
+
* @returns 返回数据
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchMaster(master: string): Promise<MsaterRes>;
|
|
45
|
+
export declare function fetchProbeServers(): Promise<ProbeServerRes>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SingleRemoteStream } from "../type";
|
|
2
|
+
/**
|
|
3
|
+
* @name: roomUtils
|
|
4
|
+
* @author: yangliye
|
|
5
|
+
* @date: 2022-12-06 09:31
|
|
6
|
+
* @description:roomUtils
|
|
7
|
+
* @update: 2022-12-06 09:31
|
|
8
|
+
*/
|
|
9
|
+
export declare function isShareStream(remoteStream: SingleRemoteStream): boolean;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import BMUser from '../BMUser/BMUser';
|
|
2
|
+
import BMStreamModel from '../BMStream/BMStreamModel';
|
|
3
|
+
export declare const notGetTalkInterval: number;
|
|
4
|
+
/**
|
|
5
|
+
* 生成唯一 id
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
* @returns id
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateUUID(): string;
|
|
11
|
+
/**
|
|
12
|
+
* 将函数回调转换为 Promise
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
* @typeParam T 回调结果类型
|
|
16
|
+
* @typeParam This 函数执行上下文
|
|
17
|
+
* @param fn 回调函数
|
|
18
|
+
* @param args 函数执行参数
|
|
19
|
+
* @param ctx 函数执行上下文
|
|
20
|
+
* @param hasResolve 是否有成功回调
|
|
21
|
+
* @returns 回调结果
|
|
22
|
+
*/
|
|
23
|
+
export declare function callbackToPromise<T, This>(fn: any, args: any[], ctx: any, hasResolve?: boolean): Promise<T | void>;
|
|
24
|
+
/**
|
|
25
|
+
* 创建 AudioContext
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
* @returns AudioContext
|
|
29
|
+
*/
|
|
30
|
+
export declare function getAudioContext(): AudioContext;
|
|
31
|
+
/**
|
|
32
|
+
* 创建 AudioMeter
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
* @param audioContext
|
|
36
|
+
* @param clipLevel
|
|
37
|
+
* @param averaging
|
|
38
|
+
* @param clipLag
|
|
39
|
+
* @returns ScriptProcessorNode
|
|
40
|
+
*/
|
|
41
|
+
export declare function createAudioMeter(audioContext: AudioContext, clipLevel?: number, averaging?: number, clipLag?: number): ScriptProcessorNode;
|
|
42
|
+
/**
|
|
43
|
+
* 放置 AudioMeter
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
* @param stream
|
|
47
|
+
* @param mediaStream
|
|
48
|
+
*/
|
|
49
|
+
export declare function createVolumeMeter(stream: any, audioTrack: MediaStreamTrack): void;
|
|
50
|
+
/**
|
|
51
|
+
* 解析 vloud 流数据
|
|
52
|
+
*
|
|
53
|
+
* @internal
|
|
54
|
+
* @param streamDeviceOption
|
|
55
|
+
* @param streamCodecOption
|
|
56
|
+
* @returns 解析结果
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseVloudStreamOptions(streamDeviceOption: any, streamCodecOption: any): Object;
|
|
59
|
+
export declare function timestamp(): number;
|
|
60
|
+
export declare function resumeContext(): Promise<void>;
|
|
61
|
+
export declare function getEmptyVloudStats(): any;
|
|
62
|
+
export declare function timestampMillisecond(diffNTP?: number): number;
|
|
63
|
+
/**
|
|
64
|
+
* 处理时间戳
|
|
65
|
+
* @param {number} timeStamp
|
|
66
|
+
* @returns {string} 12:09
|
|
67
|
+
*/
|
|
68
|
+
export declare function handleTime(timeStamp: number): string;
|
|
69
|
+
export declare function sortStreamModelsOrUser<T extends BMUser | BMStreamModel>(list: T[]): T[];
|
|
70
|
+
/**
|
|
71
|
+
* 根据权限判断是不是普通参会者
|
|
72
|
+
* @param permission
|
|
73
|
+
*/
|
|
74
|
+
export declare function getIsCommonUser(permission: string): boolean;
|
|
75
|
+
export declare function getIsManager(permission: string): boolean;
|
|
76
|
+
export declare function getPermission(permission: string, p: string): boolean;
|