@hysc/meeting 5.0.44 → 5.0.45

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.
@@ -56,7 +56,7 @@ export default class BMStreamModel {
56
56
  _hasPulled: boolean;
57
57
  playerId: string;
58
58
  /**
59
- * 手动拉流配置
59
+ * 手动拉流配置, 默认是false, 如果是走手动拉流,设置成true,说明拉他的流
60
60
  * shouldPull 是否应该拉
61
61
  */
62
62
  shouldPull: boolean;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * @name: emitter
3
+ * @author: yangliye
4
+ * @date: 2022-05-24 15:15
5
+ * @description:emitter
6
+ * @update: 2022-05-24 15:15
7
+ */
8
+ import { Emitter } from "mitt";
1
9
  import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
2
10
  import { ADD_PULL_USER, 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, SET_VOLUME, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
3
11
  import { RaiseHandInfo } from "../BMUser/BMUser";
@@ -26,6 +34,9 @@ declare type Events = {
26
34
  [ADD_PULL_USER]: PullItem;
27
35
  [SET_VOLUME]: VolumeInfo;
28
36
  };
29
- export declare const emitter: import("mitt").Emitter<Events>;
30
- export declare const removeEmitter: () => void;
37
+ export default class BoomEmitter {
38
+ static emitter: Emitter<Events> | undefined;
39
+ static getInstance(): Emitter<Events>;
40
+ static removeEmitter: () => void;
41
+ }
31
42
  export {};