@hysc/meeting 4.0.84 → 4.0.86
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 +17 -0
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +5 -5
- package/esm/boom-meeting/src/audioPlay/AudioPlay.d.ts +12 -2
- 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 +12 -2
- package/package.json +3 -3
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +17 -0
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +5 -5
- package/umd/boom-meeting/src/audioPlay/AudioPlay.d.ts +12 -2
- package/umd/index.js +1 -1
|
@@ -11,10 +11,12 @@ 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
|
}
|
|
17
18
|
export declare let _selfSortType: number;
|
|
19
|
+
export declare let autoPlayAudio: boolean;
|
|
18
20
|
export default class BMRoom {
|
|
19
21
|
roomVM: BMRoomVM | null;
|
|
20
22
|
userVM: BMUserVM;
|
|
@@ -99,6 +101,8 @@ export default class BMRoom {
|
|
|
99
101
|
brtc: boolean;
|
|
100
102
|
};
|
|
101
103
|
brtcNetEnableWatcher: Subject<boolean>;
|
|
104
|
+
autoPlayAudio: boolean;
|
|
105
|
+
audioPlayer: AudioPlay;
|
|
102
106
|
get isSingleColumns(): boolean;
|
|
103
107
|
/**
|
|
104
108
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
@@ -108,7 +112,20 @@ export default class BMRoom {
|
|
|
108
112
|
localUser: BMUser;
|
|
109
113
|
bmLiveVM: BMLiveVM;
|
|
110
114
|
isInWaitRoom: boolean;
|
|
115
|
+
shouldPlayAudio: boolean;
|
|
111
116
|
constructor({ initDevices }?: BMRoomProps);
|
|
117
|
+
/**
|
|
118
|
+
* 是否自动播放声音
|
|
119
|
+
* @param value
|
|
120
|
+
*/
|
|
121
|
+
setAutoPlayAudio(value: boolean): void;
|
|
122
|
+
/**
|
|
123
|
+
* 是否应该播放声音
|
|
124
|
+
* @param value
|
|
125
|
+
*/
|
|
126
|
+
setShouldPlayAudio(value: boolean): void;
|
|
127
|
+
handleReprocessStreamError: () => void;
|
|
128
|
+
initAudioPlayer(playerContainerId: string): void;
|
|
112
129
|
/**
|
|
113
130
|
* 初始化底层会控相关
|
|
114
131
|
* @param options
|
|
@@ -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,19 @@
|
|
|
6
6
|
* @update: 2023-06-08 16:35
|
|
7
7
|
*/
|
|
8
8
|
import { SingleStream } from "../type";
|
|
9
|
+
import { AudioPlayer } from '@hysc/core';
|
|
10
|
+
import BMRoom from "../BMRoom/BMRoom";
|
|
9
11
|
export default class AudioPlay {
|
|
10
12
|
playMap: WeakSet<SingleStream>;
|
|
11
|
-
|
|
13
|
+
playerMap: Map<string, AudioPlayer>;
|
|
14
|
+
container: HTMLDivElement | undefined;
|
|
15
|
+
muted: boolean;
|
|
16
|
+
room: BMRoom;
|
|
17
|
+
constructor(containerId: string, room: BMRoom);
|
|
12
18
|
addStream(stream: SingleStream): void;
|
|
13
|
-
|
|
19
|
+
removeStream(stream: SingleStream): void;
|
|
20
|
+
play(stream: SingleStream): Promise<void>;
|
|
21
|
+
mute(mute: boolean): void;
|
|
22
|
+
setVolume(streamId: string, volume: number): void;
|
|
23
|
+
setDevice(deviceId: string): void;
|
|
14
24
|
}
|