@hysc/meeting 3.0.1 → 3.0.3

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.
@@ -17,6 +17,11 @@ export interface ConnectErrorMessage {
17
17
  stream: BMStreamModel;
18
18
  isLocal: boolean;
19
19
  }
20
+ export interface NoPlayerContainer {
21
+ type: 'share' | 'normal';
22
+ container: 'small' | 'big';
23
+ id: string;
24
+ }
20
25
  export default class BMStreamModel {
21
26
  private user;
22
27
  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';
@@ -73,6 +73,14 @@ export default class BMStreamModelVM {
73
73
  private _speakerDetector;
74
74
  private _speakers;
75
75
  speakerWatcher: BehaviorSubject<BMUser | null>;
76
+ /**
77
+ * 窗口没有播放容器的错误处理
78
+ */
79
+ noContainerWatcher: Subject<BMStreamModel>;
80
+ /**
81
+ * 窗口没有大窗口播放容器的错误处理
82
+ */
83
+ noBigContainerWatcher: Subject<BMStreamModel>;
76
84
  constructor();
77
85
  private static filterStreamModels;
78
86
  initWithRoom(room: BMRoom): this;
@@ -181,6 +189,7 @@ export default class BMStreamModelVM {
181
189
  * 排序变化之后的处理逻辑
182
190
  */
183
191
  updateSort: any;
192
+ handleNoContainer: (info: NoPlayerContainer) => void;
184
193
  /**
185
194
  * 创建canvas,目的是为了捕获空track流,给brtc使用
186
195
  */
@@ -106,3 +106,4 @@ export declare const UNSUBSCRIBE_STREAM = "unsubscribe-stream";
106
106
  */
107
107
  export declare const CHANG_IS_GUEST = "change-is-guest";
108
108
  export declare const BIND_BIG_ELEMENT = "bind-big-element";
109
+ export declare const NO_CONTAINER = "no-container";
@@ -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;