@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.
Files changed (64) hide show
  1. package/esm/boom-meeting/src/BMChat/BMChatVM.d.ts +2 -1
  2. package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
  3. package/esm/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
  4. package/esm/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
  5. package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
  6. package/esm/boom-meeting/src/BMStream/sortStream.d.ts +27 -0
  7. package/esm/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
  8. package/esm/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
  9. package/esm/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
  10. package/esm/boom-meeting/src/constants.d.ts +38 -8
  11. package/esm/boom-meeting/src/error/RTCError.d.ts +20 -0
  12. package/esm/boom-meeting/src/error/errorType.d.ts +96 -0
  13. package/esm/boom-meeting/src/handleEvent/attachEvents.d.ts +35 -0
  14. package/esm/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +19 -0
  15. package/esm/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +12 -0
  16. package/esm/boom-meeting/src/logger/logger.d.ts +86 -0
  17. package/esm/boom-meeting/src/util/Pqueue.d.ts +61 -0
  18. package/esm/boom-meeting/src/util/constant.d.ts +67 -0
  19. package/esm/boom-meeting/src/util/emitter.d.ts +4 -2
  20. package/esm/index.js +1 -1
  21. package/esm/index.js.map +3 -3
  22. package/esm/src/BMStream/sortStream.d.ts +30 -0
  23. package/esm/src/BMUser/BMUserVM.d.ts +1 -1
  24. package/esm/src/handleEvent/attachEvents.d.ts +30 -0
  25. package/esm/src/handleEvent/brtcNetEvent.d.ts +9 -0
  26. package/esm/src/handleEvent/customMessageEvent.d.ts +2 -0
  27. package/esm/src/handleEvent/handleParticipantEvent.d.ts +22 -0
  28. package/esm/src/handleEvent/handleRoomEvent.d.ts +14 -0
  29. package/esm/src/handleEvent/messageEvent.d.ts +5 -0
  30. package/esm/src/handleEvent/pullUser.d.ts +7 -0
  31. package/esm/src/handleEvent/roomErrEvent.d.ts +7 -0
  32. package/esm/src/handleEvent/streamEvent.d.ts +16 -0
  33. package/esm/utils/BoomError.d.ts +21 -0
  34. package/esm/utils/ErrorTypes.d.ts +99 -0
  35. package/esm/utils/index.d.ts +9 -0
  36. package/package.json +3 -3
  37. package/umd/boom-meeting/src/BMChat/BMChatVM.d.ts +2 -1
  38. package/umd/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
  39. package/umd/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
  40. package/umd/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
  41. package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
  42. package/umd/boom-meeting/src/BMStream/sortStream.d.ts +27 -0
  43. package/umd/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
  44. package/umd/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
  45. package/umd/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
  46. package/umd/boom-meeting/src/constants.d.ts +38 -8
  47. package/umd/boom-meeting/src/error/RTCError.d.ts +20 -0
  48. package/umd/boom-meeting/src/error/errorType.d.ts +96 -0
  49. package/umd/boom-meeting/src/handleEvent/attachEvents.d.ts +35 -0
  50. package/umd/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +19 -0
  51. package/umd/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +12 -0
  52. package/umd/boom-meeting/src/logger/logger.d.ts +86 -0
  53. package/umd/boom-meeting/src/util/Pqueue.d.ts +61 -0
  54. package/umd/boom-meeting/src/util/constant.d.ts +67 -0
  55. package/umd/boom-meeting/src/util/emitter.d.ts +4 -2
  56. package/umd/index.js +1 -1
  57. package/umd/src/BMStream/BMStreamModel.d.ts +6 -15
  58. package/umd/src/BMUser/BMUserVM.d.ts +1 -1
  59. package/umd/src/type/customStats.d.ts +0 -1
  60. package/umd/src/type/stream.d.ts +2 -0
  61. package/umd/src/util/util.d.ts +1 -1
  62. package/umd/utils/BoomError.d.ts +21 -0
  63. package/umd/utils/ErrorTypes.d.ts +99 -0
  64. package/umd/utils/index.d.ts +9 -0
@@ -1,5 +1,5 @@
1
1
  import BoomCore from '@hysc/core/esm';
