@hysc/meeting 2.6.63 → 2.6.65
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/EventHandler.d.ts +20 -0
- 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 +6 -6
- package/esm/index.js.map +2 -2
- package/esm/src/BMStream/BMStreamModel.d.ts +6 -7
- package/esm/src/BMStream/BMStreamModelVM.d.ts +1 -1
- package/esm/src/EventHandler.d.ts +20 -0
- package/esm/src/constants.d.ts +16 -1
- package/esm/src/util/sortUtils.d.ts +10 -10
- 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/EventHandler.d.ts +20 -0
- 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 +6 -6
- package/umd/src/BMStream/BMStreamModel.d.ts +6 -7
- package/umd/src/BMStream/BMStreamModelVM.d.ts +1 -1
- package/umd/src/EventHandler.d.ts +20 -0
- package/umd/src/constants.d.ts +16 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: EventHandler
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-04-04 10:14
|
|
5
|
+
* @description:EventHandler
|
|
6
|
+
* @update: 2023-04-04 10:14
|
|
7
|
+
*/
|
|
8
|
+
import BMUserVM from "./BMUser/BMUserVM";
|
|
9
|
+
import BMRoom from "./BMRoom/BMRoom";
|
|
10
|
+
import BMStreamModelVM from "./BMStream/BMStreamModelVM";
|
|
11
|
+
import BCClient from "@hysc/core";
|
|
12
|
+
import BMChatVM from "./BMChat/BMChatVM";
|
|
13
|
+
import BoomCore from "@hysc/core";
|
|
14
|
+
import BCUser from "@hysc/core/esm/BoomAdapter/User/User";
|
|
15
|
+
import BMUser from "./BMUser/BMUser";
|
|
16
|
+
export declare function handleParticipantLeft(data: any, userVM: BMUserVM, bmRoom: BMRoom, observes: any, bmStreamVm: BMStreamModelVM, boomCore: BCClient, chatVM: BMChatVM): void;
|
|
17
|
+
export declare function handleParticipantJoin(data: any, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, boomCore: BoomCore, chatVM: BMChatVM, observes: any): Promise<void>;
|
|
18
|
+
export declare function handleRoomSync(data: any, bmRoom: BMRoom, userVm: BMUserVM, bmStreamVm: BMStreamModelVM): Promise<void>;
|
|
19
|
+
export declare function updateBMUser(allUsers: Map<string, BCUser>, bmUser: BMUser, userVm: BMUserVM): void;
|
|
20
|
+
export declare function handleInitRoomInfo(data: any, bmRoom: BMRoom): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (target: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (target: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (target: any, defaultValue?: number): number;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Data, ValueHolder } from './type';
|
|
2
|
+
export interface ArrayApi {
|
|
3
|
+
each<T>(array: T[], callback: (item: T, index: number) => boolean | void, reversed?: boolean): void;
|
|
4
|
+
push<T>(array: T[], target: T | T[]): void;
|
|
5
|
+
unshift<T>(array: T[], target: T | T[]): void;
|
|
6
|
+
indexOf<T>(array: T[], target: T, strict?: boolean): number;
|
|
7
|
+
last<T>(array: T[]): T | void;
|
|
8
|
+
pop<T>(array: T[]): T | void;
|
|
9
|
+
remove<T>(array: T[], target: T, strict?: boolean): number;
|
|
10
|
+
has<T>(array: T[], target: T, strict?: boolean): boolean;
|
|
11
|
+
toArray<T>(array: T[] | ArrayLike<T>): T[];
|
|
12
|
+
toObject(array: any[], key?: string | null, value?: any): object;
|
|
13
|
+
join(array: string[], separator: string): string;
|
|
14
|
+
falsy(array: any): boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface IsApi {
|
|
17
|
+
func(value: any): boolean;
|
|
18
|
+
array(value: any): boolean;
|
|
19
|
+
object(value: any): boolean;
|
|
20
|
+
string(value: any): boolean;
|
|
21
|
+
number(value: any): boolean;
|
|
22
|
+
boolean(value: any): boolean;
|
|
23
|
+
numeric(value: any): boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface LoggerApi {
|
|
26
|
+
DEBUG: number;
|
|
27
|
+
INFO: number;
|
|
28
|
+
WARN: number;
|
|
29
|
+
ERROR: number;
|
|
30
|
+
FATAL: number;
|
|
31
|
+
debug(msg: string, tag?: string): void;
|
|
32
|
+
info(msg: string, tag?: string): void;
|
|
33
|
+
warn(msg: string, tag?: string): void;
|
|
34
|
+
error(msg: string, tag?: string): void;
|
|
35
|
+
fatal(msg: string, tag?: string): void;
|
|
36
|
+
}
|
|
37
|
+
export interface ObjectApi {
|
|
38
|
+
keys(object: Data): string[];
|
|
39
|
+
sort(object: Data, desc?: boolean): string[];
|
|
40
|
+
each(object: Data, callback: (value: any, key: string) => boolean | void): void;
|
|
41
|
+
clear(object: Data): void;
|
|
42
|
+
extend(original: Data, object: Data): Data;
|
|
43
|
+
merge(object1: Data | void, object2: Data | void): Data | void;
|
|
44
|
+
copy(object: any, deep?: boolean): any;
|
|
45
|
+
get(object: any, keypath: string): ValueHolder | undefined;
|
|
46
|
+
set(object: Data, keypath: string, value: any, autofill?: boolean): void;
|
|
47
|
+
has(object: Data, key: string | number): boolean;
|
|
48
|
+
falsy(object: any): boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface StringApi {
|
|
51
|
+
camelize(str: string): string;
|
|
52
|
+
hyphenate(str: string): string;
|
|
53
|
+
capitalize(str: string): string;
|
|
54
|
+
trim(str: any): string;
|
|
55
|
+
slice(str: string, start: number, end?: number): string;
|
|
56
|
+
indexOf(str: string, part: string, start?: number): number;
|
|
57
|
+
lastIndexOf(str: string, part: string, end?: number): number;
|
|
58
|
+
startsWith(str: string, part: string): boolean;
|
|
59
|
+
endsWith(str: string, part: string): boolean;
|
|
60
|
+
charAt(str: string, index?: number): string;
|
|
61
|
+
codeAt(str: string, index?: number): number;
|
|
62
|
+
upper(str: string): string;
|
|
63
|
+
lower(str: string): string;
|
|
64
|
+
has(str: string, part: string): boolean;
|
|
65
|
+
falsy(str: any): boolean;
|
|
66
|
+
}
|
|
@@ -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>;
|