@hysc/meeting 5.0.82 → 5.0.84

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.
@@ -1,9 +1,17 @@
1
1
  import BMUser from '../BMUser/BMUser';
2
2
  import { SingleStream } from '../type';
3
+ /**
4
+ * @name: BMSpeaker
5
+ * @author: liuxinghai
6
+ * @date: 2022-06-07 11:41
7
+ * @description:BMSpeaker
8
+ * 适配 brtc 流对象到 bloud 流对象接口,
9
+ * 用户辅助采用 bloud SpeakerDetector 做说话人检测
10
+ * @date: 2022-06-07 11:41
11
+ */
3
12
  export default class BMSpeaker {
4
- private _user;
5
- private _stream;
6
- private _emitter;
13
+ user: BMUser;
14
+ stream: SingleStream;
7
15
  constructor(user: BMUser, stream: SingleStream);
8
16
  /**
9
17
  * 获取对象 ID 标识,此处使用流 ID 标识
@@ -15,21 +23,4 @@ export default class BMSpeaker {
15
23
  * @returns
16
24
  */
17
25
  getUser(): BMUser;
18
- /**
19
- * 监听事件
20
- *
21
- * @param type 事件类型
22
- * @param fn 事件回调
23
- * @return 实例本身 {@link Client}
24
- */
25
- on(type: string, fn: Function): this;
26
- /**
27
- * 启动音频音量检测
28
- */
29
- collectAudioLevel: () => void;
30
- private handleAudioLevel;
31
- /**
32
- * 关闭音频音量检测
33
- */
34
- close: () => void;
35
26
  }