@hysc/meeting 4.0.84 → 4.0.85
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/BMStream/BMStreamModelVM.d.ts +5 -5
- package/esm/boom-meeting/src/audioPlay/AudioPlay.d.ts +7 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/esm/src/BMStream/BMStreamModelVM.d.ts +5 -5
- package/esm/src/audioPlay/AudioPlay.d.ts +7 -1
- package/package.json +3 -3
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +2 -0
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +5 -5
- package/umd/boom-meeting/src/audioPlay/AudioPlay.d.ts +7 -1
- 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信令往上层业务发送消息
|
|
@@ -44,8 +44,12 @@ export default class BMStreamModelVM {
|
|
|
44
44
|
localModel: BMStreamModel | null;
|
|
45
45
|
private room;
|
|
46
46
|
bloudStream: any;
|
|
47
|
-
audioStream: SingleLocalStream | undefined;
|
|
48
47
|
brtcStream: SingleLocalStream | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 后面打开摄像头存储的流,主要是关闭摄像头的时候得把它清除掉
|
|
50
|
+
*/
|
|
51
|
+
videoStream: SingleLocalStream | null;
|
|
52
|
+
audioStream: SingleLocalStream | null;
|
|
49
53
|
/**
|
|
50
54
|
* 本地是否在屏幕共享
|
|
51
55
|
*/
|
|
@@ -58,10 +62,6 @@ export default class BMStreamModelVM {
|
|
|
58
62
|
mixStreamModelWatcher: BehaviorSubject<BMStreamModel | null>;
|
|
59
63
|
isShareWatcher: Subject<boolean>;
|
|
60
64
|
canvasTimer: NodeJS.Timeout | null;
|
|
61
|
-
/**
|
|
62
|
-
* 后面打开摄像头存储的流,主要是关闭摄像头的时候得把它清除掉
|
|
63
|
-
*/
|
|
64
|
-
videoStream: SingleLocalStream | null;
|
|
65
65
|
private _recorder;
|
|
66
66
|
private _isRecording;
|
|
67
67
|
private _slicingRecord;
|
|
@@ -6,9 +6,15 @@
|
|
|
6
6
|
* @update: 2023-06-08 16:35
|
|
7
7
|
*/
|
|
8
8
|
import { SingleStream } from "../type";
|
|
9
|
+
import { AudioPlayer } from '@hysc/core';
|
|
9
10
|
export default class AudioPlay {
|
|
10
11
|
playMap: WeakSet<SingleStream>;
|
|
11
|
-
|
|
12
|
+
playerMap: Map<string, AudioPlayer>;
|
|
13
|
+
container: HTMLDivElement | undefined;
|
|
14
|
+
muted: boolean;
|
|
15
|
+
constructor(containerId: string);
|
|
12
16
|
addStream(stream: SingleStream): void;
|
|
17
|
+
removeStream(stream: SingleStream): void;
|
|
13
18
|
play(stream: SingleStream): void;
|
|
19
|
+
mute(mute: boolean): void;
|
|
14
20
|
}
|