@hysc/meeting 5.0.55 → 5.0.57

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.
@@ -110,7 +110,10 @@ export declare enum StreamErrorMap {
110
110
  micOccupy = 1319,
111
111
  streamDisconnected = 1320,
112
112
  syncFail = 1321,
113
- getStreamFail = 1322
113
+ getStreamFail = 1322,
114
+ streamConnectError = 1323,
115
+ streamReconnectSuccess = 1324,
116
+ streamReconnectFailed = 1325
114
117
  }
115
118
  export declare const BMCreateStreamError: (message: string) => BoomError;
116
119
  export declare const getStreamError: (message: string) => BoomError;
@@ -125,3 +128,6 @@ export declare const BMMicNotAuthError: () => BoomError;
125
128
  export declare const BMMicOccupyError: () => BoomError;
126
129
  export declare const BMStreamDisconnectedError: (type: string) => BoomError;
127
130
  export declare const BmSyncStreamFailError: () => BoomError;
131
+ export declare const BMStreamConnectError: () => BoomError;
132
+ export declare const BMStreamReconnectSuccess: () => BoomError;
133
+ export declare const BMStreamReconnectFailed: () => BoomError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hysc/meeting",
3
- "version": "5.0.55",
3
+ "version": "5.0.57",
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.53",
17
+ "@hysc/core": "5.0.55",
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.53"
27
+ "@hysc/core": "5.0.55"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/lodash-es": "^4.17.6"
@@ -1,15 +1,15 @@
1
- import BoomCore from '@hysc/core';
1
+ import BoomCore from "@hysc/core";
2
2
  import BMRoomVM, { AudioProfileInfo } from "./BMRoomVM";
3
- import BMUserVM from '../BMUser/BMUserVM';
4
- import { SingleLocalStream, SingleRemoteStream, SubscribeOptions } from '../type';
5
- import BMChatVM from '../BMChat/BMChatVM';
3
+ import BMUserVM from "../BMUser/BMUserVM";
4
+ import { SingleLocalStream, SingleRemoteStream, SubscribeOptions } from "../type";
5
+ import BMChatVM from "../BMChat/BMChatVM";
6
6
  import BMStreamModelVM from "../BMStream/BMStreamModelVM";
7
- import { Device, VideoProfile } from '@hysc/core/esm/BoomAdapter/type/value';
8
- import BMRoomInfo from './BMRoomInfo';
9
- import { BehaviorSubject, Subject } from 'rxjs';
10
- import BMStreamModel, { ConnectErrorMessage } from '../BMStream/BMStreamModel';
11
- import BMUser from '../BMUser/BMUser';
12
- import BMLiveVM from './BMLiveVM';
7
+ import { Device, VideoProfile } from "@hysc/core/esm/BoomAdapter/type/value";
8
+ import BMRoomInfo from "./BMRoomInfo";
9
+ import { BehaviorSubject, Subject } from "rxjs";
10
+ import BMStreamModel, { ConnectErrorMessage } from "../BMStream/BMStreamModel";
11
+ import BMUser from "../BMUser/BMUser";
12
+ import BMLiveVM from "./BMLiveVM";
13
13
  import SingletonQueue, { PullItem } from "../SingletonQueue/SingletonQueue";
14
14
  import AudioPlay from "../audioPlay/AudioPlay";
15
15
  interface BMRoomProps {
@@ -297,7 +297,7 @@ export default class BMRoom {
297
297
  audio: boolean;
298
298
  videoSource?: MediaStreamTrack | undefined;
299
299
  audioSource?: MediaStreamTrack | undefined;
300
- } | undefined, sid: string): Promise<any>;
300
+ } | undefined, sid: string): Promise<SingleLocalStream>;
301
301
  /**
302
302
  * 这个方法只是为了生成brtc的流,目的是在用户只打开音频的情况下,然后在打开视频的时候,去创建一个只有视频的track的流
303
303
  * @param options
@@ -358,7 +358,7 @@ export default class BMRoom {
358
358
  * @param stream 创建的本地流对象
359
359
  * @return
360
360
  */
361
- publish(stream: SingleLocalStream): Promise<any>;
361
+ publish(stream: SingleLocalStream): Promise<unknown>;
362
362
  /**
363
363
  * 取消发布本地流。
364
364
  * 取消发布本地流后远端会收到 'participant-unpublished' 事件通知。
@@ -548,6 +548,8 @@ export default class BMRoom {
548
548
  /**
549
549
  * 发送聊天室消息
550
550
  * @param msg
551
+ * @param userId
552
+ * @param lostNet
551
553
  */
552
554
  sendChatMessage(msg: string, userId: string | undefined, lostNet: boolean): Promise<any>;
553
555
  /**
@@ -627,7 +629,6 @@ export default class BMRoom {
627
629
  /**
628
630
  * 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
629
631
  * @param event
630
- * @param failed
631
632
  */
632
633
  private handleStreamConnectError;
633
634
  /**