2
- import BMUser from './BMUser';
2
+ import BMUser from "./BMUser";
3
3
  import BCUser from '@hysc/core/esm/BoomAdapter/User/User';
4
4
  import BMRoom from '../BMRoom/BMRoom';
5
5
  import { BehaviorSubject } from 'rxjs';
@@ -38,13 +38,7 @@ export default class BMUserVM {
38
38
  * 移除用户
39
39
  * @param userId 用户id
40
40
  */
41
- removeUser(userId: string): void;
42
- /**
43
- * 是否在userList找到该用户,返回true or false
44
- * @param bcUser bcUser对象
45
- * @returns
46
- */
47
- findUser(bcUser: BCUser): boolean;
41
+ removeUser(userId: string): boolean;
48
42
  /**
49
43
  * 获取用户视频开启状态
50
44
  * @param userId 用户id
@@ -73,10 +67,11 @@ export default class BMUserVM {
73
67
  * @param {string} userId
74
68
  */
75
69
  getUser(userId: string): BMUser | undefined;
70
+ getAllUsers(pageIndex: number, allUsers: Map<string, BCUser>): Promise<void>;
76
71
  /**
77
72
  * 刚加入房间时初始化人数
78
73
  */
79
- initUserList(pageIndex: number): Promise<void>;
74
+ initUserList(usersInRoom: Map<string, BCUser>): Promise<void>;
80
75
  /**
81
76
  * 改变userList中的主持人,返回改变后的主持人用户对象,该方法只在change-master中调用, 不对外暴露
82
77
  * @param userId
@@ -88,7 +83,7 @@ export default class BMUserVM {
88
83
  * 联席主持人设置嘉宾的操作
89
84
  * @param userId
90
85
  */
91
- managerChangeToGuest(userId: string): any;
86
+ managerChangeToGuest(userId: string): BMUser | undefined;
92
87
  /**
93
88
  * 改变联席主持人,返回设置为联席主持人的bmuser对象
94
89
  * @param userId
@@ -101,8 +96,8 @@ export default class BMUserVM {
101
96
  * 获取我自己
102
97
  */
103
98
  getLocalUser(): BMUser;
104
- updateSelf(bcUser: BCUser): void;
105
99
  updateUser(bmUser: BMUser, bcUser: BCUser): void;
100
+ updateLocalUserPermission(permission: string): void;
106
101
  /**
107
102
  * bcUser变成BMUser
108
103
  * @param bcUser
@@ -134,4 +129,13 @@ export default class BMUserVM {
134
129
  }>;
135
130
  getTotalUserNumber(): Promise<number>;
136
131
  clearUsers(): void;
132
+ /**
133
+ * 参会者列表搜索(嘉宾及以上才能搜索)
134
+ * @param searchTxt 搜索文本
135
+ * @param pageSize 一页几个
136
+ */
137
+ searchUsers(searchTxt: string, pageSize: number): Promise<{
138
+ userList: BMUser[];
139
+ commonUserList: BMUser[];
140
+ }>;
137
141
  }
@@ -0,0 +1 @@
1
+ export default function getErrorMessage(error: any): string;
@@ -6,9 +6,9 @@
6
6
  * @update: 2022-04-27 10:39
7
7
  */
8
8
  /**
9
- * 窗口排序常量
9
+ * 标品排序规则
10
10
  */
