@hysc/meeting 10.5.7 → 10.5.8
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/dist/index.d.mts +37 -14
- package/dist/index.d.ts +37 -14
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as BCClient from '@hysc/core';
|
|
2
|
+
import BCClient__default, { ShareMediaOptions, Player, BCUser, AudioPlayer, SMConfig } from '@hysc/core';
|
|
1
3
|
import * as lodash_es from 'lodash-es';
|
|
2
4
|
import * as _hysc_brtc from '@hysc/brtc';
|
|
3
5
|
import { LocalStream, RemoteStream, Device, SubscribeOptions, VideoProfile, AudioHint, StreamCodecOption } from '@hysc/brtc';
|
|
4
|
-
import BCClient, { ShareMediaOptions, Player, BCUser, AudioPlayer, SMConfig } from '@hysc/core';
|
|
5
6
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
6
7
|
import { BoomError } from '@hysc/utils';
|
|
7
8
|
export { Logger } from '@hysc/utils';
|
|
@@ -28,6 +29,25 @@ declare type audioOffWatcherValue = {
|
|
|
28
29
|
selfopenaudio: boolean;
|
|
29
30
|
};
|
|
30
31
|
|
|
32
|
+
/**
|
|
33
|
+
* @name: index.ts
|
|
34
|
+
* @author: yangliye
|
|
35
|
+
* @date: 2022-04-25 13:42
|
|
36
|
+
* @description:index.ts
|
|
37
|
+
* @update: 2022-04-25 13:42
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/** 举手相关操作 */
|
|
41
|
+
interface RaiseHandsParams {
|
|
42
|
+
raiseHandsType: 0 | 1 | 2 | 3 | 4;
|
|
43
|
+
raiseHands: boolean;
|
|
44
|
+
raiseInfo?: {
|
|
45
|
+
userId: string;
|
|
46
|
+
raiseHandTime: number;
|
|
47
|
+
type: 'raiseHandsAudio' | 'raiseHandsVideo' | 'raiseHand';
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
/**
|
|
32
52
|
* @name: BMSpeaker
|
|
33
53
|
* @author: liuxinghai
|
|
@@ -123,12 +143,12 @@ declare class BMMessageInfo {
|
|
|
123
143
|
|
|
124
144
|
declare class BMChatVM {
|
|
125
145
|
messageList: Array<BMMessageInfo>;
|
|
126
|
-
boomCore:
|
|
146
|
+
boomCore: BCClient__default;
|
|
127
147
|
userVM: BMUserVM;
|
|
128
148
|
bmRoom: BMRoom;
|
|
129
149
|
messageListWatcher: BehaviorSubject<Array<BMMessageInfo>>;
|
|
130
150
|
hasDangerMessageWatcher: Subject<boolean>;
|
|
131
|
-
constructor(boomCore:
|
|
151
|
+
constructor(boomCore: BCClient__default, userVM: BMUserVM, bmRoom: BMRoom);
|
|
132
152
|
/**
|
|
133
153
|
* 发送聊天消息
|
|
134
154
|
* @param talkMsg 聊天信息
|
|
@@ -905,7 +925,7 @@ declare class BMUserVM {
|
|
|
905
925
|
signalList: Map<string, BMUser>;
|
|
906
926
|
/** 大房间,普通参会者列表 */
|
|
907
927
|
commonUserList: Map<string, BMUser>;
|
|
908
|
-
boomCore:
|
|
928
|
+
boomCore: BCClient__default;
|
|
909
929
|
room: BMRoom;
|
|
910
930
|
/** 嘉宾及以上列表 */
|
|
911
931
|
userListWatcher: BehaviorSubject<BMUser[]>;
|
|
@@ -919,7 +939,7 @@ declare class BMUserVM {
|
|
|
919
939
|
getForceUserWatcher: BehaviorSubject<boolean>;
|
|
920
940
|
localUser: BMUser;
|
|
921
941
|
commTimer: number;
|
|
922
|
-
constructor(boomCore:
|
|
942
|
+
constructor(boomCore: BCClient__default, localUser: BMUser, room: BMRoom);
|
|
923
943
|
handleUserRoleChange(info: ChangeIsGuest): Promise<void>;
|
|
924
944
|
/**
|
|
925
945
|
* 添加用户, 并返回已添加的用户对象
|
|
@@ -1356,13 +1376,13 @@ interface AudioProfileInfo {
|
|
|
1356
1376
|
}
|
|
1357
1377
|
declare class BMRoomVM {
|
|
1358
1378
|
roomInfo: BMRoomInfo;
|
|
1359
|
-
boomCore:
|
|
1379
|
+
boomCore: BCClient__default;
|
|
1360
1380
|
userVM: BMUserVM;
|
|
1361
1381
|
giveLikeListWatcher: Subject<Array<giveLikeItem>>;
|
|
1362
1382
|
giveLikeList: Array<giveLikeItem>;
|
|
1363
1383
|
private room;
|
|
1364
1384
|
tipQueueObj: any;
|
|
1365
|
-
constructor(boomCore:
|
|
1385
|
+
constructor(boomCore: BCClient__default, userVM: any, roomInfo: BMRoomInfo);
|
|
1366
1386
|
initWithRoom(room: BMRoom): void;
|
|
1367
1387
|
/**
|
|
1368
1388
|
* 踢出用户
|
|
@@ -1425,9 +1445,15 @@ declare class BMRoomVM {
|
|
|
1425
1445
|
* @param raise 举手还是放下举手 true/false
|
|
1426
1446
|
*/
|
|
1427
1447
|
raiseHands(type: 'audio' | 'video' | 'raiseHand', raise: boolean): Promise<void>;
|
|
1448
|
+
/**
|
|
1449
|
+
* 举手相关操作-customMessage信令发送
|
|
1450
|
+
* @param type 视频还是音频举手 audio/video
|
|
1451
|
+
* @param raise 举手还是放下举手 true/false
|
|
1452
|
+
*/
|
|
1453
|
+
raiseHandsByCustomMessage(type: 'audio' | 'video' | 'raiseHand', raise: boolean, userId: string): Promise<boolean>;
|
|
1428
1454
|
/**
|
|
1429
1455
|
* 主持人处理举手操作
|
|
1430
|
-
* @param raiseHandsType 0 音视频 1 音频 2 视频 3 单纯的举手
|
|
1456
|
+
* @param raiseHandsType 0 音视频 1 音频 2 视频 3 单纯的举手 4:通过sendCustomMessage去举手
|
|
1431
1457
|
* @param raiseHands true 同意 false 拒绝
|
|
1432
1458
|
* @param uid 指定的用户Id
|
|
1433
1459
|
* @description 如果不指定用户ID就是广播处理所有的举手的人员
|
|
@@ -1721,7 +1747,7 @@ declare class BMRoom {
|
|
|
1721
1747
|
chatVM: BMChatVM;
|
|
1722
1748
|
bmStreamVm: BMStreamModelVM;
|
|
1723
1749
|
observes: any;
|
|
1724
|
-
boomCore:
|
|
1750
|
+
boomCore: BCClient__default;
|
|
1725
1751
|
videoDevices: Device[];
|
|
1726
1752
|
audioDevices: Device[];
|
|
1727
1753
|
audioOutputDevices: Device[];
|
|
@@ -1763,10 +1789,7 @@ declare class BMRoom {
|
|
|
1763
1789
|
audioDevicesWatcher: Subject<Device[]>;
|
|
1764
1790
|
videoDevicesWatcher: Subject<Device[]>;
|
|
1765
1791
|
audioOutputDevicesWatcher: Subject<Device[]>;
|
|
1766
|
-
raiseHandleRespWatcher: Subject<
|
|
1767
|
-
raiseHandsType: 0 | 1 | 2 | 3;
|
|
1768
|
-
raiseHands: boolean;
|
|
1769
|
-
}>;
|
|
1792
|
+
raiseHandleRespWatcher: Subject<RaiseHandsParams>;
|
|
1770
1793
|
enableAudienceSpeakingWatcher: Subject<boolean>;
|
|
1771
1794
|
deviceChangeWatcher: Subject<boolean>;
|
|
1772
1795
|
mediaPermission: MediaPermission;
|
|
@@ -2420,7 +2443,7 @@ declare class BMRoom {
|
|
|
2420
2443
|
queryBrtcStreams(uids: string[]): Promise<_hysc_brtc.RemoteStream[]>;
|
|
2421
2444
|
handleAddStreams(streams: SingleRemoteStream[]): void;
|
|
2422
2445
|
getForceUser(forceId: string): Promise<void>;
|
|
2423
|
-
queryBloudUsers(uids: string[], forceUpdateSort?: boolean): Promise<
|
|
2446
|
+
queryBloudUsers(uids: string[], forceUpdateSort?: boolean, forceGetStream?: boolean): Promise<Map<string, BCClient.BCUser>>;
|
|
2424
2447
|
getVersion(): string;
|
|
2425
2448
|
}
|
|
2426
2449
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as BCClient from '@hysc/core';
|
|
2
|
+
import BCClient__default, { ShareMediaOptions, Player, BCUser, AudioPlayer, SMConfig } from '@hysc/core';
|
|
1
3
|
import * as lodash_es from 'lodash-es';
|
|
2
4
|
import * as _hysc_brtc from '@hysc/brtc';
|
|
3
5
|
import { LocalStream, RemoteStream, Device, SubscribeOptions, VideoProfile, AudioHint, StreamCodecOption } from '@hysc/brtc';
|
|
4
|
-
import BCClient, { ShareMediaOptions, Player, BCUser, AudioPlayer, SMConfig } from '@hysc/core';
|
|
5
6
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
6
7
|
import { BoomError } from '@hysc/utils';
|
|
7
8
|
export { Logger } from '@hysc/utils';
|
|
@@ -28,6 +29,25 @@ declare type audioOffWatcherValue = {
|
|
|
28
29
|
selfopenaudio: boolean;
|
|
29
30
|
};
|
|
30
31
|
|
|
32
|
+
/**
|
|
33
|
+
* @name: index.ts
|
|
34
|
+
* @author: yangliye
|
|
35
|
+
* @date: 2022-04-25 13:42
|
|
36
|
+
* @description:index.ts
|
|
37
|
+
* @update: 2022-04-25 13:42
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/** 举手相关操作 */
|
|
41
|
+
interface RaiseHandsParams {
|
|
42
|
+
raiseHandsType: 0 | 1 | 2 | 3 | 4;
|
|
43
|
+
raiseHands: boolean;
|
|
44
|
+
raiseInfo?: {
|
|
45
|
+
userId: string;
|
|
46
|
+
raiseHandTime: number;
|
|
47
|
+
type: 'raiseHandsAudio' | 'raiseHandsVideo' | 'raiseHand';
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
/**
|
|
32
52
|
* @name: BMSpeaker
|
|
33
53
|
* @author: liuxinghai
|
|
@@ -123,12 +143,12 @@ declare class BMMessageInfo {
|
|
|
123
143
|
|
|
124
144
|
declare class BMChatVM {
|
|
125
145
|
messageList: Array<BMMessageInfo>;
|
|
126
|
-
boomCore:
|
|
146
|
+
boomCore: BCClient__default;
|
|
127
147
|
userVM: BMUserVM;
|
|
128
148
|
bmRoom: BMRoom;
|
|
129
149
|
messageListWatcher: BehaviorSubject<Array<BMMessageInfo>>;
|
|
130
150
|
hasDangerMessageWatcher: Subject<boolean>;
|
|
131
|
-
constructor(boomCore:
|
|
151
|
+
constructor(boomCore: BCClient__default, userVM: BMUserVM, bmRoom: BMRoom);
|
|
132
152
|
/**
|
|
133
153
|
* 发送聊天消息
|
|
134
154
|
* @param talkMsg 聊天信息
|
|
@@ -905,7 +925,7 @@ declare class BMUserVM {
|
|
|
905
925
|
signalList: Map<string, BMUser>;
|
|
906
926
|
/** 大房间,普通参会者列表 */
|
|
907
927
|
commonUserList: Map<string, BMUser>;
|
|
908
|
-
boomCore:
|
|
928
|
+
boomCore: BCClient__default;
|
|
909
929
|
room: BMRoom;
|
|
910
930
|
/** 嘉宾及以上列表 */
|
|
911
931
|
userListWatcher: BehaviorSubject<BMUser[]>;
|
|
@@ -919,7 +939,7 @@ declare class BMUserVM {
|
|
|
919
939
|
getForceUserWatcher: BehaviorSubject<boolean>;
|
|
920
940
|
localUser: BMUser;
|
|
921
941
|
commTimer: number;
|
|
922
|
-
constructor(boomCore:
|
|
942
|
+
constructor(boomCore: BCClient__default, localUser: BMUser, room: BMRoom);
|
|
923
943
|
handleUserRoleChange(info: ChangeIsGuest): Promise<void>;
|
|
924
944
|
/**
|
|
925
945
|
* 添加用户, 并返回已添加的用户对象
|
|
@@ -1356,13 +1376,13 @@ interface AudioProfileInfo {
|
|
|
1356
1376
|
}
|
|
1357
1377
|
declare class BMRoomVM {
|
|
1358
1378
|
roomInfo: BMRoomInfo;
|
|
1359
|
-
boomCore:
|
|
1379
|
+
boomCore: BCClient__default;
|
|
1360
1380
|
userVM: BMUserVM;
|
|
1361
1381
|
giveLikeListWatcher: Subject<Array<giveLikeItem>>;
|
|
1362
1382
|
giveLikeList: Array<giveLikeItem>;
|
|
1363
1383
|
private room;
|
|
1364
1384
|
tipQueueObj: any;
|
|
1365
|
-
constructor(boomCore:
|
|
1385
|
+
constructor(boomCore: BCClient__default, userVM: any, roomInfo: BMRoomInfo);
|
|
1366
1386
|
initWithRoom(room: BMRoom): void;
|
|
1367
1387
|
/**
|
|
1368
1388
|
* 踢出用户
|
|
@@ -1425,9 +1445,15 @@ declare class BMRoomVM {
|
|
|
1425
1445
|
* @param raise 举手还是放下举手 true/false
|
|
1426
1446
|
*/
|
|
1427
1447
|
raiseHands(type: 'audio' | 'video' | 'raiseHand', raise: boolean): Promise<void>;
|
|
1448
|
+
/**
|
|
1449
|
+
* 举手相关操作-customMessage信令发送
|
|
1450
|
+
* @param type 视频还是音频举手 audio/video
|
|
1451
|
+
* @param raise 举手还是放下举手 true/false
|
|
1452
|
+
*/
|
|
1453
|
+
raiseHandsByCustomMessage(type: 'audio' | 'video' | 'raiseHand', raise: boolean, userId: string): Promise<boolean>;
|
|
1428
1454
|
/**
|
|
1429
1455
|
* 主持人处理举手操作
|
|
1430
|
-
* @param raiseHandsType 0 音视频 1 音频 2 视频 3 单纯的举手
|
|
1456
|
+
* @param raiseHandsType 0 音视频 1 音频 2 视频 3 单纯的举手 4:通过sendCustomMessage去举手
|
|
1431
1457
|
* @param raiseHands true 同意 false 拒绝
|
|
1432
1458
|
* @param uid 指定的用户Id
|
|
1433
1459
|
* @description 如果不指定用户ID就是广播处理所有的举手的人员
|
|
@@ -1721,7 +1747,7 @@ declare class BMRoom {
|
|
|
1721
1747
|
chatVM: BMChatVM;
|
|
1722
1748
|
bmStreamVm: BMStreamModelVM;
|
|
1723
1749
|
observes: any;
|
|
1724
|
-
boomCore:
|
|
1750
|
+
boomCore: BCClient__default;
|
|
1725
1751
|
videoDevices: Device[];
|
|
1726
1752
|
audioDevices: Device[];
|
|
1727
1753
|
audioOutputDevices: Device[];
|
|
@@ -1763,10 +1789,7 @@ declare class BMRoom {
|
|
|
1763
1789
|
audioDevicesWatcher: Subject<Device[]>;
|
|
1764
1790
|
videoDevicesWatcher: Subject<Device[]>;
|
|
1765
1791
|
audioOutputDevicesWatcher: Subject<Device[]>;
|
|
1766
|
-
raiseHandleRespWatcher: Subject<
|
|
1767
|
-
raiseHandsType: 0 | 1 | 2 | 3;
|
|
1768
|
-
raiseHands: boolean;
|
|
1769
|
-
}>;
|
|
1792
|
+
raiseHandleRespWatcher: Subject<RaiseHandsParams>;
|
|
1770
1793
|
enableAudienceSpeakingWatcher: Subject<boolean>;
|
|
1771
1794
|
deviceChangeWatcher: Subject<boolean>;
|
|
1772
1795
|
mediaPermission: MediaPermission;
|
|
@@ -2420,7 +2443,7 @@ declare class BMRoom {
|
|
|
2420
2443
|
queryBrtcStreams(uids: string[]): Promise<_hysc_brtc.RemoteStream[]>;
|
|
2421
2444
|
handleAddStreams(streams: SingleRemoteStream[]): void;
|
|
2422
2445
|
getForceUser(forceId: string): Promise<void>;
|
|
2423
|
-
queryBloudUsers(uids: string[], forceUpdateSort?: boolean): Promise<
|
|
2446
|
+
queryBloudUsers(uids: string[], forceUpdateSort?: boolean, forceGetStream?: boolean): Promise<Map<string, BCClient.BCUser>>;
|
|
2424
2447
|
getVersion(): string;
|
|
2425
2448
|
}
|
|
2426
2449
|
|