@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.
@@ -77,6 +77,10 @@ interface OperationCustomStats {
77
77
  * 是否允许开启虚拟背景 0全员 1嘉宾 2主持人
78
78
  */
79
79
  backgroundAIEnable: 0 | 1 | 2;
80
+ /**
81
+ * 入会提示音设置
82
+ */
83
+ joinCueVoice: 0 | 1;
80
84
  }
81
85
  export default class BMRoomInfo {
82
86
  private room;
@@ -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 './BMStreamModel';
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
  */
@@ -105,3 +105,4 @@ export declare const UNSUBSCRIBE_STREAM = "unsubscribe-stream";
105
105
  */
106
106
  export declare const CHANG_IS_GUEST = "change-is-guest";
107
107
  export declare const BIND_BIG_ELEMENT = "bind-big-element";
108
+ export declare const NO_CONTAINER = "no-container";
@@ -113,5 +113,6 @@ export interface CustomStats {
113
113
  forceOpenUserMic: boolean;
114
114
  forceOpenUserCamera: boolean;
115
115
  onlyOnePersonShare: number;
116
+ joinCueVoice: number;
116
117
  }
117
118
  export declare type PartialCustomStats = Partial<CustomStats>;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hysc/meeting",
3
- "version": "1.8.40",
3
+ "version": "1.8.42",
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": "1.8.27",
17
+ "@hysc/core": "1.8.28",
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.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@hysc/core": "1.8.27"
26
+ "@hysc/core": "1.8.28"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/lodash-es": "^4.17.6"