11
- export declare enum MODEL_SORT_ENUM {
11
+ export declare enum MODEL_SORT_ENUM_STAND {
12
12
  SCREEN = 0,
13
13
  MASTER = 1,
14
14
  LOCAL = 2,
@@ -16,13 +16,41 @@ export declare enum MODEL_SORT_ENUM {
16
16
  MANAGER_AUDIO = 4,
17
17
  MANAGER_VIDEO = 5,
18
18
  MANAGER = 6,
19
- RAISE_AUDIO = 7,
20
- RAISE_VIDEO = 8,
21
- AUDIO_VIDEO = 9,
22
- AUDIO = 10,
23
- SIGNAL = 11,
19
+ RAISE_HAND = 7,
20
+ RAISE_AUDIO = 8,
21
+ RAISE_VIDEO = 9,
22
+ GUEST_AUDIO_VIDEO = 10,
23
+ GUEST_AUDIO = 11,
24
+ GUEST_VIDEO = 12,
25
+ SIGNAL = 13,
26
+ COMMONUSER_AUDIO_VIDEO = 14,
27
+ COMMONUSER_AUDIO = 15,
28
+ COMMONUSER_VIDEO = 16,
29
+ OTHER = 17
30
+ }
31
+ /**
32
+ * 中移排序规则
33
+ */
34
+ export declare enum MODEL_SORT_ENUM_ZY {
35
+ SCREEN = 0,
36
+ RAISE_AUDIO = 1,
37
+ RAISE_VIDEO = 2,
38
+ LOCAL = 3,
39
+ MASTER_AUDIO_VIDEO = 4,
40
+ MANAGER_AUDIO_VIDEO = 5,
41
+ AUDIO_VIDEO = 6,
42
+ MASTER_AUDIO = 7,
43
+ MANAGER_AUDIO = 8,
44
+ AUDIO = 9,
45
+ MASTER_VIDEO = 10,
46
+ MANAGER_VIDEO = 11,
24
47
  VIDEO = 12,
25
- OTHER = 13
48
+ MASTER = 13,
49
+ MANAGER = 14,
50
+ GUEST = 15,
51
+ COMMON_USER = 16,
52
+ SIGNAL = 17,
53
+ OTHER = 18
26
54
  }
27
55
  export declare enum STREAM_TYPE {
28
56
  /**
@@ -81,3 +109,5 @@ export declare const UNSUBSCRIBE_STREAM = "unsubscribe-stream";
81
109
  */
82
110
  export declare const CHANG_IS_GUEST = "change-is-guest";
83
111
  export declare const BIND_BIG_ELEMENT = "bind-big-element";
112
+ export declare const NO_CONTAINER = "no-container";
113
+ export declare const MODEL_SORT_NUM_CHANGE = "model-sort-num-change";
@@ -0,0 +1,20 @@
1
+ export default class BoomError extends Error {
2
+ static instanceOf(error: any): boolean;
3
+ private BoomErrorFlag;
4
+ private code;
5
+ private eName?;
6
+ private error;
7
+ /**
8
+ * @internal
9
+ * @param code
10
+ * @param name
11
+ * @param message
12
+ */
13
+ constructor(code: number, message?: any, error?: any, name?: string);
14
+ /**
15
+ * 获取错误码
16
+ *
17
+ * @returns 错误码
18
+ */
19
+ getCode(): number;
20
+ }
@@ -0,0 +1,96 @@
1
+ /**
2
+ * 本地一般错误
3
+ */
4
+ export declare const LOCAL_ERROR = 1000;
5
+ /**
6
+ * 无效参数
7
+ */
8
+ export declare const INVALID_PARAMETER = 1001;
9
+ /**
10
+ * 非法操作
11
+ */
12
+ export declare const INVALID_OPERATION = 1002;
13
+ /**
14
+ * 不支持
15
+ */
16
+ export declare const NOT_SUPPORTED = 1003;
17
+ /**
18
+ * 没有权限
19
+ */
20
+ export declare const PERMISSION_DENY = 1010;
21
+ /**
22
+ * 没有推送音频权限
23
+ */
24
+ export declare const PERMISSION_DENY_AUDIO = 1011;
25
+ /**
26
+ * 没有推送视频权限
27
+ */
28
+ export declare const PERMISSION_DENY_VIDEO = 1012;
29
+ /**
30
+ * 进入频道失败
31
+ */
32
+ export declare const JOIN_CHANNEL_ERROR = 4000;
33
+ /**
34
+ * 信令通道建立失败
35
+ */
36
+ export declare const SIGNAL_SETUP_FAILED = 4001;
37
+ /**
38
+ * 信令通道错误
39
+ */
40
+ export declare const SIGNAL_ERROR = 4002;
41
+ /**
42
+ * ICE Tansport 连接错误
43
+ */
44
+ export declare const ICE_TRANSPORT_ERROR = 4003;
45
+ /**
46
+ * 创建 sdp offer 失败
47
+ */
48
+ export declare const CREATE_OFFER_FAILED = 4004;
49
+ /**
50
+ * 端被踢出
51
+ */
52
+ export declare const CLIENT_BANNED = 4005;
53
+ /**
54
+ * 媒体传输超时
55
+ */
56
+ export declare const MEDIA_SERVER_TIMEOUT = 4006;
57
+ /**
58
+ * 订阅远端流超时
59
+ */
60
+ export declare const SUBSCRIPTION_TIMEOUT = 4007;
61
+ /**
62
+ * 推流错误
63
+ */
64
+ export declare const MEDIA_PUBLISH_ERROR = 4008;
65
+ /**
66
+ * 用户被踢出
67
+ */
68
+ export declare const USER_KICKED = 4009;
69
+ /**
70
+ * 订阅重试的过程中出现 stream 已被销毁
71
+ */
72
+ export declare const MEDIA_SUBSCRIPTION_RETRY_NULL_ERROR = 4010;
73
+ /**
74
+ * HTTP 请求失败
75
+ */
76
+ export declare const FETCH_ERROR = 5000;
77
+ /**
78
+ * userSig 校验失败
79
+ */
80
+ export declare const USER_SIG_ERROR = 5001;
81
+ /**
82
+ * token 过期
83
+ */
84
+ export declare const TOKEN_EXPIRE_ERROR = 5002;
85
+ /**
86
+ * 房间关闭
87
+ */
88
+ export declare const ROOM_CLOSED_ERROR = 5003;
89
+ /**
90
+ * 未知错误
91
+ */
92
+ export declare const UNKNOWN = 9000;
93
+ /**
94
+ * 用户不存在
95
+ */
96
+ export declare const USER_NOT_EXIT = 9001;
@@ -0,0 +1,35 @@
1
+ import BoomCore from '@hysc/core';
2
+ import BMStreamModelVM from "../BMStream/BMStreamModelVM";
3
+ import BMRoom from '../BMRoom/BMRoom';
4
+ import { SingleRemoteStream } from '../type';
5
+ import BMUserVM from "../BMUser/BMUserVM";
6
+ import BMChatVM from '../BMChat/BMChatVM';
7
+ import { BehaviorSubject } from 'rxjs';
8
+ import BMStreamModel from "../BMStream/BMStreamModel";
9
+ import { BCEvent } from "@hysc/core/src/BoomCore/BCClient/clientEventType";
10
+ /**
11
+ * 收到消息信令的集合
12
+ */
13
+ export declare enum MessageType {
14
+ /**
15
+ * 初始化watcher用
16
+ */
17
+ INIT = "init",
18
+ /**
19
+ * 收到远端控制本地摄像头的消息
20
+ */
21
+ VIDEO_FORCE_CHANGE = "video-force-change",
22
+ /**
23
+ * 收到远端控制本地麦克风的消息
24
+ */
25
+ AUDIO_FORCE_CHANGE = "audio-force-change"
26
+ }
27
+ export declare function getStreamFromBrtcStreamMap(remoteStream: SingleRemoteStream): import("@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default | undefined;
28
+ export declare function attachBRTCEvent(boomCore: BoomCore, bmStreamVm: BMStreamModelVM, userVM: BMUserVM): void;
29
+ declare type Observes = {
30
+ [K in BCEvent]: BehaviorSubject<any>;
31
+ };
32
+ export declare function addBrtcNetEvent(bcClient: BoomCore): void;
33
+ export declare function attachEvents(boomCore: BoomCore, userVM: BMUserVM, bmStreamVm: BMStreamModelVM, chatVM: BMChatVM, bmRoom: BMRoom): Observes;
34
+ export declare function checkStreamIsNormal(streamModel: BMStreamModel | undefined): void;
35
+ export {};
@@ -0,0 +1,19 @@
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 updateBMUser(allUsers: Map<string, BCUser>, bmUser: BMUser, userVm: BMUserVM): void;
19
+ export declare const handleUserRejoined: any;
@@ -0,0 +1,12 @@
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 handleInitRoomInfo(data: any, bmRoom: BMRoom): Promise<void>;
12
+ export declare function handleRoomSync(data: any, bmRoom: BMRoom, userVm: BMUserVM, bmStreamVm: BMStreamModelVM): Promise<void>;
@@ -0,0 +1,86 @@
1
+ /**
2
+ * debug 级别
3
+ */
4
+ export declare const DEBUG = 1;
5
+ /**
6
+ * info 级别
7
+ */
8
+ export declare const INFO = 2;
9
+ /**
10
+ * info 级别
11
+ */
12
+ /**
13
+ * warn 级别
14
+ */
15
+ export declare const WARN = 3;
16
+ /**
17
+ * error 级别
18
+ */
19
+ export declare const ERROR = 4;
20
+ /**
21
+ * 关闭所有日志
22
+ */
23
+ export declare const CLOSE = 5;
24
+ /**
25
+ * fatal 级别
26
+ * @internal
27
+ */
28
+ export declare const FATAL = 6;
29
+ /**
30
+ * 设置日志输出级别
31
+ *
32
+ * @param level 日志输出级别
33
+ */
34
+ export declare function setLevel(level: number): void;
35
+ /**
36
+ * 打印 debug 日志
37
+ *
38
+ * @param msg 日志内容
39
+ */
40
+ export declare function debug(msg: string, tag?: string, userId?: any, args?: any): void;
41
+ /**
42
+ * 打印 info 日志
43
+ *
44
+ * @param msg 日志内容
45
+ */
46
+ export declare function info(msg: string, tag?: string, userId?: any, args?: any): void;
47
+ /**
48
+ * 打印 call 日志
49
+ *
50
+ * @param msg
51
+ * @param args
52
+ */
53
+ /**
54
+ * 打印 warn 日志
55
+ *
56
+ * @param msg 日志内容
57
+ */
58
+ export declare function warn(msg: string, tag?: string, userId?: any, args?: any): void;
59
+ /**
60
+ * 打印 error 日志
61
+ *
62
+ * @param msg 日志内容
63
+ */
64
+ export declare function error(msg: string, tag?: string, userId?: any, args?: any): void;
65
+ /**
66
+ * 致命错误,中断程序
67
+ *
68
+ * @param msg 日志内容
69
+ */
70
+ export declare function fatal(code: number, name?: string, message?: string): void;
71
+ /**
72
+ * 打开日志上传
73
+ *
74
+ */
75
+ export declare function enableUploadLog(): void;
76
+ /**
77
+ * 关闭日志上传
78
+ *
79
+ */
80
+ export declare function disableUploadLog(): void;
81
+ export declare const LogMap: {
82
+ 1: typeof debug;
83
+ 2: typeof info;
84
+ 3: typeof warn;
85
+ 4: typeof error;
86
+ };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @ Author: zhaozhidan
3
+ * @ Create Time: 2020-04-26 11:47:55
4
+ * @ Modified by: zhaozhidan
5
+ * @ Modified time: 2020-09-19 22:19:21
6
+ * @ Description: Boom
7
+ */
8
+ declare class Pqueue {
9
+ private queueArray;
10
+ private isTaskPending;
11
+ private queue;
12
+ constructor(maxTask: number, isStart?: boolean);
13
+ /**
14
+ * 添加队列
15
+ * @param {*} fn 生成Promise函数
16
+ * @param {String} taskId 任务标识别
17
+ * @param {Number} priority 任务优先级
18
+ * @param {String} nickName 要打印的值
19
+ */
20
+ addQueue(fn: any, taskId: string, priority?: number, nickName?: string): void;
21
+ /**
22
+ * 清空队列
23
+ */
24
+ clearQueue(): void;
25
+ /**
26
+ * 队列开始执行
27
+ */
28
+ startQueue(): void;
29
+ /**
30
+ * 暂停队列
31
+ */
32
+ pauseQueue(): any[];
33
+ /**
34
+ * 返回队列里还未pending和执行完的任务数
35
+ * @returns {number}
36
+ */
37
+ size(): number;
38
+ /**
39
+ * 返回队列里还未pending和执行完的任务数
40
+ * @returns {number}
41
+ */
42
+ pending(): number;
43
+ /**
44
+ * 查询任务是否结束
45
+ */
46
+ checkTaskStatus(): boolean;
47
+ /**
48
+ * 修改任务的状态
49
+ */
50
+ setTaskStatus(res: boolean): void;
51
+ /**
52
+ * 队列是否执行完了.
53
+ */
54
+ onIdle(): Promise<void>;
55
+ /**
56
+ * 队列是否执行完了.
57
+ */
58
+ onEmpty(): Promise<void>;
59
+ }
60
+ export declare const streamPullQueue: Pqueue;
61
+ export {};
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @file 为了压缩,定义的常量
3
+ * @author zhaogaoxing
4
+ */
5
+ export declare const TRUE = true;
6
+ export declare const FALSE = false;
7
+ export declare const NULL: null;
8
+ export declare const UNDEFINED: undefined;
9
+ export declare const MINUS_ONE = -1;
10
+ export declare const RAW_TRUE = "true";
11
+ export declare const RAW_FALSE = "false";
12
+ export declare const RAW_NULL = "null";
13
+ export declare const RAW_UNDEFINED = "undefined";
14
+ export declare const RAW_THIS = "this";
15
+ export declare const RAW_VALUE = "value";
16
+ export declare const RAW_LENGTH = "length";
17
+ export declare const RAW_FUNCTION = "function";
18
+ export declare const RAW_WILDCARD = "*";
19
+ export declare const RAW_DOT = ".";
20
+ export declare const RAW_SLASH = "/";
21
+ export declare const RAW_TAG = "tag";
22
+ export declare const KEYPATH_PARENT = "..";
23
+ export declare const KEYPATH_CURRENT = "this";
24
+ /**
25
+ * Single instance for window in browser
26
+ */
27
+ export declare const WINDOW: (Window & typeof globalThis) | undefined;
28
+ /**
29
+ * Single instance for document in browser
30
+ */
31
+ export declare const DOCUMENT: Document | undefined;
32
+ /**
33
+ * Single instance for global in nodejs or browser
34
+ */
35
+ export declare const GLOBAL: typeof globalThis | undefined;
36
+ /**
37
+ * Single instance for noop function
38
+ */
39
+ export declare const EMPTY_FUNCTION: () => void;
40
+ /**
41
+ * 空对象,很多地方会用到,比如 `a || EMPTY_OBJECT` 确保是个对象
42
+ */
43
+ export declare const EMPTY_OBJECT: Readonly<{}>;
44
+ /**
45
+ * 空数组
46
+ */
47
+ export declare const EMPTY_ARRAY: readonly never[];
48
+ /**
49
+ * 空字符串
50
+ */
51
+ export declare const EMPTY_STRING = "";
52
+ export declare const WEBRTC_TYPE_VLOUD = 0;
53
+ export declare const WEBRTC_TYPE_TENCENT = 1;
54
+ export declare const PRODUCTION = "production";
55
+ export declare const BETA = "beta";
56
+ export declare const DEVELOPMENT = "development";
57
+ export declare const LOGGER_TAG_CLIENT = "c";
58
+ export declare const LOGGER_TAG_STREAM = "s";
59
+ export declare const LOGGER_TAG_SIGNAL = "g";
60
+ export declare const LOGGER_TAG_PLAYER = "p";
61
+ export declare const MEDIA_TYPE_CAMERA = "videoinput";
62
+ export declare const MEDIA_TYPE_MIC = "audioinput";
63
+ export declare const MEDIA_TYPE_SPEAKER = "audiooutput";
64
+ export declare const ROOM_CHANNEL_TYPE_WS = 0;
65
+ export declare const ROOM_CHANNEL_TYPE_DC = 1;
66
+ export declare const SING_MODE = 1;
67
+ export declare const MIX_MODE = 2;
@@ -1,5 +1,5 @@
1
- import { ConnectErrorMessage, SubscribeMessage } from "../BMStream/BMStreamModel";
2
- import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
1
+ import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
2
+ import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
3
3
  import { RaiseHandInfo } from "../BMUser/BMUser";
4
4
  import { ChangeIsGuest } from "../BMUser/BMUserVM";
5
5
  declare type Events = {
@@ -12,6 +12,8 @@ declare type Events = {
12
12
  [CHANG_IS_GUEST]: ChangeIsGuest;
13
13
  [BIND_ELEMENT]: SubscribeMessage;
14
14
  [BIND_BIG_ELEMENT]: SubscribeMessage;
15
+ [NO_CONTAINER]: NoPlayerContainer;
16
+ [MODEL_SORT_NUM_CHANGE]: null;
15
17
  };
16
18
  export declare const emitter: import("mitt").Emitter<Events>;
17
19
  export declare const removeEmitter: () => void;