@hysc/meeting 3.0.27 → 3.0.29
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 +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 +4 -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/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 +2 -2
- package/umd/src/BMRoom/BMRoom.d.ts +4 -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
|
@@ -1,45 +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>;
|
|
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>;
|
|
@@ -1,9 +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;
|
|
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;
|
|
@@ -1,10 +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;
|
|
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;
|
package/esm/src/util/util.d.ts
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
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 getIsMaster(permission: string): boolean;
|
|
77
|
-
export declare function getPermission(permission: string, p: string): boolean;
|
|
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 getIsMaster(permission: string): boolean;
|
|
77
|
+
export declare function getPermission(permission: string, p: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.29",
|
|
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": "3.0.
|
|
17
|
+
"@hysc/core": "3.0.26",
|
|
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.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@hysc/core": "3.0.
|
|
26
|
+
"@hysc/core": "3.0.26"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.6"
|