@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
|
-
|
|
5
|
-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.84",
|
|
4
4
|
"description": "boom meeting",
|
|
5
5
|
"main": "umd/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "yangliye",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@hysc/core": "5.0.
|
|
17
|
+
"@hysc/core": "5.0.82",
|
|
18
18
|
"@hysc/logger": "1.0.0",
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"mitt": "^3.0.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@hysc/utils": "1.2.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@hysc/core": "5.0.
|
|
27
|
+
"@hysc/core": "5.0.82"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/lodash-es": "^4.17.6"
|
|
@@ -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
|
-
|
|
5
|
-
|
|
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
|
}
|