@hysc/meeting 5.0.73 → 10.0.67

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.
@@ -1,7 +1,6 @@
1
1
  import { SingleStream, SubscribeOptions } from "../type";
2
2
  import BMUser from "../BMUser/BMUser";
3
3
  import { BehaviorSubject, Subject } from "rxjs";
4
- import { Player } from "@hysc/core/esm";
5
4
  import BMStreamModelVM from "./BMStreamModelVM";
6
5
  import { BloudStreamState } from "../handleEvent/attachEvents";
7
6
  /**
@@ -74,8 +73,8 @@ export default class BMStreamModel {
74
73
  */
75
74
  pulledStreamGoal: StreamType;
76
75
  bigPlayerId: string;
77
- player: Player | undefined | null;
78
- isPlayingBig: boolean;
76
+ private player;
77
+ private isPlayingBig;
79
78
  /**
80
79
  * 是否静音了扬声器,brtc不会处理业务上静音的逻辑,所以需要自己处理
81
80
  * 如果静音了,就把所有的流都重新静音播放一遍
@@ -226,7 +225,7 @@ export default class BMStreamModel {
226
225
  * 在大窗口播放该流的时候调用这个方法
227
226
  * @param mute 是否静音 默认true
228
227
  */
229
- playInBig: import("lodash-es").DebouncedFunc<() => Promise<void>>;
228
+ playInBig: import("lodash-es").DebouncedFunc<(mute?: any) => Promise<void>>;
230
229
  private initBigPlayer;
231
230
  /**
232
231
  * 停止播放当前流
@@ -251,7 +250,7 @@ export default class BMStreamModel {
251
250
  *
252
251
  * @returns
253
252
  */
254
- resume(): void;
253
+ resume(): Promise<any> | undefined;
255
254
  /**
256
255
  * 是否有音频流
257
256
  */
@@ -8,14 +8,12 @@
8
8
  import { SingleStream } from "../type";
9
9
  import { AudioPlayer } from '@hysc/core';
10
10
  import BMRoom from "../BMRoom/BMRoom";
11
- import { Subject } from "rxjs";
12
11
  export default class AudioPlay {
13
12
  playMap: WeakSet<SingleStream>;
14
13
  playerMap: Map<string, AudioPlayer>;
15
14
  container: HTMLDivElement | undefined;
16
15
  muted: boolean;
17
16
  room: BMRoom;
18
- playStateChangeWatcher: Subject<AudioPlayer>;
19
17
  constructor(containerId: string, room: BMRoom);
20
18
  addStream(stream: SingleStream): void;
21
19
  removeStream(stream: SingleStream): void;
@@ -23,6 +21,4 @@ export default class AudioPlay {
23
21
  mute(mute: boolean): void;
24
22
  setVolume(streamId: string, volume: number): void;
25
23
  setDevice(deviceId: string): void;
26
- addPlayerEvent(player: AudioPlayer): void;
27
- destroy(): void;
28
24
  }
@@ -114,4 +114,3 @@ export declare const NO_CONTAINER = "no-container";
114
114
  export declare const MODEL_SORT_NUM_CHANGE = "model-sort-num-change";
115
115
  export declare const ADD_PULL_USER = "add-pull-user";
116
116
  export declare const SET_VOLUME = "set-volume";
117
- export declare const ADD_AUDIO_PLAY = "add-audio-play";
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Emitter } from "mitt";
9
9
  import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
