@hysc/meeting 5.0.54 → 5.0.56

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.
@@ -15,15 +15,16 @@
15
15
  */
16
16
  /// <reference types="node" />
17
17
  import BMStreamModel, { NoPlayerContainer } from "./BMStreamModel";
18
- import BMUser from '../BMUser/BMUser';
19
- import { SingleLocalStream, SingleRemoteStream, SingleStream } from '../type';
20
- import BMRoom from '../BMRoom/BMRoom';
21
- import { BehaviorSubject, Subject } from 'rxjs';
22
- import { Device } from '@hysc/core/esm/BoomAdapter/type/value';
23
- import BMSpeaker from './BMSpeaker';
18
+ import BMUser from "../BMUser/BMUser";
19
+ import { SingleLocalStream, SingleRemoteStream, SingleStream } from "../type";
20
+ import BMRoom from "../BMRoom/BMRoom";
21
+ import { BehaviorSubject, Subject } from "rxjs";
22
+ import BoomError from "../error/RTCError";
23
+ import { Device } from "@hysc/core/esm/BoomAdapter/type/value";
24
+ import BMSpeaker from "./BMSpeaker";
24
25
  import { ShareMediaOptions } from "@hysc/core/esm/BoomCore/BCClient/BCClient";
25
- import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from "./getHTMLMediaStreamOptions";
26
- import { BloudStream } from '@hysc/core';
26
+ import { getHTMLMediaStreamOptions, getMediaStreamInfo, Result } from "./getHTMLMediaStreamOptions";
27
+ import { BloudStream } from "@hysc/core";
27
28
  export declare function transShareScreen2User(userId: string): string;
28
29
  export default class BMStreamModelVM {
29
30
  streamModels: Map<string, BMStreamModel>;
@@ -73,6 +74,7 @@ export default class BMStreamModelVM {
73
74
  * 窗口没有大窗口播放容器的错误处理
74
75
  */
75
76
  noBigContainerWatcher: Subject<BMStreamModel>;
77
+ localStreamConnectErrorWatcher: Subject<BoomError>;
76
78
  constructor();
77
79
  private static filterStreamModels;
78
80
  initWithRoom(room: BMRoom): this;
@@ -97,3 +97,37 @@ export declare const BmUpdateCustomStatsError: (msg: string) => BoomError;
97
97
  export declare const BmChangeVideoProfileError: (msg: string) => BoomError;
98
98
  export declare const BmChangeAudioProfileError: (msg: string) => BoomError;
99
99
  export declare const BmCheckDeviceError: (msg: string) => BoomError;
100
+ export declare enum StreamErrorMap {
101
+ createStream = 1302,
102
+ noCameraDevice = 1303,
103
+ noMicroDevice = 1304,
104
+ noSpeakerDevice = 1305,
105
+ openCamera = 1301,
106
+ cameraNotAuth = 1314,
107
+ cameraOccupy = 1315,
108
+ openMicro = 1302,
109
+ micNotAuth = 1317,
110
+ micOccupy = 1319,
111
+ streamDisconnected = 1320,
112
+ syncFail = 1321,
113
+ getStreamFail = 1322,
114
+ streamConnectError = 1323,
115
+ streamReconnectSuccess = 1324,
116
+ streamReconnectFailed = 1325
117
+ }
118
+ export declare const BMCreateStreamError: (message: string) => BoomError;
119
+ export declare const getStreamError: (message: string) => BoomError;
120
+ export declare const BMNoCameraError: () => BoomError;
121
+ export declare const BMNoMicroError: () => BoomError;
122
+ export declare const BMNoSpeakerError: () => BoomError;
123
+ export declare const BMOpenCameraError: () => BoomError;
124
+ export declare const BMCameraNotAuthError: () => BoomError;
125
+ export declare const BMCameraOccupyError: () => BoomError;
126
+ export declare const BMOpenMicroError: () => BoomError;
127
+ export declare const BMMicNotAuthError: () => BoomError;
128
+ export declare const BMMicOccupyError: () => BoomError;
129
+ export declare const BMStreamDisconnectedError: (type: string) => BoomError;
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.54",
3
+ "version": "5.0.56",
4
4
  "description": "boom meeting",
5
5
  "main": "umd/index.js",
6
6
  "module": "esm/index.js",
@@ -14,17 +14,17 @@
14
14
  "author": "yangliye",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@hysc/core": "5.0.52",
17
+ "@hysc/core": "5.0.54",
18
18
  "@hysc/logger": "1.0.0",
19
19
  "lodash-es": "^4.17.21",
20
20
  "mitt": "^3.0.0",
21
21
  "@hysc/p-queue": "6.3.0",
22
22
  "rxjs": "^7.5.5",
23
23
  "typescript": "^4.6.3",
24
- "@hysc/utils": "1.2.3"
24
+ "@hysc/utils": "1.2.4"
25
25
  },
26
26
  "peerDependencies": {
27
- "@hysc/core": "5.0.52"
27
+ "@hysc/core": "5.0.54"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/lodash-es": "^4.17.6"
@@ -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' 事件通知。
@@ -15,15 +15,16 @@
15
15
  */
16
16
  /// <reference types="node" />
17
17
  import BMStreamModel, { NoPlayerContainer } from "./BMStreamModel";
18
- import BMUser from '../BMUser/BMUser';
19
- import { SingleLocalStream, SingleRemoteStream, SingleStream } from '../type';
20
- import BMRoom from '../BMRoom/BMRoom';
21
- import { BehaviorSubject, Subject } from 'rxjs';
22
- import { Device } from '@hysc/core/esm/BoomAdapter/type/value';
23
- import BMSpeaker from './BMSpeaker';
18
+ import BMUser from "../BMUser/BMUser";
19
+ import { SingleLocalStream, SingleRemoteStream, SingleStream } from "../type";
20
+ import BMRoom from "../BMRoom/BMRoom";
21
+ import { BehaviorSubject, Subject } from "rxjs";
22
+ import BoomError from "../error/RTCError";
23
+ import { Device } from "@hysc/core/esm/BoomAdapter/type/value";
24
+ import BMSpeaker from "./BMSpeaker";
24
25
  import { ShareMediaOptions } from "@hysc/core/esm/BoomCore/BCClient/BCClient";
25
- import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from "./getHTMLMediaStreamOptions";
26
- import { BloudStream } from '@hysc/core';
26
+ import { getHTMLMediaStreamOptions, getMediaStreamInfo, Result } from "./getHTMLMediaStreamOptions";
27
+ import { BloudStream } from "@hysc/core";
27
28
  export declare function transShareScreen2User(userId: string): string;
28
29
  export default class BMStreamModelVM {
29
30
  streamModels: Map<string, BMStreamModel>;
@@ -73,6 +74,7 @@ export default class BMStreamModelVM {
73
74
  * 窗口没有大窗口播放容器的错误处理
74
75
  */
75
76
  noBigContainerWatcher: Subject<BMStreamModel>;
77
+ localStreamConnectErrorWatcher: Subject<BoomError>;
76
78
  constructor();
77
79
  private static filterStreamModels;
78
80
  initWithRoom(room: BMRoom): this;