@hysc/meeting 3.0.31 → 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 +3 -3
- 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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: sortStream
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-04-18 11:40
|
|
5
|
+
* @description:sortStream
|
|
6
|
+
* @update: 2023-04-18 11:40
|
|
7
|
+
*/
|
|
8
|
+
export declare function getMasterSort(a: boolean, v: boolean): number;
|
|
9
|
+
/**
|
|
10
|
+
* 12 - 15
|
|
11
|
+
*/
|
|
12
|
+
export declare function getLocalSort(a: boolean, v: boolean): number;
|
|
13
|
+
/**
|
|
14
|
+
* 8 - 11
|
|
15
|
+
* @param a
|
|
16
|
+
* @param v
|
|
17
|
+
*/
|
|
18
|
+
export declare function getManagerSort(a: boolean, v: boolean): number;
|
|
19
|
+
/**
|
|
20
|
+
* 取值范围 4 - 7
|
|
21
|
+
* @param a
|
|
22
|
+
* @param v
|
|
23
|
+
*/
|
|
24
|
+
export declare function getGuestSort(a: boolean, v: boolean): number;
|
|
25
|
+
/**
|
|
26
|
+
* 取值范围 0 - 3
|
|
27
|
+
* @param a
|
|
28
|
+
* @param v
|
|
29
|
+
*/
|
|
30
|
+
export declare function getCommonSort(a: boolean, v: boolean): number;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import BoomCore from '@hysc/core';
|
|
2
|
+
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
3
|
+
import BMRoom from '../BMRoom/BMRoom';
|
|
4
|
+
import BMUserVM from "../BMUser/BMUserVM";
|
|
5
|
+
import BMChatVM from '../BMChat/BMChatVM';
|
|
6
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
|
+
import { BCEvent } from "@hysc/core/src/BoomCore/BCClient/clientEventType";
|
|
8
|
+
/**
|
|
9
|
+
* 收到消息信令的集合
|
|
10
|
+
*/
|
|
11
|
+
export declare enum MessageType {
|
|
12
|
+
/**
|
|
13
|
+
* 初始化watcher用
|
|
14
|
+
*/
|
|
15
|
+
INIT = "init",
|
|
16
|
+
/**
|
|
17
|
+
* 收到远端控制本地摄像头的消息
|
|
18
|
+
*/
|
|
19
|
+
VIDEO_FORCE_CHANGE = "video-force-change",
|
|
20
|
+
/**
|
|
21
|
+
* 收到远端控制本地麦克风的消息
|
|
22
|
+
*/
|
|
23
|
+
AUDIO_FORCE_CHANGE = "audio-force-change"
|
|
24
|
+
}
|
|
25
|
+
export declare function attachBRTCEvent(boomCore: BoomCore, bmStreamVm: BMStreamModelVM, userVM: BMUserVM): void;
|
|
26
|
+
declare type Observes = {
|
|
27
|
+
[K in BCEvent]: BehaviorSubject<any>;
|
|
28
|
+
};
|
|
29
|
+
export declare function attachEvents(boomCore: BoomCore, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, chatVM: BMChatVM, bmRoom: BMRoom): Observes;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 handleParticipantJoin(data: any, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, boomCore: BoomCore, chatVM: BMChatVM, observes: any): Promise<void>;
|
|
17
|
+
export declare function handleParticipantLeft(data: any, userVM: BMUserVM, bmRoom: BMRoom, observes: any, bmStreamVm: BMStreamModelVM, boomCore: BCClient, chatVM: BMChatVM): void;
|
|
18
|
+
export declare function handleChangeMaster(data: any, userVM: BMUserVM, bmRoom: BMRoom, observes: any, bmStreamVm: BMStreamModelVM): void;
|
|
19
|
+
export declare function handleEvict(data: any, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, bmRoom: BMRoom, observes: any): void;
|
|
20
|
+
export declare function handleUpdateUser(data: any, userVM: BMUserVM, bmRoom: BMRoom, bmStreamVm: BMStreamModelVM, observes: any): void;
|
|
21
|
+
export declare function updateBMUser(allUsers: Map<string, BCUser>, bmUser: BMUser, userVm: BMUserVM): void;
|
|
22
|
+
export declare const handleUserRejoined: import("lodash-es").DebouncedFunc<(observes: any, eventsList: any, data: any) => void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: handleRoomEvent
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-04-25 15:16
|
|
5
|
+
* @description:handleRoomEvent
|
|
6
|
+
* @update: 2023-04-25 15:16
|
|
7
|
+
*/
|
|
8
|
+
import BMRoom from "../BMRoom/BMRoom";
|
|
9
|
+
import BMUserVM from "../BMUser/BMUserVM";
|
|
10
|
+
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
11
|
+
export declare function handleRoomConnected(data: any, bmRoom: BMRoom, userVM: BMUserVM, observes: any): Promise<void>;
|
|
12
|
+
export declare function handleRoomUpdated(data: any, bmRoom: BMRoom): void;
|
|
13
|
+
export declare function handleInitRoomInfo(data: any, bmRoom: BMRoom): Promise<void>;
|
|
14
|
+
export declare function handleRoomSync(data: any, bmRoom: BMRoom, userVm: BMUserVM, bmStreamVm: BMStreamModelVM): Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import BMUserVM from "../BMUser/BMUserVM";
|
|
2
|
+
import BMChatVM from "../BMChat/BMChatVM";
|
|
3
|
+
import BMRoom from "../BMRoom/BMRoom";
|
|
4
|
+
export declare function handleSendMessage(msg: any, userVM: BMUserVM, chatVM: BMChatVM, observes: any): void;
|
|
5
|
+
export declare function handleCustomMessage(msg: any, bmRoom: BMRoom, observes: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import BMRoom from "../BMRoom/BMRoom";
|
|
2
|
+
import BCClient from "@hysc/core";
|
|
3
|
+
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
4
|
+
import BoomCore from "@hysc/core";
|
|
5
|
+
export declare function handleBRTCRoomError(data: any, bmRoom: BMRoom, boomCore: BCClient, bmStreamVm: BMStreamModelVM, observes: any): Promise<void>;
|
|
6
|
+
export declare function reconnectBloud(boomCore: BoomCore, observes: any, data: any): Promise<unknown>;
|
|
7
|
+
export declare function reconnectBRTCShareWS(boomCore: BoomCore): Promise<unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: streamEvent
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-04-26 10:36
|
|
5
|
+
* @description:streamEvent
|
|
6
|
+
* @update: 2023-04-26 10:36
|
|
7
|
+
*/
|
|
8
|
+
import BMStreamModel from "../BMStream/BMStreamModel";
|
|
9
|
+
import { SingleRemoteStream } from "../type";
|
|
10
|
+
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
11
|
+
export declare function handleUpdateStreamModelWithStream(stream: SingleRemoteStream, bmStreamVm: BMStreamModelVM): BMStreamModel | undefined;
|
|
12
|
+
export declare function checkStreamIsNormal(streamModel: BMStreamModel | undefined): void;
|
|
13
|
+
export declare function handleStreamUpdated(event: any, bmStreamVm: BMStreamModelVM, observes: any): void;
|
|
14
|
+
export declare function addStreamToBrtcStreamMap(remoteStream: SingleRemoteStream): void;
|
|
15
|
+
export declare function removeSteamToBrtcStreamMap(remoteStream: SingleRemoteStream): void;
|
|
16
|
+
export declare function getStreamFromBrtcStreamMap(remoteStream: SingleRemoteStream): import("@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default | undefined;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.32",
|
|
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.29",
|
|
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.29"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.6"
|
|
@@ -15,8 +15,9 @@ export default class BMChatVM {
|
|
|
15
15
|
* 发送聊天消息
|
|
16
16
|
* @param talkMsg 聊天信息
|
|
17
17
|
*/
|
|
18
|
-
sendMessage(talkMsg: string, userId: string | undefined): Promise<void>;
|
|
18
|
+
sendMessage(talkMsg: string, userId: string | undefined, lostNet: boolean): Promise<void>;
|
|
19
19
|
addMessage(info: BMMessageInfo, isParticipantNotice: boolean): void;
|
|
20
|
+
updateMessageListWatcher(messageList: Array<BMMessageInfo>): void;
|
|
20
21
|
/**
|
|
21
22
|
* 获取历史消息
|
|
22
23
|
*/
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: BMRoomInfo
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-05-18 13:52
|
|
5
|
+
* @description:BMRoomInfo
|
|
6
|
+
* @update: 2022-05-18 13:52
|
|
7
|
+
*/
|
|
8
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
9
|
+
import { audioOffWatcherValue } from '../type';
|
|
10
|
+
import BMRoom from './BMRoom';
|
|
11
|
+
import BMUser from '../BMUser/BMUser';
|
|
12
|
+
import { CloudRecord, FilePermission } from "./BMRoomVM";
|
|
13
|
+
interface OperationCustomStats {
|
|
14
|
+
/**
|
|
15
|
+
* 是否允许点赞 0 不可用 1可用
|
|
16
|
+
*/
|
|
17
|
+
giveLikeEnable: 0 | 1;
|
|
18
|
+
/**
|
|
19
|
+
* 聊天是否可以用 0 不可用 1可用 2仅主持人 3嘉宾
|
|
20
|
+
*/
|
|
21
|
+
chatEnable: 0 | 1 | 2 | 3;
|
|
22
|
+
/**
|
|
23
|
+
* 上传文档权限 设置-文档上传模式 0仅主持人 1 嘉宾 2 全员
|
|
24
|
+
*/
|
|
25
|
+
fileUpdateModel: FilePermission;
|
|
26
|
+
/**
|
|
27
|
+
* 文档查看权限 设置-文档查看模式 0仅主持人 1 嘉宾 2 全员
|
|
28
|
+
*/
|
|
29
|
+
fileUpdateLook: FilePermission;
|
|
30
|
+
/**
|
|
31
|
+
* 文档下载权限 设置-文档下载模式 0仅主持人 1 嘉宾 2 全员
|
|
32
|
+
*/
|
|
33
|
+
fileUpdateDown: FilePermission;
|
|
34
|
+
/**
|
|
35
|
+
* 文档编辑权限 设置-文档编辑模式 0仅主持人 1 嘉宾 2 全员
|
|
36
|
+
*/
|
|
37
|
+
fileUpdateEdit: FilePermission;
|
|
38
|
+
/**
|
|
39
|
+
* 共享屏幕权限 设置-屏幕共享模式 0仅主持人 1全员
|
|
40
|
+
*/
|
|
41
|
+
screenShareModel: 0 | 1;
|
|
42
|
+
/**
|
|
43
|
+
* 是否仅一人共享 1:是 2:否
|
|
44
|
+
*/
|
|
45
|
+
onlyOnePersonShare: 0 | 1;
|
|
46
|
+
/**
|
|
47
|
+
* 云录对象
|
|
48
|
+
* recordStatus 录制状态:0=暂未开始,1=录制中,2=申请中
|
|
49
|
+
* userId:开启人
|
|
50
|
+
*/
|
|
51
|
+
cloudRecord: CloudRecord;
|
|
52
|
+
/**
|
|
53
|
+
* 入会时麦克风权限 0全员 1嘉宾 2主持人
|
|
54
|
+
*/
|
|
55
|
+
joinAudioEnable: 0 | 1 | 2;
|
|
56
|
+
/**
|
|
57
|
+
* 入会时开启摄像头权限 0全员 1嘉宾 2主持人
|
|
58
|
+
*/
|
|
59
|
+
joinVideoEnable: 0 | 1 | 2;
|
|
60
|
+
/**
|
|
61
|
+
* 参会者列表权限 0全员 1嘉宾 2主持人
|
|
62
|
+
*/
|
|
63
|
+
userListEnable: 0 | 1 | 2;
|
|
64
|
+
/**
|
|
65
|
+
* 会议中是否允许开启麦克风 0全员 1嘉宾 2主持人
|
|
66
|
+
*/
|
|
67
|
+
audioEnable: 0 | 1 | 2;
|
|
68
|
+
/**
|
|
69
|
+
* 会议中是否允许开启摄像头 0全员 1嘉宾 2主持人
|
|
70
|
+
*/
|
|
71
|
+
videoEnable: 0 | 1 | 2;
|
|
72
|
+
/**
|
|
73
|
+
* 是否允许自行改名 0全员 1嘉宾
|
|
74
|
+
*/
|
|
75
|
+
modifyNameEnable: 0 | 1;
|
|
76
|
+
/**
|
|
77
|
+
* 是否允许开启虚拟背景 0全员 1嘉宾 2主持人
|
|
78
|
+
*/
|
|
79
|
+
backgroundAIEnable: 0 | 1 | 2;
|
|
80
|
+
/**
|
|
81
|
+
* 是否允许举手 0禁止全员 1允许嘉宾 2全员可举手
|
|
82
|
+
*/
|
|
83
|
+
raiseHandEnable: 0 | 1 | 2;
|
|
84
|
+
/**
|
|
85
|
+
* 入会提示音设置
|
|
86
|
+
*/
|
|
87
|
+
joinCueVoice: 0 | 1;
|
|
88
|
+
}
|
|
89
|
+
export default class BMRoomInfo {
|
|
90
|
+
private room;
|
|
91
|
+
/**
|
|
92
|
+
* 房间名
|
|
93
|
+
*/
|
|
94
|
+
private _roomName;
|
|
95
|
+
/**
|
|
96
|
+
* 消息序列号
|
|
97
|
+
*/
|
|
98
|
+
msgSeq: string;
|
|
99
|
+
/**
|
|
100
|
+
* 房间 号
|
|
101
|
+
*/
|
|
102
|
+
roomID: string;
|
|
103
|
+
/**
|
|
104
|
+
* 是否全员静音(业务端用)
|
|
105
|
+
*/
|
|
106
|
+
audioOff: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* 是否可以自行开启(业务端用)
|
|
109
|
+
*/
|
|
110
|
+
selfopenaudio: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* 是否锁定
|
|
113
|
+
*/
|
|
114
|
+
private lock;
|
|
115
|
+
/**
|
|
116
|
+
* 离开提示
|
|
117
|
+
*/
|
|
118
|
+
private leaveNotice;
|
|
119
|
+
/**
|
|
120
|
+
* 全员静音状态下是否允许打开麦克风
|
|
121
|
+
* @private
|
|
122
|
+
*/
|
|
123
|
+
private openSelf;
|
|
124
|
+
/**
|
|
125
|
+
* 通知公告信息
|
|
126
|
+
*/
|
|
127
|
+
chatNotice: string;
|
|
128
|
+
/**
|
|
129
|
+
* 通知公告信息富文本
|
|
130
|
+
*/
|
|
131
|
+
chatNoticeRich: string;
|
|
132
|
+
/**
|
|
133
|
+
* 所有的音频举手人员
|
|
134
|
+
*/
|
|
135
|
+
private raiseHandsList;
|
|
136
|
+
raiseHandsWatcher: BehaviorSubject<BMUser[]>;
|
|
137
|
+
/**
|
|
138
|
+
* 所有的视频举手的人员
|
|
139
|
+
*/
|
|
140
|
+
private raiseVideoHandsList;
|
|
141
|
+
raiseVideoHandsWatcher: BehaviorSubject<BMUser[]>;
|
|
142
|
+
/**
|
|
143
|
+
* 所有的举手的人员
|
|
144
|
+
*/
|
|
145
|
+
private raiseSimpleHandsList;
|
|
146
|
+
raiseSimpleHandsWatcher: BehaviorSubject<BMUser[]>;
|
|
147
|
+
operationPermission: OperationCustomStats | undefined;
|
|
148
|
+
operationPermissionWatcher: Subject<OperationCustomStats>;
|
|
149
|
+
chatNoticeWatcher: Subject<unknown>;
|
|
150
|
+
totalUserWatcher: BehaviorSubject<number>;
|
|
151
|
+
constructor();
|
|
152
|
+
get roomName(): string;
|
|
153
|
+
/**
|
|
154
|
+
* 判断是不是大房间使用
|
|
155
|
+
*/
|
|
156
|
+
get isBigRoom(): boolean;
|
|
157
|
+
setup(info: any): void;
|
|
158
|
+
bindRoom(room: BMRoom): void;
|
|
159
|
+
initCustomStats(customStats: any): void;
|
|
160
|
+
updateOperationPermission(stats: any): void;
|
|
161
|
+
private handleInitParams;
|
|
162
|
+
audioOffWatcher: Subject<audioOffWatcherValue>;
|
|
163
|
+
lockWatcher: BehaviorSubject<boolean>;
|
|
164
|
+
leaveNoticeWatcher: BehaviorSubject<boolean>;
|
|
165
|
+
openSelfWatcher: BehaviorSubject<boolean>;
|
|
166
|
+
/**
|
|
167
|
+
* 设置是否全员静音
|
|
168
|
+
* @param audioOff
|
|
169
|
+
* @param selfopenaudio 是否可以自行开启
|
|
170
|
+
*/
|
|
171
|
+
setAudioOff(audioOff: boolean, selfopenaudio: boolean): void;
|
|
172
|
+
/**
|
|
173
|
+
* 设置是否锁定
|
|
174
|
+
* @param lock
|
|
175
|
+
*/
|
|
176
|
+
setlock(lock: boolean): void;
|
|
177
|
+
setLeaveNotice(leaveNotice: boolean): void;
|
|
178
|
+
setRaiseHandsList(userList: BMUser[]): void;
|
|
179
|
+
/**
|
|
180
|
+
* 音频举手处理
|
|
181
|
+
* @param user
|
|
182
|
+
*/
|
|
183
|
+
addRaiseHandUser(user: BMUser): void;
|
|
184
|
+
/**
|
|
185
|
+
* 取消音频举手处理
|
|
186
|
+
* @param userId
|
|
187
|
+
*/
|
|
188
|
+
removeRaiseHandUser(userId: string): void;
|
|
189
|
+
/**
|
|
190
|
+
* 视频申请处理
|
|
191
|
+
* @param user
|
|
192
|
+
*/
|
|
193
|
+
addVideoRaiseHandUser(user: BMUser): void;
|
|
194
|
+
/**
|
|
195
|
+
* 取消视频申请处理
|
|
196
|
+
* @param userId
|
|
197
|
+
*/
|
|
198
|
+
removeVideoRaiseHandUser(userId: string): void;
|
|
199
|
+
/**
|
|
200
|
+
* 举手处理
|
|
201
|
+
* @param user
|
|
202
|
+
*/
|
|
203
|
+
addSimpleRaiseHandUser(user: BMUser): void;
|
|
204
|
+
/**
|
|
205
|
+
* 取消举手处理
|
|
206
|
+
* @param userId
|
|
207
|
+
*/
|
|
208
|
+
removeSimpleRaiseHandUser(userId: string): void;
|
|
209
|
+
private setRaiseHandsWatcherValue;
|
|
210
|
+
private setVideoRaiseHandsWatcherValue;
|
|
211
|
+
private setSimpleRaiseHandsWatcherValue;
|
|
212
|
+
}
|
|
213
|
+
export {};
|