@hysc/meeting 3.0.27 → 3.0.28
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-core/src/BoomCore/BCClient/clientEventType.d.ts +418 -0
- package/esm/boom-meeting/src/BMChat/BMMessageInfo.d.ts +4 -0
- package/esm/boom-meeting/src/BMRoom/RoomEvent.d.ts +1 -0
- package/esm/boom-meeting/src/BMStream/BMSpeaker.d.ts +2 -2
- package/esm/boom-meeting/src/BMStream/BMStreamModel.d.ts +27 -6
- package/esm/boom-meeting/src/bjy-common/function/debounce.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/isUndef.d.ts +1 -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/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/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/browser.d.ts +6 -0
- package/esm/boom-meeting/src/bjy-common/util/holder.d.ts +6 -0
- package/esm/boom-meeting/src/bjy-common/util/network.d.ts +4 -0
- package/esm/boom-meeting/src/bjy-common/util/os.d.ts +14 -0
- package/esm/boom-meeting/src/error/errorMap.d.ts +70 -0
- package/esm/boom-meeting/src/type/customStats.d.ts +119 -0
- package/esm/boom-meeting/src/type/index.d.ts +9 -0
- package/esm/boom-meeting/src/type/stream.d.ts +15 -0
- package/esm/boom-meeting/src/type/user.d.ts +9 -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/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/sortUtils.d.ts +10 -0
- package/esm/boom-meeting/src/util/util.d.ts +1 -0
- package/esm/index.js +2 -2
- package/esm/index.js.map +3 -3
- package/esm/src/BMChat/BMMessageInfo.d.ts +31 -31
- package/esm/src/BMRoom/BMRoom.d.ts +3 -3
- package/esm/src/BMRoom/RoomEvent.d.ts +1 -1
- package/esm/src/BMRoom/attachEvents.d.ts +7 -2
- package/esm/src/BMStream/BMSpeaker.d.ts +44 -44
- package/esm/src/BMStream/BMStreamModel.d.ts +269 -269
- package/esm/src/BMStream/BMStreamModelVM.d.ts +2 -2
- package/esm/src/BMStream/getHTMLMediaStreamOptions.d.ts +35 -35
- package/esm/src/EventHandler.d.ts +20 -0
- package/esm/src/bjy-common/function/debounce.d.ts +9 -9
- package/esm/src/bjy-common/function/execute.d.ts +9 -9
- package/esm/src/bjy-common/function/isDef.d.ts +1 -1
- package/esm/src/bjy-common/function/isNative.d.ts +1 -1
- package/esm/src/bjy-common/function/isUndef.d.ts +1 -1
- package/esm/src/bjy-common/function/nextTick.d.ts +2 -2
- package/esm/src/bjy-common/function/throttling.d.ts +9 -9
- package/esm/src/bjy-common/function/toNumber.d.ts +1 -1
- package/esm/src/bjy-common/function/toString.d.ts +1 -1
- package/esm/src/bjy-common/type/api.d.ts +66 -66
- package/esm/src/bjy-common/type/options.d.ts +7 -7
- package/esm/src/bjy-common/type/type.d.ts +90 -90
- package/esm/src/bjy-common/util/CustomEvent.d.ts +30 -30
- package/esm/src/bjy-common/util/Emitter.d.ts +57 -57
- package/esm/src/bjy-common/util/NextTask.d.ts +28 -28
- package/esm/src/bjy-common/util/Sleep.d.ts +14 -14
- package/esm/src/bjy-common/util/Timer.d.ts +13 -13
- package/esm/src/bjy-common/util/array.d.ts +96 -96
- package/esm/src/bjy-common/util/browser.d.ts +6 -6
- package/esm/src/bjy-common/util/constant.d.ts +50 -50
- package/esm/src/bjy-common/util/holder.d.ts +6 -6
- package/esm/src/bjy-common/util/is.d.ts +49 -49
- package/esm/src/bjy-common/util/keypath.d.ts +41 -41
- package/esm/src/bjy-common/util/logger.d.ts +42 -42
- package/esm/src/bjy-common/util/network.d.ts +4 -4
- package/esm/src/bjy-common/util/object.d.ts +83 -83
- package/esm/src/bjy-common/util/os.d.ts +14 -14
- package/esm/src/bjy-common/util/string.d.ts +102 -102
- package/esm/src/error/errorMap.d.ts +70 -70
- package/esm/src/type/customStats.d.ts +119 -119
- package/esm/src/type/index.d.ts +9 -9
- package/esm/src/type/stream.d.ts +15 -15
- package/esm/src/type/user.d.ts +9 -9
- package/esm/src/util/PackLoss.d.ts +7 -7
- package/esm/src/util/Privileges.d.ts +20 -20
- package/esm/src/util/ReportCollector.d.ts +22 -22
- package/esm/src/util/Stutter.d.ts +19 -19
- package/esm/src/util/base64.d.ts +4 -4
- package/esm/src/util/checkPermissions.d.ts +1 -1
- package/esm/src/util/checkSystemRequirements.d.ts +1 -1
- package/esm/src/util/devices.d.ts +2 -2
- package/esm/src/util/formatUserId.d.ts +2 -2
- package/esm/src/util/is.d.ts +70 -70
- package/esm/src/util/peerToPeerProbe.d.ts +9 -9
- package/esm/src/util/request.d.ts +45 -45
- package/esm/src/util/roomUtils.d.ts +9 -9
- package/esm/src/util/sortUtils.d.ts +10 -10
- package/esm/src/util/util.d.ts +77 -77
- package/package.json +3 -3
- package/umd/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +418 -0
- package/umd/boom-meeting/src/BMChat/BMMessageInfo.d.ts +4 -0
- package/umd/boom-meeting/src/BMRoom/RoomEvent.d.ts +1 -0
- package/umd/boom-meeting/src/BMStream/BMSpeaker.d.ts +2 -2
- package/umd/boom-meeting/src/BMStream/BMStreamModel.d.ts +27 -6
- package/umd/boom-meeting/src/bjy-common/function/debounce.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/isUndef.d.ts +1 -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/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/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/browser.d.ts +6 -0
- package/umd/boom-meeting/src/bjy-common/util/holder.d.ts +6 -0
- package/umd/boom-meeting/src/bjy-common/util/network.d.ts +4 -0
- package/umd/boom-meeting/src/bjy-common/util/os.d.ts +14 -0
- package/umd/boom-meeting/src/error/errorMap.d.ts +70 -0
- package/umd/boom-meeting/src/type/customStats.d.ts +119 -0
- package/umd/boom-meeting/src/type/index.d.ts +9 -0
- package/umd/boom-meeting/src/type/stream.d.ts +15 -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/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/sortUtils.d.ts +10 -0
- package/umd/boom-meeting/src/util/util.d.ts +1 -0
- package/umd/index.js +2 -2
- package/umd/src/BMRoom/BMRoom.d.ts +3 -3
- package/umd/src/BMRoom/attachEvents.d.ts +7 -2
- package/umd/src/BMStream/BMStreamModelVM.d.ts +2 -2
- package/umd/src/EventHandler.d.ts +20 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare type Data = Record<string, any>;
|
|
2
|
+
export declare type ThisTask<This> = (this: This) => void;
|
|
3
|
+
export declare type ThisListener<This> = (this: This, event: CustomEventInterface, data?: Data) => false | void;
|
|
4
|
+
export declare type Listener = (event: CustomEventInterface, data?: Data) => false | void;
|
|
5
|
+
export declare type NativeListener = (event: CustomEventInterface | Event) => false | void;
|
|
6
|
+
export declare type ValueHolder = {
|
|
7
|
+
keypath?: string;
|
|
8
|
+
value: any;
|
|
9
|
+
};
|
|
10
|
+
export declare type Task = {
|
|
11
|
+
fn: Function;
|
|
12
|
+
ctx?: any;
|
|
13
|
+
};
|
|
14
|
+
export interface CustomEventInterface {
|
|
15
|
+
type: string;
|
|
16
|
+
phase: number;
|
|
17
|
+
ns?: string;
|
|
18
|
+
target?: any;
|
|
19
|
+
originalEvent?: CustomEventInterface | Event;
|
|
20
|
+
isPrevented?: true;
|
|
21
|
+
isStoped?: true;
|
|
22
|
+
listener?: Function;
|
|
23
|
+
/**
|
|
24
|
+
* 阻止事件的默认行为
|
|
25
|
+
*/
|
|
26
|
+
preventDefault(): this;
|
|
27
|
+
/**
|
|
28
|
+
* 停止事件广播
|
|
29
|
+
*/
|
|
30
|
+
stopPropagation(): this;
|
|
31
|
+
prevent(): this;
|
|
32
|
+
stop(): this;
|
|
33
|
+
}
|
|
34
|
+
export interface OS {
|
|
35
|
+
/**
|
|
36
|
+
* os 平台
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* os 版本号
|
|
41
|
+
*/
|
|
42
|
+
version: string;
|
|
43
|
+
/**
|
|
44
|
+
* 是否是 ios 系统
|
|
45
|
+
*/
|
|
46
|
+
ios?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 系统判断
|
|
49
|
+
*/
|
|
50
|
+
iphone?: boolean;
|
|
51
|
+
ipad?: boolean;
|
|
52
|
+
itouch?: boolean;
|
|
53
|
+
android?: boolean;
|
|
54
|
+
wp?: boolean;
|
|
55
|
+
windows?: boolean;
|
|
56
|
+
linux?: boolean;
|
|
57
|
+
mac?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface Browser {
|
|
60
|
+
/**
|
|
61
|
+
* browser 平台
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
/**
|
|
65
|
+
* browser 版本号
|
|
66
|
+
*/
|
|
67
|
+
version: string;
|
|
68
|
+
/**
|
|
69
|
+
* 浏览器判断
|
|
70
|
+
*/
|
|
71
|
+
alipay?: boolean;
|
|
72
|
+
wechat?: boolean;
|
|
73
|
+
baiduApp?: boolean;
|
|
74
|
+
baidu?: boolean;
|
|
75
|
+
uc?: boolean;
|
|
76
|
+
qq?: boolean;
|
|
77
|
+
qqApp?: boolean;
|
|
78
|
+
ie?: boolean;
|
|
79
|
+
edge?: boolean;
|
|
80
|
+
chrome?: boolean;
|
|
81
|
+
firefox?: boolean;
|
|
82
|
+
opera?: boolean;
|
|
83
|
+
safari?: boolean;
|
|
84
|
+
}
|
|
85
|
+
export interface Network {
|
|
86
|
+
/**
|
|
87
|
+
* 网络类型
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Task } from '../type/type';
|
|
2
|
+
export default class NextTask {
|
|
3
|
+
/**
|
|
4
|
+
* 全局单例
|
|
5
|
+
*/
|
|
6
|
+
static shared(): NextTask;
|
|
7
|
+
/**
|
|
8
|
+
* 异步队列
|
|
9
|
+
*/
|
|
10
|
+
tasks: Task[];
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* 在队尾添加异步任务
|
|
14
|
+
*/
|
|
15
|
+
append(func: Function, context?: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* 在队首添加异步任务
|
|
18
|
+
*/
|
|
19
|
+
prepend(func: Function, context?: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* 清空异步队列
|
|
22
|
+
*/
|
|
23
|
+
clear(): void;
|
|
24
|
+
/**
|
|
25
|
+
* 立即执行异步任务,并清空队列
|
|
26
|
+
*/
|
|
27
|
+
run(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 等待操作
|
|
3
|
+
* @author zhaogaoxing
|
|
4
|
+
*/
|
|
5
|
+
export default class Sleep {
|
|
6
|
+
private timeout;
|
|
7
|
+
private timer;
|
|
8
|
+
private resolve;
|
|
9
|
+
private reject;
|
|
10
|
+
private startTime;
|
|
11
|
+
constructor(timeout: number);
|
|
12
|
+
then(res: (value?: number) => void, rej: (value?: number) => void): void;
|
|
13
|
+
stop(reslove?: boolean): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default class Timer {
|
|
2
|
+
private task;
|
|
3
|
+
private timeout;
|
|
4
|
+
private interval;
|
|
5
|
+
private timer;
|
|
6
|
+
private count;
|
|
7
|
+
constructor(task: Function, timeout: number, interval: number);
|
|
8
|
+
start(): void;
|
|
9
|
+
stop(): void;
|
|
10
|
+
updateInterval(interval: number): void;
|
|
11
|
+
isStarted(): boolean;
|
|
12
|
+
destroy(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const BoomErrorMessage: {
|
|
2
|
+
1000: {
|
|
3
|
+
name: string;
|
|
4
|
+
message: string;
|
|
5
|
+
};
|
|
6
|
+
1001: {
|
|
7
|
+
name: string;
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
1002: {
|
|
11
|
+
name: string;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
1003: {
|
|
15
|
+
name: string;
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
18
|
+
4000: {
|
|
19
|
+
name: string;
|
|
20
|
+
message: string;
|
|
21
|
+
};
|
|
22
|
+
4001: {
|
|
23
|
+
name: string;
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
4002: {
|
|
27
|
+
name: string;
|
|
28
|
+
message: string;
|
|
29
|
+
};
|
|
30
|
+
4003: {
|
|
31
|
+
name: string;
|
|
32
|
+
message: string;
|
|
33
|
+
};
|
|
34
|
+
4004: {
|
|
35
|
+
name: string;
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
4005: {
|
|
39
|
+
name: string;
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
4006: {
|
|
43
|
+
name: string;
|
|
44
|
+
message: string;
|
|
45
|
+
};
|
|
46
|
+
4007: {
|
|
47
|
+
name: string;
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
4008: {
|
|
51
|
+
name: string;
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
5000: {
|
|
55
|
+
name: string;
|
|
56
|
+
message: string;
|
|
57
|
+
};
|
|
58
|
+
5001: {
|
|
59
|
+
name: string;
|
|
60
|
+
message: string;
|
|
61
|
+
};
|
|
62
|
+
9000: {
|
|
63
|
+
name: string;
|
|
64
|
+
message: string;
|
|
65
|
+
};
|
|
66
|
+
1010: {
|
|
67
|
+
name: string;
|
|
68
|
+
message: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
raiseHandEnable: number;
|
|
117
|
+
joinCueVoice: number;
|
|
118
|
+
}
|
|
119
|
+
export declare type PartialCustomStats = Partial<CustomStats>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 '@hysc/core/esm/BoomAdapter/singleMode/stream/LocalStream';
|
|
9
|
+
import RemoteStream from '@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream';
|
|
10
|
+
import { StreamDeviceOption } from '@hysc/core/esm/BoomAdapter/type/BRTCStream';
|
|
11
|
+
export { SubscribeOptions } from '@hysc/core/esm/BoomAdapter/type/BRTCClient';
|
|
12
|
+
export declare type SingleLocalStream = LocalStream;
|
|
13
|
+
export declare type SingleRemoteStream = RemoteStream;
|
|
14
|
+
export declare type SingleStream = SingleLocalStream | SingleRemoteStream;
|
|
15
|
+
export declare type SingleStreamDeviceOption = StreamDeviceOption;
|
|
@@ -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,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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: sortUtils
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-02-22 18:17
|
|
5
|
+
* @description:sortUtils
|
|
6
|
+
* @update: 2023-02-22 18:17
|
|
7
|
+
*/
|
|
8
|
+
import BMUser from "../BMUser/BMUser";
|
|
9
|
+
import { MODEL_SORT_ENUM_STAND, MODEL_SORT_ENUM_ZY } from "../constants";
|
|
10
|
+
export declare function getSortNum(user: BMUser): MODEL_SORT_ENUM_ZY | MODEL_SORT_ENUM_STAND;
|
|
@@ -73,4 +73,5 @@ export declare function sortStreamModelsOrUser<T extends BMUser | BMStreamModel>
|
|
|
73
73
|
*/
|
|
74
74
|
export declare function getIsCommonUser(permission: string): boolean;
|
|
75
75
|
export declare function getIsManager(permission: string): boolean;
|
|
76
|
+
export declare function getIsMaster(permission: string): boolean;
|
|
76
77
|
export declare function getPermission(permission: string, p: string): boolean;
|