10
- import { ADD_AUDIO_PLAY, ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
10
+ import { ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
11
11
  import { RaiseHandInfo } from "../BMUser/BMUser";
12
12
  import { ChangeIsGuest } from "../BMUser/BMUserVM";
13
13
  import { PullItem } from "../SingletonQueue/SingletonQueue";
@@ -33,7 +33,6 @@ declare type Events = {
33
33
  [MODEL_SORT_NUM_CHANGE]: null;
34
34
  [ADD_PULL_USER]: PullItem;
35
35
  [SET_VOLUME]: VolumeInfo;
36
- [ADD_AUDIO_PLAY]: SubscribeMessage;
37
36
  };
38
37
  export default class BoomEmitter {
39
38
  static emitter: Emitter<Events> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hysc/meeting",
3
- "version": "5.0.73",
3
+ "version": "10.0.67",
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": "5.0.71",
17
+ "@hysc/core": "10.0.65",
18
18
  "@hysc/logger": "1.0.0",
19
19
  "lodash-es": "^4.17.21",
20
20
  "mitt": "^3.0.0",
@@ -24,7 +24,7 @@
24
24
  "@hysc/utils": "1.2.4"
25
25
  },
26
26
  "peerDependencies": {
27
- "@hysc/core": "5.0.71"
27
+ "@hysc/core": "10.0.65"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/lodash-es": "^4.17.6"
@@ -421,7 +421,6 @@ export declare enum BCEvent {
421
421
  BRTC_ROOM_RECONNECTED = "brtc-room-reconnected",
422
422
  JOIN_READY = "join-ready",
423
423
  BRTC_SHARE_SYNC_ROOM_COMPLETED = "brtc-share-sync-room-completed",
424
- LEAVE_USERS = "leaveUsers",
425
- ROOM_ERROR = "error-room"
424
+ LEAVE_USERS = "leaveUsers"
426
425
  }
427
426
  export default BCEvent;
@@ -1,7 +1,6 @@
1
1
  import { SingleStream, SubscribeOptions } from "../type";
2
2
  import BMUser from "../BMUser/BMUser";
3
3
  import { BehaviorSubject, Subject } from "rxjs";
4
- import { Player } from "@hysc/core/esm";
5
4
  import BMStreamModelVM from "./BMStreamModelVM";
6
5
  import { BloudStreamState } from "../handleEvent/attachEvents";
7
6
  /**
@@ -74,8 +73,8 @@ export default class BMStreamModel {
74
73
  */
75
74
  pulledStreamGoal: StreamType;
76
75
  bigPlayerId: string;
77
- player: Player | undefined | null;
78
- isPlayingBig: boolean;
76
+ private player;
77
+ private isPlayingBig;
79
78
  /**
80
79
  * 是否静音了扬声器,brtc不会处理业务上静音的逻辑,所以需要自己处理
81
80
  * 如果静音了,就把所有的流都重新静音播放一遍
@@ -251,7 +250,7 @@ export default class BMStreamModel {
251
250
  *
252
251
  * @returns
253
252
  */
254
- resume(): void;
253
+ resume(): Promise<any> | undefined;
255
254
  /**
256
255
  * 是否有音频流
257
256
  */
@@ -8,14 +8,12 @@
8
8
  import { SingleStream } from "../type";
9
9
  import { AudioPlayer } from '@hysc/core';
10
10
  import BMRoom from "../BMRoom/BMRoom";
11
- import { Subject } from "rxjs";
12
11
  export default class AudioPlay {
13
12
  playMap: WeakSet<SingleStream>;
14
13
  playerMap: Map<string, AudioPlayer>;
15
14
  container: HTMLDivElement | undefined;
16
15
  muted: boolean;
17
16
  room: BMRoom;
18
- playStateChangeWatcher: Subject<AudioPlayer>;
19
17
  constructor(containerId: string, room: BMRoom);
20
18
  addStream(stream: SingleStream): void;
21
19
  removeStream(stream: SingleStream): void;
@@ -23,6 +21,4 @@ export default class AudioPlay {
23
21
  mute(mute: boolean): void;
24
22
  setVolume(streamId: string, volume: number): void;
25
23
  setDevice(deviceId: string): void;
26
- addPlayerEvent(player: AudioPlayer): void;
27
- destroy(): void;
28
24
  }
@@ -114,4 +114,3 @@ export declare const NO_CONTAINER = "no-container";
114
114
  export declare const MODEL_SORT_NUM_CHANGE = "model-sort-num-change";
115
115
  export declare const ADD_PULL_USER = "add-pull-user";
116
116
  export declare const SET_VOLUME = "set-volume";
117
- export declare const ADD_AUDIO_PLAY = "add-audio-play";
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Emitter } from "mitt";
9
9
  import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
10
- import { ADD_AUDIO_PLAY, ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
10
+ import { ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
11
11
  import { RaiseHandInfo } from "../BMUser/BMUser";
12
12
  import { ChangeIsGuest } from "../BMUser/BMUserVM";
13
13
  import { PullItem } from "../SingletonQueue/SingletonQueue";
@@ -33,7 +33,6 @@ declare type Events = {
33
33
  [MODEL_SORT_NUM_CHANGE]: null;
34
34
  [ADD_PULL_USER]: PullItem;
35
35
  [SET_VOLUME]: VolumeInfo;
36
- [ADD_AUDIO_PLAY]: SubscribeMessage;
37
36
  };
38
37
  export default class BoomEmitter {
39
38
  static emitter: Emitter<Events> | undefined;