@hysc/meeting 5.0.64 → 5.0.66

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