@hysc/meeting 5.0.12 → 5.0.14
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.
- package/esm/boom-meeting/src/BMRoom/BMRoom.d.ts +2 -0
- package/esm/boom-meeting/src/audioPlay/AudioPlay.d.ts +20 -0
- package/esm/index.js +1 -1
- package/esm/index.js.map +3 -3
- package/esm/src/BMRoom/BMRoom.d.ts +2 -0
- package/esm/src/audioPlay/AudioPlay.d.ts +20 -0
- package/package.json +3 -3
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +2 -0
- package/umd/boom-meeting/src/audioPlay/AudioPlay.d.ts +20 -0
- package/umd/index.js +1 -1
|
@@ -11,6 +11,7 @@ import BMStreamModel, { ConnectErrorMessage } from '../BMStream/BMStreamModel';
|
|
|
11
11
|
import BMUser from '../BMUser/BMUser';
|
|
12
12
|
import BMLiveVM from './BMLiveVM';
|
|
13
13
|
import SingletonQueue, { PullItem } from "../SingletonQueue/SingletonQueue";
|
|
14
|
+
import AudioPlay from "../audioPlay/AudioPlay";
|
|
14
15
|
interface BMRoomProps {
|
|
15
16
|
initDevices: boolean;
|
|
16
17
|
}
|
|
@@ -99,6 +100,7 @@ export default class BMRoom {
|
|
|
99
100
|
brtc: boolean;
|
|
100
101
|
};
|
|
101
102
|
brtcNetEnableWatcher: Subject<boolean>;
|
|
103
|
+
audioPlayer: AudioPlay;
|
|
102
104
|
get isSingleColumns(): boolean;
|
|
103
105
|
/**
|
|
104
106
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: AudioPlay.ts
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-06-08 16:35
|
|
5
|
+
* @description:AudioPlay.ts
|
|
6
|
+
* @update: 2023-06-08 16:35
|
|
7
|
+
*/
|
|
8
|
+
import { SingleStream } from "../type";
|
|
9
|
+
import { AudioPlayer } from '@hysc/core';
|
|
10
|
+
export default class AudioPlay {
|
|
11
|
+
playMap: WeakSet<SingleStream>;
|
|
12
|
+
playerMap: Map<string, AudioPlayer>;
|
|
13
|
+
container: HTMLDivElement | undefined;
|
|
14
|
+
muted: boolean;
|
|
15
|
+
constructor(containerId: string);
|
|
16
|
+
addStream(stream: SingleStream): void;
|
|
17
|
+
removeStream(stream: SingleStream): void;
|
|
18
|
+
play(stream: SingleStream): void;
|
|
19
|
+
mute(mute: boolean): void;
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.14",
|
|
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.12",
|
|
18
18
|
"lodash-es": "^4.17.21",
|
|
19
19
|
"mitt": "^3.0.0",
|
|
20
20
|
"@hysc/p-queue": "6.3.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@hysc/utils": "1.2.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@hysc/core": "5.0.
|
|
26
|
+
"@hysc/core": "5.0.12"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.6"
|
|
@@ -11,6 +11,7 @@ import BMStreamModel, { ConnectErrorMessage } from '../BMStream/BMStreamModel';
|
|
|
11
11
|
import BMUser from '../BMUser/BMUser';
|
|
12
12
|
import BMLiveVM from './BMLiveVM';
|
|
13
13
|
import SingletonQueue, { PullItem } from "../SingletonQueue/SingletonQueue";
|
|
14
|
+
import AudioPlay from "../audioPlay/AudioPlay";
|
|
14
15
|
interface BMRoomProps {
|
|
15
16
|
initDevices: boolean;
|
|
16
17
|
}
|
|
@@ -99,6 +100,7 @@ export default class BMRoom {
|
|
|
99
100
|
brtc: boolean;
|
|
100
101
|
};
|
|
101
102
|
brtcNetEnableWatcher: Subject<boolean>;
|
|
103
|
+
audioPlayer: AudioPlay;
|
|
102
104
|
get isSingleColumns(): boolean;
|
|
103
105
|
/**
|
|
104
106
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: AudioPlay.ts
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2023-06-08 16:35
|
|
5
|
+
* @description:AudioPlay.ts
|
|
6
|
+
* @update: 2023-06-08 16:35
|
|
7
|
+
*/
|
|
8
|
+
import { SingleStream } from "../type";
|
|
9
|
+
import { AudioPlayer } from '@hysc/core';
|
|
10
|
+
export default class AudioPlay {
|
|
11
|
+
playMap: WeakSet<SingleStream>;
|
|
12
|
+
playerMap: Map<string, AudioPlayer>;
|
|
13
|
+
container: HTMLDivElement | undefined;
|
|
14
|
+
muted: boolean;
|
|
15
|
+
constructor(containerId: string);
|
|
16
|
+
addStream(stream: SingleStream): void;
|
|
17
|
+
removeStream(stream: SingleStream): void;
|
|
18
|
+
play(stream: SingleStream): void;
|
|
19
|
+
mute(mute: boolean): void;
|
|
20
|
+
}
|