@hysc/meeting 5.0.66 → 5.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.
- package/esm/boom-meeting/src/BMRoom/BMRoom.d.ts +21 -13
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +18 -10
- package/esm/index.js +2 -2
- package/esm/index.js.map +3 -3
- package/esm/src/BMRoom/BMRoom.d.ts +21 -13
- package/esm/src/BMStream/BMStreamModelVM.d.ts +18 -10
- package/esm/utils/ErrorTypes.d.ts +40 -0
- package/package.json +4 -4
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +21 -13
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +18 -10
- package/umd/index.js +2 -2
- package/umd/utils/ErrorTypes.d.ts +40 -0
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import BoomCore from
|
|
1
|
+
import BoomCore from "@hysc/core";
|
|
2
2
|
import BMRoomVM, { AudioProfileInfo } from "./BMRoomVM";
|
|
3
|
-
import BMUserVM from
|
|
4
|
-
import { SingleLocalStream, SingleRemoteStream, SubscribeOptions } from
|
|
5
|
-
import BMChatVM from
|
|
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
|
|
8
|
-
import BMRoomInfo from
|
|
9
|
-
import { BehaviorSubject, Subject } from
|
|
10
|
-
import BMStreamModel, { ConnectErrorMessage } from
|
|
11
|
-
import BMUser from
|
|
12
|
-
import BMLiveVM from
|
|
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 {
|
|
16
16
|
initDevices: boolean;
|
|
17
17
|
}
|
|
18
|
+
interface MediaPermission {
|
|
19
|
+
microphone: boolean;
|
|
20
|
+
camera: boolean;
|
|
21
|
+
screen: boolean;
|
|
22
|
+
}
|
|
18
23
|
export declare let _selfSortType: number;
|
|
19
24
|
export declare let autoPlayAudio: boolean;
|
|
20
25
|
export default class BMRoom {
|
|
@@ -70,6 +75,7 @@ export default class BMRoom {
|
|
|
70
75
|
raiseHands: boolean;
|
|
71
76
|
}>;
|
|
72
77
|
enableAudienceSpeakingWatcher: Subject<boolean>;
|
|
78
|
+
mediaPermission: MediaPermission;
|
|
73
79
|
videoProfile: VideoProfile;
|
|
74
80
|
audioProfile: AudioProfileInfo | null;
|
|
75
81
|
/**
|
|
@@ -119,6 +125,7 @@ export default class BMRoom {
|
|
|
119
125
|
* @param value
|
|
120
126
|
*/
|
|
121
127
|
setAutoPlayAudio(value: boolean): void;
|
|
128
|
+
setMediaPermission(permission: MediaPermission): void;
|
|
122
129
|
/**
|
|
123
130
|
* 是否应该播放声音
|
|
124
131
|
* @param value
|
|
@@ -297,7 +304,7 @@ export default class BMRoom {
|
|
|
297
304
|
audio: boolean;
|
|
298
305
|
videoSource?: MediaStreamTrack | undefined;
|
|
299
306
|
audioSource?: MediaStreamTrack | undefined;
|
|
300
|
-
} | undefined, sid: string): Promise<
|
|
307
|
+
} | undefined, sid: string): Promise<SingleLocalStream>;
|
|
301
308
|
/**
|
|
302
309
|
* 这个方法只是为了生成brtc的流,目的是在用户只打开音频的情况下,然后在打开视频的时候,去创建一个只有视频的track的流
|
|
303
310
|
* @param options
|
|
@@ -358,7 +365,7 @@ export default class BMRoom {
|
|
|
358
365
|
* @param stream 创建的本地流对象
|
|
359
366
|
* @return
|
|
360
367
|
*/
|
|
361
|
-
publish(stream: SingleLocalStream): Promise<
|
|
368
|
+
publish(stream: SingleLocalStream): Promise<unknown>;
|
|
362
369
|
/**
|
|
363
370
|
* 取消发布本地流。
|
|
364
371
|
* 取消发布本地流后远端会收到 'participant-unpublished' 事件通知。
|
|
@@ -548,6 +555,8 @@ export default class BMRoom {
|
|
|
548
555
|
/**
|
|
549
556
|
* 发送聊天室消息
|
|
550
557
|
* @param msg
|
|
558
|
+
* @param userId
|
|
559
|
+
* @param lostNet
|
|
551
560
|
*/
|
|
552
561
|
sendChatMessage(msg: string, userId: string | undefined, lostNet: boolean): Promise<any>;
|
|
553
562
|
/**
|
|
@@ -627,7 +636,6 @@ export default class BMRoom {
|
|
|
627
636
|
/**
|
|
628
637
|
* 处理流出现connect-error的逻辑,本地流需要重新推流,远端流需要重新拉流
|
|
629
638
|
* @param event
|
|
630
|
-
* @param failed
|
|
631
639
|
*/
|
|
632
640
|
private handleStreamConnectError;
|
|
633
641
|
/**
|
|
@@ -15,15 +15,16 @@
|
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="node" />
|
|
17
17
|
import BMStreamModel, { NoPlayerContainer } from "./BMStreamModel";
|
|
18
|
-
import BMUser from
|
|
19
|
-
import { SingleLocalStream, SingleRemoteStream, SingleStream } from
|
|
20
|
-
import BMRoom from
|
|
21
|
-
import { BehaviorSubject, Subject } from
|
|
22
|
-
import
|
|
23
|
-
import
|
|
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,
|
|
26
|
-
import { BloudStream } from
|
|
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,13 @@ export default class BMStreamModelVM {
|
|
|
73
74
|
* 窗口没有大窗口播放容器的错误处理
|
|
74
75
|
*/
|
|
75
76
|
noBigContainerWatcher: Subject<BMStreamModel>;
|
|
77
|
+
localStreamConnectErrorWatcher: Subject<BoomError>;
|
|
78
|
+
/**
|
|
79
|
+
* 共享屏幕相关错误
|
|
80
|
+
* 包括,共享客户端错误
|
|
81
|
+
* 共享屏幕流错误
|
|
82
|
+
*/
|
|
83
|
+
localShareError: Subject<BoomError>;
|
|
76
84
|
constructor();
|
|
77
85
|
private static filterStreamModels;
|
|
78
86
|
initWithRoom(room: BMRoom): this;
|
|
@@ -161,7 +169,7 @@ export default class BMStreamModelVM {
|
|
|
161
169
|
* @private
|
|
162
170
|
*/
|
|
163
171
|
private createStreamAndPublish;
|
|
164
|
-
publishBloudStream(audio: boolean, video: boolean): void
|
|
172
|
+
publishBloudStream(audio: boolean, video: boolean): Promise<void>;
|
|
165
173
|
muteHandler(type: 'video' | 'audio'): Promise<void>;
|
|
166
174
|
unpublishStream(): Promise<void>;
|
|
167
175
|
/**
|
|
@@ -184,7 +192,7 @@ export default class BMStreamModelVM {
|
|
|
184
192
|
* @param opts.contentHint 视频的contentHint 可选值: '' | 'motion' | 'detail' | 'text'
|
|
185
193
|
*/
|
|
186
194
|
toggleShareScreen(enable: boolean, opts: any, customShare?: Result): Promise<boolean>;
|
|
187
|
-
setShareScreenContentHint(contentHint: '' | 'motion' | 'detail' | 'text'):
|
|
195
|
+
setShareScreenContentHint(contentHint: '' | 'motion' | 'detail' | 'text'): void;
|
|
188
196
|
updateModelSort: any;
|
|
189
197
|
handleNoContainer: (info: NoPlayerContainer) => void;
|
|
190
198
|
/**
|