@hysc/meeting 1.8.40 → 1.8.42
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/index.js +6 -6
- package/esm/index.js.map +2 -2
- package/esm/src/BMRoom/BMRoomInfo.d.ts +4 -0
- package/esm/src/BMRoom/BMRoomVM.d.ts +5 -0
- package/esm/src/BMStream/BMStreamModel.d.ts +5 -0
- package/esm/src/BMStream/BMStreamModelVM.d.ts +10 -1
- package/esm/src/constants.d.ts +1 -0
- package/esm/src/type/customStats.d.ts +1 -0
- package/esm/src/util/emitter.d.ts +3 -2
- package/package.json +3 -3
- package/umd/index.js +6 -6
- package/umd/src/BMRoom/BMRoomInfo.d.ts +4 -0
- package/umd/src/BMRoom/BMRoomVM.d.ts +5 -0
- package/umd/src/BMStream/BMStreamModel.d.ts +5 -0
- package/umd/src/BMStream/BMStreamModelVM.d.ts +10 -1
- package/umd/src/constants.d.ts +1 -0
- package/umd/src/type/customStats.d.ts +1 -0
- package/umd/src/util/emitter.d.ts +3 -2
|
@@ -209,6 +209,11 @@ export default class BMRoomVM {
|
|
|
209
209
|
*/
|
|
210
210
|
forceOpenUserMic(enable: true | false): Promise<void>;
|
|
211
211
|
/**
|
|
212
|
+
* 入会提示音设置
|
|
213
|
+
* @param enable 0关闭 1开启
|
|
214
|
+
*/
|
|
215
|
+
joinCueVoice(enable: 0 | 1): Promise<void>;
|
|
216
|
+
/**
|
|
212
217
|
* 是否全员可录制
|
|
213
218
|
* @param enable 0全员 1嘉宾 2仅主持人
|
|
214
219
|
*/
|
|
@@ -16,6 +16,11 @@ export interface ConnectErrorMessage {
|
|
|
16
16
|
stream: BMStreamModel;
|
|
17
17
|
isLocal: boolean;
|
|
18
18
|
}
|
|
19
|
+
export interface NoPlayerContainer {
|
|
20
|
+
type: 'share' | 'normal';
|
|
21
|
+
container: 'small' | 'big';
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
19
24
|
export default class BMStreamModel {
|
|
20
25
|
private user;
|
|
21
26
|
private _stream;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* 共享屏幕用户做了特殊处理,因为web端共享屏幕和移动端共享屏幕处理逻辑不一样
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="node" />
|
|
17
|
-
import BMStreamModel from
|
|
17
|
+
import BMStreamModel, { NoPlayerContainer } from "./BMStreamModel";
|
|
18
18
|
import BMUser from '../BMUser/BMUser';
|
|
19
19
|
import { SingleLocalStream, SingleRemoteStream, SingleStream } from '../type';
|
|
20
20
|
import BMRoom from '../BMRoom/BMRoom';
|
|
@@ -72,6 +72,14 @@ export default class BMStreamModelVM {
|
|
|
72
72
|
private _speakerDetector;
|
|
73
73
|
private _speakers;
|
|
74
74
|
speakerWatcher: BehaviorSubject<BMUser | null>;
|
|
75
|
+
/**
|
|
76
|
+
* 窗口没有播放容器的错误处理
|
|
77
|
+
*/
|
|
78
|
+
noContainerWatcher: Subject<BMStreamModel>;
|
|
79
|
+
/**
|
|
80
|
+
* 窗口没有大窗口播放容器的错误处理
|
|
81
|
+
*/
|
|
82
|
+
noBigContainerWatcher: Subject<BMStreamModel>;
|
|
75
83
|
constructor();
|
|
76
84
|
private static filterStreamModels;
|
|
77
85
|
initWithRoom(room: BMRoom): this;
|
|
@@ -180,6 +188,7 @@ export default class BMStreamModelVM {
|
|
|
180
188
|
* 排序变化之后的处理逻辑
|
|
181
189
|
*/
|
|
182
190
|
updateSort: any;
|
|
191
|
+
handleNoContainer: (info: NoPlayerContainer) => void;
|
|
183
192
|
/**
|
|
184
193
|
* 创建canvas,目的是为了捕获空track流,给brtc使用
|
|
185
194
|
*/
|
package/umd/src/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConnectErrorMessage, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
-
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
1
|
+
import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
+
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
3
3
|
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
4
4
|
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
5
5
|
declare type Events = {
|
|
@@ -12,6 +12,7 @@ declare type Events = {
|
|
|
12
12
|
[CHANG_IS_GUEST]: ChangeIsGuest;
|
|
13
13
|
[BIND_ELEMENT]: SubscribeMessage;
|
|
14
14
|
[BIND_BIG_ELEMENT]: SubscribeMessage;
|
|
15
|
+
[NO_CONTAINER]: NoPlayerContainer;
|
|
15
16
|
};
|
|
16
17
|
export declare const emitter: import("mitt").Emitter<Events>;
|
|
17
18
|
export declare const removeEmitter: () => void;
|