@hysc/meeting 4.0.2 → 4.0.4

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 (94) hide show
  1. package/esm/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +11 -8
  2. package/esm/boom-meeting/src/BMChat/BMChatVM.d.ts +2 -1
  3. package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
  4. package/esm/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
  5. package/esm/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
  6. package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
  7. package/esm/boom-meeting/src/BMStream/sortStream.d.ts +5 -2
  8. package/esm/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
  9. package/esm/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
  10. package/esm/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
  11. package/esm/boom-meeting/src/constants.d.ts +38 -8
  12. package/esm/boom-meeting/src/error/RTCError.d.ts +20 -0
  13. package/esm/boom-meeting/src/error/errorType.d.ts +96 -0
  14. package/esm/boom-meeting/src/handleEvent/attachEvents.d.ts +30 -0
  15. package/esm/boom-meeting/src/handleEvent/brtcNetEvent.d.ts +9 -0
  16. package/esm/boom-meeting/src/handleEvent/customMessageEvent.d.ts +2 -0
  17. package/esm/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +22 -0
  18. package/esm/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +14 -0
  19. package/esm/boom-meeting/src/handleEvent/messageEvent.d.ts +5 -0
  20. package/esm/boom-meeting/src/handleEvent/pullUser.d.ts +7 -0
  21. package/esm/boom-meeting/src/handleEvent/roomErrEvent.d.ts +7 -0
  22. package/esm/boom-meeting/src/handleEvent/streamEvent.d.ts +16 -0
  23. package/esm/boom-meeting/src/logger/logger.d.ts +86 -0
  24. package/esm/boom-meeting/src/util/Pqueue.d.ts +61 -0
  25. package/esm/boom-meeting/src/util/constant.d.ts +67 -0
  26. package/esm/boom-meeting/src/util/emitter.d.ts +4 -2
  27. package/esm/index.js +2 -2
  28. package/esm/index.js.map +3 -3
  29. package/esm/src/BMChat/BMChatVM.d.ts +25 -25
  30. package/esm/src/BMChat/BMMessageInfo.d.ts +31 -31
  31. package/esm/src/BMRoom/BMLiveVM.d.ts +35 -35
  32. package/esm/src/BMRoom/BMRoomInfo.d.ts +213 -213
  33. package/esm/src/BMRoom/BMRoomVM.d.ts +302 -302
  34. package/esm/src/BMStream/BMStreamModelVM.d.ts +254 -254
  35. package/esm/src/BMStream/sortStream.d.ts +5 -2
  36. package/esm/src/BMUser/BMUser.d.ts +156 -156
  37. package/esm/src/BMUser/BMUserVM.d.ts +141 -141
  38. package/esm/src/bjy-common/function/getErrorMessage.d.ts +1 -1
  39. package/esm/src/constants.d.ts +113 -113
  40. package/esm/src/error/RTCError.d.ts +20 -20
  41. package/esm/src/error/errorType.d.ts +96 -96
  42. package/esm/src/handleEvent/attachEvents.d.ts +30 -0
  43. package/esm/src/handleEvent/brtcNetEvent.d.ts +9 -0
  44. package/esm/src/handleEvent/customMessageEvent.d.ts +2 -0
  45. package/esm/src/handleEvent/handleParticipantEvent.d.ts +22 -0
  46. package/esm/src/handleEvent/handleRoomEvent.d.ts +14 -0
  47. package/esm/src/handleEvent/messageEvent.d.ts +5 -0
  48. package/esm/src/handleEvent/pullUser.d.ts +7 -0
  49. package/esm/src/handleEvent/roomErrEvent.d.ts +7 -0
  50. package/esm/src/handleEvent/streamEvent.d.ts +16 -0
  51. package/esm/src/logger/logger.d.ts +86 -86
  52. package/esm/src/util/Pqueue.d.ts +61 -61
  53. package/esm/src/util/constant.d.ts +67 -67
  54. package/esm/src/util/emitter.d.ts +20 -20
  55. package/esm/utils/BoomError.d.ts +21 -0
  56. package/esm/utils/ErrorTypes.d.ts +99 -0
  57. package/esm/utils/index.d.ts +9 -0
  58. package/package.json +4 -4
  59. package/umd/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +11 -8
  60. package/umd/boom-meeting/src/BMChat/BMChatVM.d.ts +2 -1
  61. package/umd/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +213 -0
  62. package/umd/boom-meeting/src/BMRoom/BMRoomVM.d.ts +302 -0
  63. package/umd/boom-meeting/src/BMRoom/attachEvents.d.ts +9 -2
  64. package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +254 -0
  65. package/umd/boom-meeting/src/BMStream/sortStream.d.ts +5 -2
  66. package/umd/boom-meeting/src/BMUser/BMUser.d.ts +12 -3
  67. package/umd/boom-meeting/src/BMUser/BMUserVM.d.ts +15 -11
  68. package/umd/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +1 -0
  69. package/umd/boom-meeting/src/constants.d.ts +38 -8
  70. package/umd/boom-meeting/src/error/RTCError.d.ts +20 -0
  71. package/umd/boom-meeting/src/error/errorType.d.ts +96 -0
  72. package/umd/boom-meeting/src/handleEvent/attachEvents.d.ts +30 -0
  73. package/umd/boom-meeting/src/handleEvent/brtcNetEvent.d.ts +9 -0
  74. package/umd/boom-meeting/src/handleEvent/customMessageEvent.d.ts +2 -0
  75. package/umd/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +22 -0
  76. package/umd/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +14 -0
  77. package/umd/boom-meeting/src/handleEvent/messageEvent.d.ts +5 -0
  78. package/umd/boom-meeting/src/handleEvent/pullUser.d.ts +7 -0
  79. package/umd/boom-meeting/src/handleEvent/roomErrEvent.d.ts +7 -0
  80. package/umd/boom-meeting/src/handleEvent/streamEvent.d.ts +16 -0
  81. package/umd/boom-meeting/src/logger/logger.d.ts +86 -0
  82. package/umd/boom-meeting/src/util/Pqueue.d.ts +61 -0
  83. package/umd/boom-meeting/src/util/constant.d.ts +67 -0
  84. package/umd/boom-meeting/src/util/emitter.d.ts +4 -2
  85. package/umd/index.js +2 -2
  86. package/umd/src/BMRoom/BMRoomInfo.d.ts +6 -6
  87. package/umd/src/BMStream/BMStreamModelVM.d.ts +1 -3
  88. package/umd/src/BMUser/BMUser.d.ts +2 -2
  89. package/umd/src/BMUser/BMUserVM.d.ts +2 -3
  90. package/umd/src/constants.d.ts +0 -1
  91. package/umd/src/util/emitter.d.ts +1 -2
  92. package/umd/utils/BoomError.d.ts +21 -0
  93. package/umd/utils/ErrorTypes.d.ts +99 -0
  94. package/umd/utils/index.d.ts +9 -0
@@ -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,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;