@hysc/meeting 6.1.8 → 6.1.9

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,11 +1,10 @@
1
1
  import BoomCore from "@hysc/core";
2
2
  import BMRoomVM, { AudioProfileInfo } from "./BMRoomVM";
3
3
  import BMUserVM from "../BMUser/BMUserVM";
4
- import { SingleLocalStream, SingleRemoteStream } from "../type";
5
- import type { SubscribeOptions } from '@hysc/brtc';
4
+ import { SingleLocalStream, SingleRemoteStream, SubscribeOptions } from "../type";
6
5
  import BMChatVM from "../BMChat/BMChatVM";
7
6
  import BMStreamModelVM from "../BMStream/BMStreamModelVM";
8
- import type { Device, VideoProfile, AudioHint } from "@hysc/brtc";
7
+ import { Device, VideoProfile } from "@hysc/core/esm/BoomAdapter/type/value";
9
8
  import BMRoomInfo from "./BMRoomInfo";
10
9
  import { BehaviorSubject, Subject } from "rxjs";
11
10
  import BMStreamModel, { ConnectErrorMessage } from "../BMStream/BMStreamModel";
@@ -21,6 +20,7 @@ interface MediaPermission {
21
20
  camera: boolean;
22
21
  screen: boolean;
23
22
  }
23
+ export declare type VoiceMode = 'speech' | 'speech-recognition' | 'music' | '';
24
24
  export declare let _selfSortType: number;
25
25
  export declare let autoPlayAudio: boolean;
26
26
  export default class BMRoom {
@@ -79,8 +79,8 @@ export default class BMRoom {
79
79
  mediaPermission: MediaPermission;
80
80
  videoProfile: VideoProfile;
81
81
  audioProfile: AudioProfileInfo | null;
82
- voiceMode: AudioHint;
83
- setVoiceMode(mode: AudioHint): void;
82
+ voiceMode: string;
83
+ setVoiceMode(mode: VoiceMode): void;
84
84
  /**
85
85
  * brtc断网重连要给端上事件响应,所有端上把流单独做处理的,需要在收到这个事件之后,重新处理所有的effect
86
86
  */
@@ -215,7 +215,7 @@ export default class BMRoom {
215
215
  * @param {String} props.userinfo.nickname 用户昵称
216
216
  * @param {String} props.userinfo.avatar 用户头像
217
217
  * @param {String} props.userinfo.pos 客户端类型
218
- * @param {Number} props.types //1:单一模式, 2:混合模式
218
+ * @param {Number} props.type //1:单一模式, 2:混合模式
219
219
  * @param {String} props.name //房间名
220
220
  * @example
221
221
  * {
@@ -223,7 +223,7 @@ export default class BMRoom {
223
223
  host: 'https://v3test.boom.cn',//会议内的请求地址
224
224
  getProxiesUrl: '/api/conference/v1/auth/token',//获取ws地址的路径
225
225
  secret: '',//房间密码
226
- types: 1,
226
+ type: 1,
227
227
  nickname: 'zzy',
228
228
  collection: '',//数据上报地址
229
229
  token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJsb2dpbiIsImlhdCI6MTY1MDA5ODkwMSwibmJmIjoxNjUwMDk4OTAxLCJqdGkiOiIiLCJzdWIiOjk4NSwicHJ2IjoiODdlN2UxYmVlMjcyMmJmMzk4NjQxN2IzMzUxZTVmMjYzODQwY2ExYyIsImF0dHIiOjAsImJkIjowfQ.b-J9TnmjOzaVUJeY83tY_d1rdu_ELAWx8iH3odBN5kE',//用户token
@@ -318,31 +318,31 @@ export default class BMRoom {
318
318
  createPBSingleLocalStream(options?: {
319
319
  video: boolean;
320
320
  audio: boolean;
321
- }, sid?: string): Promise<import("@hysc/brtc").LocalStream>;
321
+ }, sid?: string): Promise<any>;
322
322
  /**
323
323
  * 枚举视频输入设备
324
324
  *
325
325
  * @returns 设备列表
326
326
  */
327
- enumVideoDevices: typeof BRTC.enumVideoDevices;
327
+ enumVideoDevices: any;
328
328
  /**
329
329
  * 枚举音频输入设备
330
330
  *
331
331
  * @returns 设备列表
332
332
  */
333
- enumAudioInputDevices: typeof BRTC.enumAudioInputDevices;
333
+ enumAudioInputDevices: any;
334
334
  /**
335
335
  * 枚举音频输出设备
336
336
  *
337
337
  * @returns 设备列表
338
338
  */
339
- enumAudioOutputDevices: typeof BRTC.enumAudioOutputDevices;
339
+ enumAudioOutputDevices: any;
340
340
  /**
341
341
  * 检查音视频权限
342
342
  */
343
- getPermissions: typeof BRTC.getPermissions;
344
- checkSystemSupport: typeof BRTC.checkSystemSupport;
345
- createStream: typeof BRTC.createStream;
343
+ getPermissions: any;
344
+ checkSystemSupport: any;
345
+ createStream: any;
346
346
  participantNotice: boolean;
347
347
  /**
348
348
  * 订阅远端流
@@ -633,11 +633,9 @@ export default class BMRoom {
633
633
  /**
634
634
  * 处理播放相关的逻辑
635
635
  * @param streamModel
636
- * @param noPlayChanged
637
- * @param shouldPlayBig
638
636
  */
639
- handlePlay(streamModel: BMStreamModel, noPlayChanged: boolean, shouldPlayBig?: boolean): Promise<void>;
640
- handlePlayInBIg(streamModel: BMStreamModel): Promise<void>;
637
+ handlePlay(streamModel: BMStreamModel, force?: boolean): Promise<void>;
638
+ handlePlayInBIg(streamModel: BMStreamModel): void;
641
639
  /**
642
640
  * 处理brtc订阅这股流失败的处理
643
641
  * @param streamModel
@@ -697,7 +695,7 @@ export default class BMRoom {
697
695
  addUser2Queue(pullItem: PullItem): Promise<void>;
698
696
  processUser: (uIds: Map<string, PullItem>) => Promise<void>;
699
697
  queueProcessor: any;
700
- queryBrtcStreams(uids: string[]): Promise<import("@hysc/brtc").RemoteStream[]>;
698
+ queryBrtcStreams(uids: string[]): Promise<any>;
701
699
  handleAddStreams(streams: SingleRemoteStream[]): void;
702
700
  getForceUser(forceId: string): Promise<void>;
703
701
  getVersion(): string;