@hysc/meeting 3.0.30 → 3.0.32
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-meeting/src/BMChat/BMChatVM.d.ts +2 -1
- package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
- package/esm/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
- package/esm/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
- package/esm/boom-meeting/src/BMStream/sortStream.d.ts +27 -0
- package/esm/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
- package/esm/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
- package/esm/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
- package/esm/boom-meeting/src/constants.d.ts +38 -8
- package/esm/boom-meeting/src/error/RTCError.d.ts +20 -0
- package/esm/boom-meeting/src/error/errorType.d.ts +96 -0
- package/esm/boom-meeting/src/handleEvent/attachEvents.d.ts +35 -0
- package/esm/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +19 -0
- package/esm/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +12 -0
- package/esm/boom-meeting/src/logger/logger.d.ts +86 -0
- package/esm/boom-meeting/src/util/Pqueue.d.ts +61 -0
- package/esm/boom-meeting/src/util/constant.d.ts +67 -0
- package/esm/boom-meeting/src/util/emitter.d.ts +4 -2
- package/esm/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/esm/src/BMStream/sortStream.d.ts +30 -0
- package/esm/src/BMUser/BMUserVM.d.ts +1 -1
- package/esm/src/handleEvent/attachEvents.d.ts +30 -0
- package/esm/src/handleEvent/brtcNetEvent.d.ts +9 -0
- package/esm/src/handleEvent/customMessageEvent.d.ts +2 -0
- package/esm/src/handleEvent/handleParticipantEvent.d.ts +22 -0
- package/esm/src/handleEvent/handleRoomEvent.d.ts +14 -0
- package/esm/src/handleEvent/messageEvent.d.ts +5 -0
- package/esm/src/handleEvent/pullUser.d.ts +7 -0
- package/esm/src/handleEvent/roomErrEvent.d.ts +7 -0
- package/esm/src/handleEvent/streamEvent.d.ts +16 -0
- package/esm/utils/BoomError.d.ts +21 -0
- package/esm/utils/ErrorTypes.d.ts +99 -0
- package/esm/utils/index.d.ts +9 -0
- package/package.json +3 -3
- package/umd/boom-meeting/src/BMChat/BMChatVM.d.ts +2 -1
- package/umd/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
- package/umd/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
- package/umd/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
- package/umd/boom-meeting/src/BMStream/sortStream.d.ts +27 -0
- package/umd/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
- package/umd/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
- package/umd/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
- package/umd/boom-meeting/src/constants.d.ts +38 -8
- package/umd/boom-meeting/src/error/RTCError.d.ts +20 -0
- package/umd/boom-meeting/src/error/errorType.d.ts +96 -0
- package/umd/boom-meeting/src/handleEvent/attachEvents.d.ts +35 -0
- package/umd/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +19 -0
- package/umd/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +12 -0
- package/umd/boom-meeting/src/logger/logger.d.ts +86 -0
- package/umd/boom-meeting/src/util/Pqueue.d.ts +61 -0
- package/umd/boom-meeting/src/util/constant.d.ts +67 -0
- package/umd/boom-meeting/src/util/emitter.d.ts +4 -2
- package/umd/index.js +1 -1
- package/umd/src/BMStream/BMStreamModel.d.ts +6 -15
- package/umd/src/BMUser/BMUserVM.d.ts +1 -1
- package/umd/src/type/customStats.d.ts +0 -1
- package/umd/src/type/stream.d.ts +2 -0
- package/umd/src/util/util.d.ts +1 -1
- package/umd/utils/BoomError.d.ts +21 -0
- package/umd/utils/ErrorTypes.d.ts +99 -0
- package/umd/utils/index.d.ts +9 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { SingleStream, SubscribeOptions } from
|
|
2
|
-
import BMUser from
|
|
3
|
-
import {
|
|
1
|
+
import { SingleStream, SubscribeOptions } from "../type";
|
|
2
|
+
import BMUser from "../BMUser/BMUser";
|
|
3
|
+
import { STREAM_SORT_NUM } from "../constants";
|
|
4
|
+
import { BehaviorSubject, Subject } from "rxjs";
|
|
4
5
|
import BMStreamModelVM from "./BMStreamModelVM";
|
|
5
6
|
/**
|
|
6
7
|
* @name: BMStreamModel
|
|
@@ -53,6 +54,7 @@ export default class BMStreamModel {
|
|
|
53
54
|
isInBigObserve: Subject<boolean>;
|
|
54
55
|
_hasPulled: boolean;
|
|
55
56
|
playerId: string;
|
|
57
|
+
sortNum: STREAM_SORT_NUM;
|
|
56
58
|
get hasPulled(): boolean;
|
|
57
59
|
set hasPulled(value: boolean);
|
|
58
60
|
/**
|
|
@@ -88,10 +90,6 @@ export default class BMStreamModel {
|
|
|
88
90
|
get canShow(): boolean;
|
|
89
91
|
changeMute(mute: boolean): void;
|
|
90
92
|
handleSpeakerChange(): void;
|
|
91
|
-
/**
|
|
92
|
-
* 排序数字
|
|
93
|
-
*/
|
|
94
|
-
get sortNum(): number;
|
|
95
93
|
get isToupingma(): boolean;
|
|
96
94
|
get isMixer(): boolean;
|
|
97
95
|
get isSignal(): boolean;
|
|
@@ -192,14 +190,6 @@ export default class BMStreamModel {
|
|
|
192
190
|
sendMessage2Room: any;
|
|
193
191
|
emitBindElement: any;
|
|
194
192
|
emitBindBigElement: any;
|
|
195
|
-
/**
|
|
196
|
-
* 判断当前是不是正在小窗口播放
|
|
197
|
-
*/
|
|
198
|
-
currentIsPlaying: () => boolean;
|
|
199
|
-
/**
|
|
200
|
-
* 判断当前是不是正在小窗口播放
|
|
201
|
-
*/
|
|
202
|
-
currentBigIsPlaying: () => boolean | null | undefined;
|
|
203
193
|
/**
|
|
204
194
|
* 播放当前流
|
|
205
195
|
*/
|
|
@@ -248,6 +238,7 @@ export default class BMStreamModel {
|
|
|
248
238
|
*/
|
|
249
239
|
updateUser(user: BMUser): void;
|
|
250
240
|
updateSortNum(): void;
|
|
241
|
+
updateSort(): STREAM_SORT_NUM;
|
|
251
242
|
/**
|
|
252
243
|
* 启动音频音量检测
|
|
253
244
|
*/
|
package/umd/src/type/stream.d.ts
CHANGED
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
import LocalStream from '@hysc/core/esm/BoomAdapter/singleMode/stream/LocalStream';
|
|
9
9
|
import RemoteStream from '@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream';
|
|
10
10
|
import { StreamDeviceOption } from '@hysc/core/esm/BoomAdapter/type/BRTCStream';
|
|
11
|
+
import { RemoteStreamOptions } from '@hysc/core/esm/BoomCore/BCClient/BCClient';
|
|
11
12
|
export { SubscribeOptions } from '@hysc/core/esm/BoomAdapter/type/BRTCClient';
|
|
12
13
|
export declare type SingleLocalStream = LocalStream;
|
|
13
14
|
export declare type SingleRemoteStream = RemoteStream;
|
|
14
15
|
export declare type SingleStream = SingleLocalStream | SingleRemoteStream;
|
|
15
16
|
export declare type SingleStreamDeviceOption = StreamDeviceOption;
|
|
17
|
+
export declare type SingleRemoteStreamOption = Pick<RemoteStreamOptions, 'uid' | 'stream' | 'subStream' | 'sid'>;
|
package/umd/src/util/util.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export declare function timestampMillisecond(diffNTP?: number): number;
|
|
|
66
66
|
* @returns {string} 12:09
|
|
67
67
|
*/
|
|
68
68
|
export declare function handleTime(timeStamp: number): string;
|
|
69
|
-
export declare function sortStreamModelsOrUser<T extends BMUser | BMStreamModel>(list: T[]): T[];
|
|
69
|
+
export declare function sortStreamModelsOrUser<T extends BMUser | BMStreamModel>(list: T[], reverse?: boolean): T[];
|
|
70
70
|
/**
|
|
71
71
|
* 根据权限判断是不是普通参会者
|
|
72
72
|
* @param permission
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: BoomError
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-04-21 10:11
|
|
5
|
+
* @description:BoomError
|
|
6
|
+
* @update: 2023-04-21 10:11
|
|
7
|
+
*/
|
|
8
|
+
export declare class BoomError extends Error {
|
|
9
|
+
readonly boom_error_flag_ = "__BOOM_ERROR___";
|
|
10
|
+
private readonly code;
|
|
11
|
+
message: string;
|
|
12
|
+
private readonly eName?;
|
|
13
|
+
constructor(code: number, message: string | object, name?: string);
|
|
14
|
+
/**
|
|
15
|
+
* 返回的是一个JSON 的 字符串,可以通过JSON.parse 解析
|
|
16
|
+
*/
|
|
17
|
+
toString(): string;
|
|
18
|
+
getCode(): number;
|
|
19
|
+
getMessage(): string;
|
|
20
|
+
getErrorName(): string | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: ErrorTypes
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-07-08 11:20
|
|
5
|
+
* @description:ErrorTypes
|
|
6
|
+
* @update: 2022-07-08 11:20
|
|
7
|
+
*/
|
|
8
|
+
import { BoomError } from "./BoomError";
|
|
9
|
+
/**
|
|
10
|
+
* boom-core层的错误
|
|
11
|
+
*/
|
|
12
|
+
export declare type ErrorTypes = {
|
|
13
|
+
code: number;
|
|
14
|
+
message: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare enum BoomCoreErrorCode {
|
|
18
|
+
'BloudLock' = 28,
|
|
19
|
+
'ShareScreenNoPermission' = 100,
|
|
20
|
+
'ShareScreenCanceled' = 101,
|
|
21
|
+
'ShareScreenOtherError' = 102,
|
|
22
|
+
'ShareScreenContentHintError' = 103,
|
|
23
|
+
'ShareScreenClientJoinedError' = 104,
|
|
24
|
+
'BrtcShareSigError' = 105,
|
|
25
|
+
'ToggleShareScreenError' = 106,
|
|
26
|
+
'BrtcCreateStreamError' = 107,
|
|
27
|
+
'BrtcSubscribeError' = 108,
|
|
28
|
+
'BrtcPublishError' = 109,
|
|
29
|
+
'BrtcUnsubscribeError' = 110,
|
|
30
|
+
'BrtcUnPublishError' = 111,
|
|
31
|
+
'RepeatJoinError' = 112,
|
|
32
|
+
'ProxiesUrlTypeError' = 113,
|
|
33
|
+
'getBloudProxiesUrlError' = 114,
|
|
34
|
+
'JoinUserInfoError' = 115,
|
|
35
|
+
'JoinTypeError' = 116,
|
|
36
|
+
'JoinBrtcError' = 117,
|
|
37
|
+
'JoinBloudError' = 118,
|
|
38
|
+
'UpdateCustomStatsError' = 119,
|
|
39
|
+
'CreateBloudError' = 120
|
|
40
|
+
}
|
|
41
|
+
export declare const ShareScreenNoPermission: BoomError;
|
|
42
|
+
export declare const ShareScreenCanceled: BoomError;
|
|
43
|
+
export declare const ShareScreenOtherError: (msg: string) => BoomError;
|
|
44
|
+
export declare const ShareScreenContentHintError: BoomError;
|
|
45
|
+
export declare const ShareScreenClientJoinedError: BoomError;
|
|
46
|
+
export declare const BrtcShareSigError: BoomError;
|
|
47
|
+
export declare const ToggleShareScreenError: (msg: string) => BoomError;
|
|
48
|
+
export declare const RepeatJoinError: BoomError;
|
|
49
|
+
export declare const ProxiesUrlTypeError: BoomError;
|
|
50
|
+
export declare const getBloudProxiesUrlError: (msg: string) => BoomError;
|
|
51
|
+
export declare const JoinUserInfoError: BoomError;
|
|
52
|
+
export declare const JoinTypeError: BoomError;
|
|
53
|
+
export declare const JoinBrtcError: (msg: string) => BoomError;
|
|
54
|
+
export declare const JoinBloudError: (msg: string) => BoomError;
|
|
55
|
+
export declare const BloudLockError: (msg: string) => BoomError;
|
|
56
|
+
export declare const BrtcCreateStreamError: (msg: string) => BoomError;
|
|
57
|
+
export declare const BrtcSubscribeError: (msg: string) => BoomError;
|
|
58
|
+
export declare const BrtcPublishError: (msg: string) => BoomError;
|
|
59
|
+
export declare const BrtcUnsubscribeError: (msg: string) => BoomError;
|
|
60
|
+
export declare const BrtcUnPublishError: (msg: string) => BoomError;
|
|
61
|
+
export declare const updateCustomStatsError: (msg: string) => BoomError;
|
|
62
|
+
export declare enum BoomMeetingErrorCode {
|
|
63
|
+
'BmJoinError' = 200,
|
|
64
|
+
'BMLeaveError' = 201,
|
|
65
|
+
'BmSetRemoteVideoEnable' = 202,
|
|
66
|
+
'BmSetRemoteAudioEnable' = 203,
|
|
67
|
+
'BmSetLocalVideoEnable' = 204,
|
|
68
|
+
'BmSetLocalAudioEnable' = 205,
|
|
69
|
+
'BmSetLocalSpeakerEnable' = 206,
|
|
70
|
+
'BmChangeMasterError' = 207,
|
|
71
|
+
'BmUpdateManagerError' = 208,
|
|
72
|
+
'BmEvictUserError' = 209,
|
|
73
|
+
'BmUpdateUserError' = 210,
|
|
74
|
+
'BmSetAudioOffError' = 211,
|
|
75
|
+
'BmSetVideoOffError' = 212,
|
|
76
|
+
'BmSetMsgOffError' = 213,
|
|
77
|
+
'BmUpdateCustomStatsError' = 214,
|
|
78
|
+
'BmChangeVideoProfileError' = 215,
|
|
79
|
+
'BmChangeAudioProfileError' = 216,
|
|
80
|
+
'BmCheckDeviceError' = 217
|
|
81
|
+
}
|
|
82
|
+
export declare const BmJoinError: (msg: string) => BoomError;
|
|
83
|
+
export declare const BmLeaveError: (msg: string) => BoomError;
|
|
84
|
+
export declare const BmSetRemoteVideoEnable: (msg: string) => BoomError;
|
|
85
|
+
export declare const BmSetRemoteAudioEnable: (msg: string) => BoomError;
|
|
86
|
+
export declare const BmSetLocalVideoEnable: (msg: string) => BoomError;
|
|
87
|
+
export declare const BmSetLocalAudioEnable: (msg: string) => BoomError;
|
|
88
|
+
export declare const BmSetLocalSpeakerEnable: (msg: string) => BoomError;
|
|
89
|
+
export declare const BmChangeMasterError: (msg: string) => BoomError;
|
|
90
|
+
export declare const BmUpdateManagerError: (msg: string) => BoomError;
|
|
91
|
+
export declare const BmEvictUserError: (msg: string) => BoomError;
|
|
92
|
+
export declare const BmUpdateUserError: (msg: string) => BoomError;
|
|
93
|
+
export declare const BmSetAudioOffError: (msg: string) => BoomError;
|
|
94
|
+
export declare const BmSetVideoOffError: (msg: string) => BoomError;
|
|
95
|
+
export declare const BmSetMsgOffError: (msg: string) => BoomError;
|
|
96
|
+
export declare const BmUpdateCustomStatsError: (msg: string) => BoomError;
|
|
97
|
+
export declare const BmChangeVideoProfileError: (msg: string) => BoomError;
|
|
98
|
+
export declare const BmChangeAudioProfileError: (msg: string) => BoomError;
|
|
99
|
+
export declare const BmCheckDeviceError: (msg: string) => BoomError;
|