@hysc/meeting 0.4.0 → 0.6.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 -24
- package/esm/BMRoom/BMRoom.d.ts +3 -3
- package/esm/BMRoom/BMRoomVM.d.ts +2 -1
- package/esm/BMRoom/RoomEvent.d.ts +1 -1
- package/esm/BMRoom/attachEvents.d.ts +27 -27
- package/esm/BMStream/BMStreamModel.d.ts +1 -1
- package/esm/BMStream/BMStreamModelVM.d.ts +4 -4
- package/esm/BMUser/BMUser.d.ts +147 -147
- package/esm/BMUser/BMUserVM.d.ts +137 -137
- package/esm/bjy-common/function/debounce.d.ts +9 -9
- package/esm/bjy-common/function/isDef.d.ts +1 -1
- package/esm/bjy-common/function/isUndef.d.ts +1 -1
- package/esm/bjy-common/function/throttling.d.ts +9 -9
- package/esm/bjy-common/function/toNumber.d.ts +1 -1
- package/esm/bjy-common/type/api.d.ts +66 -66
- package/esm/bjy-common/type/options.d.ts +7 -7
- package/esm/bjy-common/type/type.d.ts +90 -90
- package/esm/bjy-common/util/NextTask.d.ts +28 -28
- package/esm/bjy-common/util/Sleep.d.ts +14 -14
- package/esm/bjy-common/util/Timer.d.ts +13 -13
- package/esm/bjy-common/util/browser.d.ts +6 -6
- package/esm/bjy-common/util/holder.d.ts +6 -6
- package/esm/bjy-common/util/network.d.ts +4 -4
- package/esm/bjy-common/util/os.d.ts +14 -14
- package/esm/error/errorMap.d.ts +70 -70
- package/esm/index.js +63568 -17
- package/esm/index.js.map +3 -3
- package/esm/type/customStats.d.ts +117 -117
- package/esm/type/index.d.ts +9 -9
- package/esm/type/stream.d.ts +17 -17
- package/esm/type/user.d.ts +9 -9
- package/esm/util/PackLoss.d.ts +7 -7
- package/esm/util/Privileges.d.ts +20 -20
- package/esm/util/ReportCollector.d.ts +22 -22
- package/esm/util/Stutter.d.ts +19 -19
- package/esm/util/base64.d.ts +4 -4
- package/esm/util/checkPermissions.d.ts +1 -1
- package/esm/util/checkSystemRequirements.d.ts +1 -1
- package/esm/util/devices.d.ts +2 -2
- package/esm/util/formatUserId.d.ts +2 -2
- package/esm/util/is.d.ts +70 -70
- package/esm/util/peerToPeerProbe.d.ts +9 -9
- package/esm/util/request.d.ts +45 -45
- package/package.json +5 -4
- package/umd/BMRoom/BMRoom.d.ts +3 -3
- package/umd/BMRoom/BMRoomVM.d.ts +2 -1
- package/{esm/boom-meeting/src → umd}/BMRoom/RoomEvent.d.ts +0 -0
- package/umd/BMStream/BMStreamModelVM.d.ts +4 -4
- package/{esm/boom-meeting/src → umd}/bjy-common/function/debounce.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/function/isDef.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/function/isUndef.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/function/throttling.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/function/toNumber.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/type/api.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/type/options.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/type/type.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/util/NextTask.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/util/Sleep.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/util/Timer.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/util/browser.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/util/holder.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/util/network.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/bjy-common/util/os.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/error/errorMap.d.ts +0 -0
- package/umd/index.js +7 -7
- package/{esm/boom-meeting/src → umd}/type/customStats.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/type/index.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/type/stream.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/type/user.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/PackLoss.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/Privileges.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/ReportCollector.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/Stutter.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/base64.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/checkPermissions.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/checkSystemRequirements.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/devices.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/formatUserId.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/is.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/peerToPeerProbe.d.ts +0 -0
- package/{esm/boom-meeting/src → umd}/util/request.d.ts +0 -0
- package/esm/boom-meeting/src/BMRoom/BMRoom.d.ts +0 -622
- package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +0 -189
- package/esm/boom-meeting/src/BMRoom/BMRoomVM.d.ts +0 -283
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +0 -233
- package/esm/boom-meeting/src/error/RTCError.d.ts +0 -20
- package/esm/boom-meeting/src/error/errorType.d.ts +0 -96
- package/esm/boom-meeting/src/index.d.ts +0 -2
- package/esm/boom-meeting/src/logger/logger.d.ts +0 -86
- package/esm/boom-meeting/src/types/customStats.d.ts +0 -103
- package/esm/boom-meeting/src/types/index.d.ts +0 -9
- package/esm/boom-meeting/src/types/stream.d.ts +0 -17
- package/esm/boom-meeting/src/types/user.d.ts +0 -11
- package/esm/boom-meeting/src/util/Pqueue.d.ts +0 -61
- package/esm/boom-meeting/src/util/constant.d.ts +0 -67
- package/esm/types/customStats.d.ts +0 -103
- package/esm/types/index.d.ts +0 -9
- package/esm/types/stream.d.ts +0 -17
- package/esm/types/user.d.ts +0 -11
- package/esm/utils/ErrorTypes.d.ts +0 -97
- package/umd/BMChat/BMChatVM.d.ts +0 -24
- package/umd/BMRoom/attachEvents.d.ts +0 -27
- package/umd/BMUser/BMUser.d.ts +0 -147
- package/umd/BMUser/BMUserVM.d.ts +0 -137
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +0 -622
- package/umd/boom-meeting/src/BMRoom/BMRoomVM.d.ts +0 -283
- package/umd/boom-meeting/src/BMRoom/RoomEvent.d.ts +0 -1
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +0 -233
- package/umd/boom-meeting/src/bjy-common/function/debounce.d.ts +0 -9
- package/umd/boom-meeting/src/bjy-common/function/isDef.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/function/isUndef.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/function/throttling.d.ts +0 -9
- package/umd/boom-meeting/src/bjy-common/function/toNumber.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/type/api.d.ts +0 -66
- package/umd/boom-meeting/src/bjy-common/type/options.d.ts +0 -7
- package/umd/boom-meeting/src/bjy-common/type/type.d.ts +0 -90
- package/umd/boom-meeting/src/bjy-common/util/NextTask.d.ts +0 -28
- package/umd/boom-meeting/src/bjy-common/util/Sleep.d.ts +0 -14
- package/umd/boom-meeting/src/bjy-common/util/Timer.d.ts +0 -13
- package/umd/boom-meeting/src/bjy-common/util/browser.d.ts +0 -6
- package/umd/boom-meeting/src/bjy-common/util/holder.d.ts +0 -6
- package/umd/boom-meeting/src/bjy-common/util/network.d.ts +0 -4
- package/umd/boom-meeting/src/bjy-common/util/os.d.ts +0 -14
- package/umd/boom-meeting/src/error/errorMap.d.ts +0 -70
- package/umd/boom-meeting/src/type/customStats.d.ts +0 -117
- package/umd/boom-meeting/src/type/index.d.ts +0 -9
- package/umd/boom-meeting/src/type/stream.d.ts +0 -17
- package/umd/boom-meeting/src/type/user.d.ts +0 -9
- package/umd/boom-meeting/src/util/PackLoss.d.ts +0 -7
- package/umd/boom-meeting/src/util/Privileges.d.ts +0 -20
- package/umd/boom-meeting/src/util/ReportCollector.d.ts +0 -22
- package/umd/boom-meeting/src/util/Stutter.d.ts +0 -19
- package/umd/boom-meeting/src/util/base64.d.ts +0 -4
- package/umd/boom-meeting/src/util/checkPermissions.d.ts +0 -1
- package/umd/boom-meeting/src/util/checkSystemRequirements.d.ts +0 -1
- package/umd/boom-meeting/src/util/devices.d.ts +0 -2
- package/umd/boom-meeting/src/util/formatUserId.d.ts +0 -2
- package/umd/boom-meeting/src/util/is.d.ts +0 -70
- package/umd/boom-meeting/src/util/peerToPeerProbe.d.ts +0 -9
- package/umd/boom-meeting/src/util/request.d.ts +0 -45
- package/umd/utils/ErrorTypes.d.ts +0 -97
package/esm/util/request.d.ts
CHANGED
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "boom meeting",
|
|
5
5
|
"main": "umd/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -14,15 +14,16 @@
|
|
|
14
14
|
"author": "yangliye",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@hysc/core": "0.
|
|
17
|
+
"@hysc/core": "0.5.0",
|
|
18
18
|
"lodash-es": "^4.17.21",
|
|
19
19
|
"mitt": "^3.0.0",
|
|
20
20
|
"p-queue": "git+ssh://git@git.baijiashilian.com:LLL/frondend/p-queue.git#master",
|
|
21
21
|
"rxjs": "^7.5.5",
|
|
22
|
-
"typescript": "^4.6.3"
|
|
22
|
+
"typescript": "^4.6.3",
|
|
23
|
+
"@hysc/utils": "0.1.0"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
|
-
"@hysc/core": "0.
|
|
26
|
+
"@hysc/core": "0.5.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@types/lodash-es": "^4.17.6"
|
package/umd/BMRoom/BMRoom.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import BoomCore from '@
|
|
1
|
+
import BoomCore from '@hysc/core';
|
|
2
2
|
import { MessageType } from './attachEvents';
|
|
3
3
|
import BMRoomVM, { AudioProfileInfo } from "./BMRoomVM";
|
|
4
4
|
import BMUserVM from '../BMUser/BMUserVM';
|
|
5
5
|
import { SingleLocalStream, SingleRemoteStream, SingleRemoteStreamOption, SubscribeOptions } from '../type';
|
|
6
6
|
import BMChatVM from '../BMChat/BMChatVM';
|
|
7
7
|
import BMStreamModelVM from '../BMStream/BMStreamModelVM';
|
|
8
|
-
import { Device, VideoProfile } from '@
|
|
8
|
+
import { Device, VideoProfile } from '@hysc/core/esm/BoomAdapter/type/value';
|
|
9
9
|
import BMRoomInfo from './BMRoomInfo';
|
|
10
10
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
11
11
|
import BMStreamModel from '../BMStream/BMStreamModel';
|
|
@@ -265,7 +265,7 @@ export default class BMRoom {
|
|
|
265
265
|
}
|
|
266
266
|
let remoteStream = boomMeeting.createRemoteStream(remoteStreamParams)
|
|
267
267
|
*/
|
|
268
|
-
createSingleRemoteStream(options: SingleRemoteStreamOption): import("@
|
|
268
|
+
createSingleRemoteStream(options: SingleRemoteStreamOption): import("@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default;
|
|
269
269
|
/**
|
|
270
270
|
* 枚举视频输入设备
|
|
271
271
|
*
|
package/umd/BMRoom/BMRoomVM.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import BoomCore from "@
|
|
1
|
+
import BoomCore from "@hysc/core";
|
|
2
2
|
import BMRoom from "./BMRoom";
|
|
3
3
|
import BMUserVM from "../BMUser/BMUserVM";
|
|
4
4
|
import BMRoomInfo from "./BMRoomInfo";
|
|
@@ -141,6 +141,7 @@ export default class BMRoomVM {
|
|
|
141
141
|
/**
|
|
142
142
|
* 更新自定义属性 updateCustomStats
|
|
143
143
|
* @param stats
|
|
144
|
+
* @param {boolean} replace 是否替换原数据
|
|
144
145
|
*/
|
|
145
146
|
private updateCustomStats;
|
|
146
147
|
/**
|
|
File without changes
|
|
@@ -19,9 +19,9 @@ import BMUser from '../BMUser/BMUser';
|
|
|
19
19
|
import { SingleLocalStream, SingleRemoteStream, SingleStream } from '../type';
|
|
20
20
|
import BMRoom from '../BMRoom/BMRoom';
|
|
21
21
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
22
|
-
import { Device } from '@
|
|
22
|
+
import { Device } from '@hysc/core/esm/BoomAdapter/type/value';
|
|
23
23
|
import BMSpeaker from './BMSpeaker';
|
|
24
|
-
import { ShareMediaOptions } from "@
|
|
24
|
+
import { ShareMediaOptions } from "@hysc/core/esm/BoomCore/BCClient/BCClient";
|
|
25
25
|
import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from "./getHTMLMediaStreamOptions";
|
|
26
26
|
/**
|
|
27
27
|
* 全量的brtc流记录,把所有brtc用户推的流都做记录
|
|
@@ -31,8 +31,8 @@ import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from "./getHTML
|
|
|
31
31
|
* 当用户进来的时候,去查看这个流对象,如果流存在,就给这个人添加流
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
export declare const BRTCStreamMap: Map<string, import("@
|
|
35
|
-
export declare const BRTCShareStreamMap: Map<string, import("@
|
|
34
|
+
export declare const BRTCStreamMap: Map<string, import("@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default>;
|
|
35
|
+
export declare const BRTCShareStreamMap: Map<string, import("@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default>;
|
|
36
36
|
export default class BMStreamModelVM {
|
|
37
37
|
streamModels: Map<string, BMStreamModel>;
|
|
38
38
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|