@hysc/meeting 0.4.0 → 0.5.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 +1 -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 +6 -6
- 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 +1 -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 +6 -6
- 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
|
@@ -1,97 +0,0 @@
|
|
|
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
|
-
/**
|
|
9
|
-
* boom-core层的错误
|
|
10
|
-
*/
|
|
11
|
-
export declare type ErrorTypes = {
|
|
12
|
-
code: number;
|
|
13
|
-
message: string;
|
|
14
|
-
};
|
|
15
|
-
export declare enum BoomCoreErrorCode {
|
|
16
|
-
'BloudLock' = 28,
|
|
17
|
-
'ShareScreenNoPermission' = 100,
|
|
18
|
-
'ShareScreenCanceled' = 101,
|
|
19
|
-
'ShareScreenOtherError' = 102,
|
|
20
|
-
'ShareScreenContentHintError' = 103,
|
|
21
|
-
'ShareScreenClientJoinedError' = 104,
|
|
22
|
-
'BrtcShareSigError' = 105,
|
|
23
|
-
'ToggleShareScreenError' = 106,
|
|
24
|
-
'BrtcCreateStreamError' = 107,
|
|
25
|
-
'BrtcSubscribeError' = 108,
|
|
26
|
-
'BrtcPublishError' = 109,
|
|
27
|
-
'BrtcUnsubscribeError' = 110,
|
|
28
|
-
'BrtcUnPublishError' = 111,
|
|
29
|
-
'RepeatJoinError' = 112,
|
|
30
|
-
'ProxiesUrlTypeError' = 113,
|
|
31
|
-
'getBloudProxiesUrlError' = 114,
|
|
32
|
-
'JoinUserInfoError' = 115,
|
|
33
|
-
'JoinTypeError' = 116,
|
|
34
|
-
'JoinBrtcError' = 117,
|
|
35
|
-
'JoinBloudError' = 118,
|
|
36
|
-
'UpdateCustomStatsError' = 119,
|
|
37
|
-
'CreateBloudError' = 120
|
|
38
|
-
}
|
|
39
|
-
export declare const ShareScreenNoPermission: ErrorTypes;
|
|
40
|
-
export declare const ShareScreenCanceled: ErrorTypes;
|
|
41
|
-
export declare const ShareScreenOtherError: (msg: string) => ErrorTypes;
|
|
42
|
-
export declare const ShareScreenContentHintError: ErrorTypes;
|
|
43
|
-
export declare const ShareScreenClientJoinedError: ErrorTypes;
|
|
44
|
-
export declare const BrtcShareSigError: ErrorTypes;
|
|
45
|
-
export declare const ToggleShareScreenError: (msg: string) => ErrorTypes;
|
|
46
|
-
export declare const RepeatJoinError: ErrorTypes;
|
|
47
|
-
export declare const ProxiesUrlTypeError: ErrorTypes;
|
|
48
|
-
export declare const getBloudProxiesUrlError: (msg: string) => ErrorTypes;
|
|
49
|
-
export declare const JoinUserInfoError: ErrorTypes;
|
|
50
|
-
export declare const JoinTypeError: ErrorTypes;
|
|
51
|
-
export declare const JoinBrtcError: (msg: string) => ErrorTypes;
|
|
52
|
-
export declare const JoinBloudError: (msg: string) => ErrorTypes;
|
|
53
|
-
export declare const BloudLockError: (msg: string) => ErrorTypes;
|
|
54
|
-
export declare const BrtcCreateStreamError: (msg: string) => ErrorTypes;
|
|
55
|
-
export declare const BrtcSubscribeError: (msg: string) => ErrorTypes;
|
|
56
|
-
export declare const BrtcPublishError: (msg: string) => ErrorTypes;
|
|
57
|
-
export declare const BrtcUnsubscribeError: (msg: string) => ErrorTypes;
|
|
58
|
-
export declare const BrtcUnPublishError: (msg: string) => ErrorTypes;
|
|
59
|
-
export declare const updateCustomStatsError: (msg: string) => ErrorTypes;
|
|
60
|
-
export declare enum BoomMeetingErrorCode {
|
|
61
|
-
'BmJoinError' = 200,
|
|
62
|
-
'BMLeaveError' = 201,
|
|
63
|
-
'BmSetRemoteVideoEnable' = 202,
|
|
64
|
-
'BmSetRemoteAudioEnable' = 203,
|
|
65
|
-
'BmSetLocalVideoEnable' = 204,
|
|
66
|
-
'BmSetLocalAudioEnable' = 205,
|
|
67
|
-
'BmSetLocalSpeakerEnable' = 206,
|
|
68
|
-
'BmChangeMasterError' = 207,
|
|
69
|
-
'BmUpdateManagerError' = 208,
|
|
70
|
-
'BmEvictUserError' = 209,
|
|
71
|
-
'BmUpdateUserError' = 210,
|
|
72
|
-
'BmSetAudioOffError' = 211,
|
|
73
|
-
'BmSetVideoOffError' = 212,
|
|
74
|
-
'BmSetMsgOffError' = 213,
|
|
75
|
-
'BmUpdateCustomStatsError' = 214,
|
|
76
|
-
'BmChangeVideoProfileError' = 215,
|
|
77
|
-
'BmChangeAudioProfileError' = 216,
|
|
78
|
-
'BmCheckDeviceError' = 217
|
|
79
|
-
}
|
|
80
|
-
export declare const BmJoinError: (msg: string) => ErrorTypes;
|
|
81
|
-
export declare const BmLeaveError: (msg: string) => ErrorTypes;
|
|
82
|
-
export declare const BmSetRemoteVideoEnable: (msg: string) => ErrorTypes;
|
|
83
|
-
export declare const BmSetRemoteAudioEnable: (msg: string) => ErrorTypes;
|
|
84
|
-
export declare const BmSetLocalVideoEnable: (msg: string) => ErrorTypes;
|
|
85
|
-
export declare const BmSetLocalAudioEnable: (msg: string) => ErrorTypes;
|
|
86
|
-
export declare const BmSetLocalSpeakerEnable: (msg: string) => ErrorTypes;
|
|
87
|
-
export declare const BmChangeMasterError: (msg: string) => ErrorTypes;
|
|
88
|
-
export declare const BmUpdateManagerError: (msg: string) => ErrorTypes;
|
|
89
|
-
export declare const BmEvictUserError: (msg: string) => ErrorTypes;
|
|
90
|
-
export declare const BmUpdateUserError: (msg: string) => ErrorTypes;
|
|
91
|
-
export declare const BmSetAudioOffError: (msg: string) => ErrorTypes;
|
|
92
|
-
export declare const BmSetVideoOffError: (msg: string) => ErrorTypes;
|
|
93
|
-
export declare const BmSetMsgOffError: (msg: string) => ErrorTypes;
|
|
94
|
-
export declare const BmUpdateCustomStatsError: (msg: string) => ErrorTypes;
|
|
95
|
-
export declare const BmChangeVideoProfileError: (msg: string) => ErrorTypes;
|
|
96
|
-
export declare const BmChangeAudioProfileError: (msg: string) => ErrorTypes;
|
|
97
|
-
export declare const BmCheckDeviceError: (msg: string) => ErrorTypes;
|
package/umd/BMChat/BMChatVM.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import BoomCore from '@boom/core/esm';
|
|
2
|
-
import BMMessageInfo from './BMMessageInfo';
|
|
3
|
-
import { BehaviorSubject, Subject } from "rxjs";
|
|
4
|
-
import BMUserVM from '../BMUser/BMUserVM';
|
|
5
|
-
import BMRoom from '../BMRoom/BMRoom';
|
|
6
|
-
export default class BMChatVM {
|
|
7
|
-
messageList: Array<BMMessageInfo>;
|
|
8
|
-
boomCore: BoomCore;
|
|
9
|
-
userVM: BMUserVM;
|
|
10
|
-
bmRoom: BMRoom;
|
|
11
|
-
messageListWatcher: BehaviorSubject<Array<BMMessageInfo>>;
|
|
12
|
-
hasDangerMessageWatcher: Subject<boolean>;
|
|
13
|
-
constructor(boomCore: BoomCore, userVM: BMUserVM, bmRoom: BMRoom);
|
|
14
|
-
/**
|
|
15
|
-
* 发送聊天消息
|
|
16
|
-
* @param talkMsg 聊天信息
|
|
17
|
-
*/
|
|
18
|
-
sendMessage(talkMsg: string, userId: string | undefined): Promise<void>;
|
|
19
|
-
addMessage(info: BMMessageInfo, isParticipantNotice: boolean): void;
|
|
20
|
-
/**
|
|
21
|
-
* 获取历史消息
|
|
22
|
-
*/
|
|
23
|
-
getHistoryMessage(): Promise<BMMessageInfo[]>;
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import BoomCore from '@boom/core/esm';
|
|
2
|
-
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
3
|
-
import BMRoom from './BMRoom';
|
|
4
|
-
import BMUserVM from "../BMUser/BMUserVM";
|
|
5
|
-
import BMChatVM from '../BMChat/BMChatVM';
|
|
6
|
-
import BMStreamModel from "../BMStream/BMStreamModel";
|
|
7
|
-
export declare const shouldProcessQueue: Map<string, import("@boom/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default>;
|
|
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
|
-
export declare function attachEvents(boomCore: BoomCore, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, chatVM: BMChatVM, bmRoom: BMRoom): any;
|
|
27
|
-
export declare function checkStreamIsNormal(streamModel: BMStreamModel | undefined): void;
|
package/umd/BMUser/BMUser.d.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import BMStreamModel from '../BMStream/BMStreamModel';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import BCUser from '@boom/core/esm/BoomAdapter/User/User';
|
|
4
|
-
import BMRoom from '../BMRoom/BMRoom';
|
|
5
|
-
declare type Operation = 'none' | 'getMaster' | 'getManager' | 'removeMaster' | 'getGuest' | 'removeGuest' | 'removeManager' | 'changeNickName' | 'speakerEnable' | 'changeShare' | 'updateUser' | 'raiseHandsVideo' | 'raiseHandsAudio' | 'audienceEnableSpeaking';
|
|
6
|
-
interface IUserActionWatcher {
|
|
7
|
-
operation: Operation;
|
|
8
|
-
user: BMUser;
|
|
9
|
-
}
|
|
10
|
-
interface UserInfo {
|
|
11
|
-
avatar: string;
|
|
12
|
-
jointime: number;
|
|
13
|
-
nickname: string;
|
|
14
|
-
pos: string;
|
|
15
|
-
userId: string;
|
|
16
|
-
status?: {
|
|
17
|
-
audioRaiseHands: boolean;
|
|
18
|
-
videoRaiseHands: boolean;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface RaiseHandInfo {
|
|
22
|
-
status: 'raiseHandsAudio' | 'raiseHandsVideo';
|
|
23
|
-
user: BMUser;
|
|
24
|
-
}
|
|
25
|
-
export default class BMUser {
|
|
26
|
-
/**
|
|
27
|
-
* 用户id
|
|
28
|
-
*/
|
|
29
|
-
userId: string;
|
|
30
|
-
/**
|
|
31
|
-
* 用户信息
|
|
32
|
-
*/
|
|
33
|
-
userInfo: UserInfo;
|
|
34
|
-
nickName: string;
|
|
35
|
-
isMaster: boolean;
|
|
36
|
-
isManager: boolean;
|
|
37
|
-
mirror: boolean;
|
|
38
|
-
isLocal: boolean;
|
|
39
|
-
isToupingma: boolean;
|
|
40
|
-
hasMultiple: boolean;
|
|
41
|
-
isCreate: boolean;
|
|
42
|
-
hasShare: boolean;
|
|
43
|
-
audienceEnableSpeaking: boolean;
|
|
44
|
-
/** 头像 */
|
|
45
|
-
avatar: string;
|
|
46
|
-
private streamModels;
|
|
47
|
-
permission: any;
|
|
48
|
-
/**
|
|
49
|
-
* 监听器, 监听返回对象属性
|
|
50
|
-
* @property {string} operation
|
|
51
|
-
* 'getManager':获得管理员权限/成为联席主持人
|
|
52
|
-
* 'getMaster':成为主持人
|
|
53
|
-
* 'removeManager':取消管理员权限/取消联席主持人
|
|
54
|
-
* 'removeMaster':取消主持人
|
|
55
|
-
* 'changeNickName':改变昵称
|
|
56
|
-
* 'speakerEnable':扬声器开关状态改变
|
|
57
|
-
* 'changeShare': 是否在屏幕共享
|
|
58
|
-
* 'raiseHandsVideo': 是否视频举手
|
|
59
|
-
* 'raiseHandsAudio': 是否音频举手
|
|
60
|
-
* @property {BMUser} user
|
|
61
|
-
*/
|
|
62
|
-
watcher: BehaviorSubject<IUserActionWatcher>;
|
|
63
|
-
/**
|
|
64
|
-
* 排序
|
|
65
|
-
*/
|
|
66
|
-
sortNum: number;
|
|
67
|
-
/**
|
|
68
|
-
* 举手相关
|
|
69
|
-
*/
|
|
70
|
-
raiseVideoHands: boolean;
|
|
71
|
-
raiseAudioHands: boolean;
|
|
72
|
-
isAudience: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* 是不是普通参会者
|
|
75
|
-
*/
|
|
76
|
-
isCommonUser: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* 是不是web端入会
|
|
79
|
-
*/
|
|
80
|
-
get isWeb(): boolean;
|
|
81
|
-
constructor(user: any, isLocal?: boolean);
|
|
82
|
-
setup(userId: string, userinfo: UserInfo, nickname: string): void;
|
|
83
|
-
getMainStreamModel(): BMStreamModel | undefined;
|
|
84
|
-
getShareStreamModel(): BMStreamModel | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* 获取用户麦克风开启状态
|
|
87
|
-
*/
|
|
88
|
-
get audioEnable(): boolean;
|
|
89
|
-
get isMixer(): boolean;
|
|
90
|
-
/**
|
|
91
|
-
* 获取用户视频开启状态
|
|
92
|
-
*/
|
|
93
|
-
get videoEnable(): boolean;
|
|
94
|
-
get isSharing(): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* 是否是信号源
|
|
97
|
-
*/
|
|
98
|
-
get isSignal(): boolean;
|
|
99
|
-
/**
|
|
100
|
-
* 检测当前用户是否有主持人权限
|
|
101
|
-
*/
|
|
102
|
-
checkLocalHasMaster(): boolean;
|
|
103
|
-
/**
|
|
104
|
-
* 给用户添加流
|
|
105
|
-
* @param streamId
|
|
106
|
-
* @param stream 流
|
|
107
|
-
*/
|
|
108
|
-
addStream(streamId: string, stream: BMStreamModel): void;
|
|
109
|
-
/**
|
|
110
|
-
* 删除流
|
|
111
|
-
* @param streamId
|
|
112
|
-
*/
|
|
113
|
-
removeStream(streamId: string): void;
|
|
114
|
-
/**
|
|
115
|
-
* 获取用户id
|
|
116
|
-
*/
|
|
117
|
-
getID(): string;
|
|
118
|
-
/**
|
|
119
|
-
* 获取用户昵称
|
|
120
|
-
*/
|
|
121
|
-
getNickName(): string;
|
|
122
|
-
/**
|
|
123
|
-
* 获取用户信息
|
|
124
|
-
*/
|
|
125
|
-
getUserInfo(): UserInfo;
|
|
126
|
-
/**
|
|
127
|
-
* 获取用户流信息
|
|
128
|
-
*/
|
|
129
|
-
getStreams(): Map<string, BMStreamModel>;
|
|
130
|
-
/**
|
|
131
|
-
* updateUserInfo更新用户信息(除了isMaster,isMaster是通过change-master事件改变的)
|
|
132
|
-
* @param bcUser
|
|
133
|
-
* @param participant
|
|
134
|
-
* @param bmRoom
|
|
135
|
-
* @returns
|
|
136
|
-
*/
|
|
137
|
-
updateUserInfo(bcUser: BCUser, participant: any, bmRoom: BMRoom): void;
|
|
138
|
-
/** 是否有管理权限, 是主持人或联席主持人之一 */
|
|
139
|
-
hasManager(): boolean;
|
|
140
|
-
/** 获取用户后面的身份标识 */
|
|
141
|
-
getNicknameSuffix(): string;
|
|
142
|
-
/**
|
|
143
|
-
* 更新当前用户的排序
|
|
144
|
-
*/
|
|
145
|
-
updateSortNum(): void;
|
|
146
|
-
}
|
|
147
|
-
export {};
|
package/umd/BMUser/BMUserVM.d.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import BoomCore from '@boom/core/esm';
|
|
2
|
-
import BMUser from './BMUser';
|
|
3
|
-
import BCUser from '@boom/core/esm/BoomAdapter/User/User';
|
|
4
|
-
import BMRoom from '../BMRoom/BMRoom';
|
|
5
|
-
import { BehaviorSubject } from 'rxjs';
|
|
6
|
-
import { UpdateMasterType } from '../type';
|
|
7
|
-
/**
|
|
8
|
-
* 往业务端返回的时候,需要把这些用户过滤掉
|
|
9
|
-
*/
|
|
10
|
-
export declare const ignoreUserId: string[];
|
|
11
|
-
export interface ChangeIsGuest {
|
|
12
|
-
user: BMUser;
|
|
13
|
-
preIsGuest: boolean;
|
|
14
|
-
isGuest: boolean;
|
|
15
|
-
}
|
|
16
|
-
export default class BMUserVM {
|
|
17
|
-
userList: Map<string, BMUser>;
|
|
18
|
-
audiencesList: Map<string, BMUser>;
|
|
19
|
-
signalList: Map<string, BMUser>;
|
|
20
|
-
commonUserList: Map<string, BMUser>;
|
|
21
|
-
boomCore: BoomCore;
|
|
22
|
-
room: BMRoom | null;
|
|
23
|
-
userListWatcher: BehaviorSubject<BMUser[]>;
|
|
24
|
-
audiencesListWatcher: BehaviorSubject<BMUser[]>;
|
|
25
|
-
commonUserListWatcher: BehaviorSubject<BMUser[]>;
|
|
26
|
-
signalListWatcher: BehaviorSubject<BMUser[]>;
|
|
27
|
-
masterUserWatcher: BehaviorSubject<BMUser | null>;
|
|
28
|
-
localUser: BMUser;
|
|
29
|
-
constructor(boomCore: BoomCore, localUser: BMUser);
|
|
30
|
-
initWithRoom(room: BMRoom): void;
|
|
31
|
-
handleUserRoleChange(info: ChangeIsGuest): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* 添加用户, 并返回已添加的用户对象
|
|
34
|
-
* @param bcUser bcUser对象
|
|
35
|
-
*/
|
|
36
|
-
addUser(bcUser: BCUser): BMUser | null;
|
|
37
|
-
/**
|
|
38
|
-
* 移除用户
|
|
39
|
-
* @param userId 用户id
|
|
40
|
-
*/
|
|
41
|
-
removeUser(userId: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* 是否在userList找到该用户,返回true or false
|
|
44
|
-
* @param bcUser bcUser对象
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
findUser(bcUser: BCUser): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* 获取用户视频开启状态
|
|
50
|
-
* @param userId 用户id
|
|
51
|
-
*/
|
|
52
|
-
videoEnable(userId: string): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* 获取用户音频开启状态
|
|
55
|
-
* @param userId
|
|
56
|
-
*/
|
|
57
|
-
audioEnable(userId: string): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* 检测用户是不是主持人
|
|
60
|
-
* @param {string} userId 用户id
|
|
61
|
-
*/
|
|
62
|
-
checkIsMaster(userId: any): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* 检测当前用户是否有主持人权限
|
|
65
|
-
*/
|
|
66
|
-
checkLocalHasMaster(): any;
|
|
67
|
-
/**
|
|
68
|
-
* 检测目标用户是否有主持人权限
|
|
69
|
-
*/
|
|
70
|
-
checkUserHasMaster(userId: string): boolean;
|
|
71
|
-
/**
|
|
72
|
-
* 根据用户id获取user对象
|
|
73
|
-
* @param {string} userId
|
|
74
|
-
*/
|
|
75
|
-
getUser(userId: string): BMUser | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* 刚加入房间时初始化人数
|
|
78
|
-
*/
|
|
79
|
-
initUserList(pageIndex: number): Promise<void>;
|
|
80
|
-
/**
|
|
81
|
-
* 改变userList中的主持人,返回改变后的主持人用户对象,该方法只在change-master中调用, 不对外暴露
|
|
82
|
-
* @param userId
|
|
83
|
-
* @param oldMasterId
|
|
84
|
-
* @param isKeep
|
|
85
|
-
*/
|
|
86
|
-
updateMaster(userId: string, oldMasterId: string, isKeep: boolean): UpdateMasterType;
|
|
87
|
-
/**
|
|
88
|
-
* 联席主持人设置嘉宾的操作
|
|
89
|
-
* @param userId
|
|
90
|
-
*/
|
|
91
|
-
managerChangeToGuest(userId: string): any;
|
|
92
|
-
/**
|
|
93
|
-
* 改变联席主持人,返回设置为联席主持人的bmuser对象
|
|
94
|
-
* @param userId
|
|
95
|
-
* @param status true:设置成联席主持人 false:取消联席主持人身份
|
|
96
|
-
* @param hasS
|
|
97
|
-
* @returns
|
|
98
|
-
*/
|
|
99
|
-
updateManager(userId: string, status: boolean, hasS?: boolean): BMUser;
|
|
100
|
-
/**
|
|
101
|
-
* 获取我自己
|
|
102
|
-
*/
|
|
103
|
-
getLocalUser(): BMUser;
|
|
104
|
-
updateSelf(bcUser: BCUser): void;
|
|
105
|
-
updateUser(bmUser: BMUser, bcUser: BCUser): void;
|
|
106
|
-
/**
|
|
107
|
-
* bcUser变成BMUser
|
|
108
|
-
* @param bcUser
|
|
109
|
-
* @returns
|
|
110
|
-
*/
|
|
111
|
-
toBMUser(bcUser: BCUser): BMUser;
|
|
112
|
-
private sortUsers;
|
|
113
|
-
private sortAudiences;
|
|
114
|
-
private sortCommonUsers;
|
|
115
|
-
private sortSignalUsers;
|
|
116
|
-
private static filterUsers;
|
|
117
|
-
/**
|
|
118
|
-
* 排序变化之后的处理逻辑
|
|
119
|
-
*/
|
|
120
|
-
updateSort: () => void;
|
|
121
|
-
/**
|
|
122
|
-
* 初始化所有的用户
|
|
123
|
-
* @param total
|
|
124
|
-
*/
|
|
125
|
-
initUsers(total: number): Promise<void>;
|
|
126
|
-
/**
|
|
127
|
-
* 本地嘉宾用户降级为普通参会者之后要取消拉流
|
|
128
|
-
*/
|
|
129
|
-
handleUnSubCommonUser(): void;
|
|
130
|
-
handleCommonUserChange(): void;
|
|
131
|
-
getUsers(page: number, pageSize: number, permission?: string): Promise<{
|
|
132
|
-
userList: BMUser[];
|
|
133
|
-
total: number;
|
|
134
|
-
}>;
|
|
135
|
-
getTotalUserNumber(): Promise<number>;
|
|
136
|
-
clearUsers(): void;
|
|
137
|
-
}
|