@hysc/meeting 6.1.5 → 6.1.7
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 +705 -0
- package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +5 -2
- package/esm/index.js +3 -3
- package/esm/index.js.map +2 -2
- package/esm/src/BMRoom/BMRoom.d.ts +705 -705
- package/esm/src/BMRoom/BMRoomInfo.d.ts +5 -2
- package/package.json +4 -4
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +705 -0
- package/umd/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +5 -2
- package/umd/index.js +3 -3
- package/umd/src/BMRoom/BMRoom.d.ts +15 -15
|
@@ -1,10 +1,11 @@
|
|
|
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
|
|
4
|
+
import { SingleLocalStream, SingleRemoteStream } from "../type";
|
|
5
|
+
import type { SubscribeOptions } from '@hysc/brtc';
|
|
5
6
|
import BMChatVM from "../BMChat/BMChatVM";
|
|
6
7
|
import BMStreamModelVM from "../BMStream/BMStreamModelVM";
|
|
7
|
-
import { Device, VideoProfile } from "@hysc/
|
|
8
|
+
import type { Device, VideoProfile, AudioHint } from "@hysc/brtc";
|
|
8
9
|
import BMRoomInfo from "./BMRoomInfo";
|
|
9
10
|
import { BehaviorSubject, Subject } from "rxjs";
|
|
10
11
|
import BMStreamModel, { ConnectErrorMessage } from "../BMStream/BMStreamModel";
|
|
@@ -20,7 +21,6 @@ interface MediaPermission {
|
|
|
20
21
|
camera: boolean;
|
|
21
22
|
screen: boolean;
|
|
22
23
|
}
|
|
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:
|
|
83
|
-
setVoiceMode(mode:
|
|
82
|
+
voiceMode: AudioHint;
|
|
83
|
+
setVoiceMode(mode: AudioHint): 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.
|
|
218
|
+
* @param {Number} props.types //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
|
-
|
|
226
|
+
types: 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<
|
|
321
|
+
}, sid?: string): Promise<import("@hysc/brtc").LocalStream>;
|
|
322
322
|
/**
|
|
323
323
|
* 枚举视频输入设备
|
|
324
324
|
*
|
|
325
325
|
* @returns 设备列表
|
|
326
326
|
*/
|
|
327
|
-
enumVideoDevices:
|
|
327
|
+
enumVideoDevices: typeof BRTC.enumVideoDevices;
|
|
328
328
|
/**
|
|
329
329
|
* 枚举音频输入设备
|
|
330
330
|
*
|
|
331
331
|
* @returns 设备列表
|
|
332
332
|
*/
|
|
333
|
-
enumAudioInputDevices:
|
|
333
|
+
enumAudioInputDevices: typeof BRTC.enumAudioInputDevices;
|
|
334
334
|
/**
|
|
335
335
|
* 枚举音频输出设备
|
|
336
336
|
*
|
|
337
337
|
* @returns 设备列表
|
|
338
338
|
*/
|
|
339
|
-
enumAudioOutputDevices:
|
|
339
|
+
enumAudioOutputDevices: typeof BRTC.enumAudioOutputDevices;
|
|
340
340
|
/**
|
|
341
341
|
* 检查音视频权限
|
|
342
342
|
*/
|
|
343
|
-
getPermissions:
|
|
344
|
-
checkSystemSupport:
|
|
345
|
-
createStream:
|
|
343
|
+
getPermissions: typeof BRTC.getPermissions;
|
|
344
|
+
checkSystemSupport: typeof BRTC.checkSystemSupport;
|
|
345
|
+
createStream: typeof BRTC.createStream;
|
|
346
346
|
participantNotice: boolean;
|
|
347
347
|
/**
|
|
348
348
|
* 订阅远端流
|
|
@@ -697,7 +697,7 @@ export default class BMRoom {
|
|
|
697
697
|
addUser2Queue(pullItem: PullItem): Promise<void>;
|
|
698
698
|
processUser: (uIds: Map<string, PullItem>) => Promise<void>;
|
|
699
699
|
queueProcessor: any;
|
|
700
|
-
queryBrtcStreams(uids: string[]): Promise<
|
|
700
|
+
queryBrtcStreams(uids: string[]): Promise<import("@hysc/brtc").RemoteStream[]>;
|
|
701
701
|
handleAddStreams(streams: SingleRemoteStream[]): void;
|
|
702
702
|
getForceUser(forceId: string): Promise<void>;
|
|
703
703
|
getVersion(): string;
|