@hysc/meeting 10.8.3 → 10.9.0
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 +19 -5
- package/dist/index.d.ts +19 -5
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +5 -4
package/dist/index.d.mts
CHANGED
|
@@ -227,6 +227,10 @@ declare class BMStreamModelVM {
|
|
|
227
227
|
private _speakerDetector;
|
|
228
228
|
private _speakers;
|
|
229
229
|
speakerWatcher: BehaviorSubject<BMUser | null>;
|
|
230
|
+
/** 是否开启降噪 */
|
|
231
|
+
private _enableNoiseFilter;
|
|
232
|
+
/** 是否可以使用降噪 */
|
|
233
|
+
private _canUseNoiseFilter;
|
|
230
234
|
private rtcPublishing;
|
|
231
235
|
/**
|
|
232
236
|
* 窗口没有播放容器的错误处理
|
|
@@ -332,7 +336,12 @@ declare class BMStreamModelVM {
|
|
|
332
336
|
*/
|
|
333
337
|
changeSingleStreamSpeaker(streamModel: BMStreamModel): Promise<void>;
|
|
334
338
|
changeAudioInput(device: Device): Promise<boolean | undefined>;
|
|
335
|
-
|
|
339
|
+
/**
|
|
340
|
+
* 切换视频输入设备
|
|
341
|
+
* @param device
|
|
342
|
+
* @param onlyChangeDevice 是否只切换设备不替换流,默认false
|
|
343
|
+
*/
|
|
344
|
+
changeVideoInput(device: Device, onlyChangeDevice?: boolean): Promise<boolean | undefined>;
|
|
336
345
|
/**
|
|
337
346
|
* 是否静音扬声器
|
|
338
347
|
* @param enable
|
|
@@ -432,6 +441,7 @@ declare class BMStreamModelVM {
|
|
|
432
441
|
* @param {string} status tag 用于区分是什么状态下调用的
|
|
433
442
|
*/
|
|
434
443
|
checkStreamStats(status: string): void;
|
|
444
|
+
setEnableNoiseFilter(enable: boolean, workletPublicUrl?: string): Promise<boolean>;
|
|
435
445
|
clearCache(): void;
|
|
436
446
|
}
|
|
437
447
|
|
|
@@ -504,6 +514,7 @@ declare class BMStreamModel {
|
|
|
504
514
|
*/
|
|
505
515
|
shouldPull: boolean;
|
|
506
516
|
smallPlayFailed: number;
|
|
517
|
+
room: BMRoom | undefined;
|
|
507
518
|
get hasPulled(): boolean;
|
|
508
519
|
set hasPulled(value: boolean);
|
|
509
520
|
/**
|
|
@@ -553,7 +564,7 @@ declare class BMStreamModel {
|
|
|
553
564
|
* @param user
|
|
554
565
|
* @param stream
|
|
555
566
|
*/
|
|
556
|
-
constructor(user: BMUser, stream?: SingleStream, isWhiteboard?: boolean);
|
|
567
|
+
constructor(user: BMUser, room: BMRoom, stream?: SingleStream, isWhiteboard?: boolean);
|
|
557
568
|
/**
|
|
558
569
|
* 生成订阅信息
|
|
559
570
|
*/
|
|
@@ -1762,6 +1773,7 @@ interface BMRoomProps {
|
|
|
1762
1773
|
initDevices: boolean;
|
|
1763
1774
|
/** 是否忽略 拉混流, 上层会使用cdn流去播放的时候,需要忽略混流 */
|
|
1764
1775
|
ignoreMixer: boolean;
|
|
1776
|
+
template_name: string;
|
|
1765
1777
|
}
|
|
1766
1778
|
interface MediaPermission {
|
|
1767
1779
|
microphone: boolean;
|
|
@@ -1880,7 +1892,8 @@ declare class BMRoom {
|
|
|
1880
1892
|
/** 设备是否正在变更中 */
|
|
1881
1893
|
deviceChanging: boolean;
|
|
1882
1894
|
ignoreMixer: boolean;
|
|
1883
|
-
|
|
1895
|
+
template_name: string;
|
|
1896
|
+
constructor({ initDevices, ignoreMixer, template_name }?: BMRoomProps);
|
|
1884
1897
|
/**
|
|
1885
1898
|
* 是否自动播放声音
|
|
1886
1899
|
* @param value
|
|
@@ -2073,9 +2086,10 @@ declare class BMRoom {
|
|
|
2073
2086
|
createSingleLocalStream(options: {
|
|
2074
2087
|
video: boolean;
|
|
2075
2088
|
audio: boolean;
|
|
2089
|
+
noiseSuppression?: boolean | undefined;
|
|
2076
2090
|
videoSource?: MediaStreamTrack | undefined;
|
|
2077
2091
|
audioSource?: MediaStreamTrack | undefined;
|
|
2078
|
-
} | undefined, sid: string): Promise<SingleLocalStream>;
|
|
2092
|
+
} | undefined, sid: string, enableNoisePlugging?: boolean): Promise<SingleLocalStream>;
|
|
2079
2093
|
/**
|
|
2080
2094
|
* 这个方法只是为了生成brtc的流,目的是在用户只打开音频的情况下,然后在打开视频的时候,去创建一个只有视频的track的流
|
|
2081
2095
|
* @param options
|
|
@@ -2405,7 +2419,7 @@ declare class BMRoom {
|
|
|
2405
2419
|
* @param force
|
|
2406
2420
|
*/
|
|
2407
2421
|
handlePlay(streamModel: BMStreamModel, force?: boolean): Promise<void>;
|
|
2408
|
-
handlePlaySmall(streamModel: BMStreamModel): void;
|
|
2422
|
+
handlePlaySmall(streamModel: BMStreamModel, ...args: any[]): void;
|
|
2409
2423
|
handlePlayInBIg(streamModel: BMStreamModel): void;
|
|
2410
2424
|
/**
|
|
2411
2425
|
* 处理brtc订阅这股流失败的处理
|
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,10 @@ declare class BMStreamModelVM {
|
|
|
227
227
|
private _speakerDetector;
|
|
228
228
|
private _speakers;
|
|
229
229
|
speakerWatcher: BehaviorSubject<BMUser | null>;
|
|
230
|
+
/** 是否开启降噪 */
|
|
231
|
+
private _enableNoiseFilter;
|
|
232
|
+
/** 是否可以使用降噪 */
|
|
233
|
+
private _canUseNoiseFilter;
|
|
230
234
|
private rtcPublishing;
|
|
231
235
|
/**
|
|
232
236
|
* 窗口没有播放容器的错误处理
|
|
@@ -332,7 +336,12 @@ declare class BMStreamModelVM {
|
|
|
332
336
|
*/
|
|
333
337
|
changeSingleStreamSpeaker(streamModel: BMStreamModel): Promise<void>;
|
|
334
338
|
changeAudioInput(device: Device): Promise<boolean | undefined>;
|
|
335
|
-
|
|
339
|
+
/**
|
|
340
|
+
* 切换视频输入设备
|
|
341
|
+
* @param device
|
|
342
|
+
* @param onlyChangeDevice 是否只切换设备不替换流,默认false
|
|
343
|
+
*/
|
|
344
|
+
changeVideoInput(device: Device, onlyChangeDevice?: boolean): Promise<boolean | undefined>;
|
|
336
345
|
/**
|
|
337
346
|
* 是否静音扬声器
|
|
338
347
|
* @param enable
|
|
@@ -432,6 +441,7 @@ declare class BMStreamModelVM {
|
|
|
432
441
|
* @param {string} status tag 用于区分是什么状态下调用的
|
|
433
442
|
*/
|
|
434
443
|
checkStreamStats(status: string): void;
|
|
444
|
+
setEnableNoiseFilter(enable: boolean, workletPublicUrl?: string): Promise<boolean>;
|
|
435
445
|
clearCache(): void;
|
|
436
446
|
}
|
|
437
447
|
|
|
@@ -504,6 +514,7 @@ declare class BMStreamModel {
|
|
|
504
514
|
*/
|
|
505
515
|
shouldPull: boolean;
|
|
506
516
|
smallPlayFailed: number;
|
|
517
|
+
room: BMRoom | undefined;
|
|
507
518
|
get hasPulled(): boolean;
|
|
508
519
|
set hasPulled(value: boolean);
|
|
509
520
|
/**
|
|
@@ -553,7 +564,7 @@ declare class BMStreamModel {
|
|
|
553
564
|
* @param user
|
|
554
565
|
* @param stream
|
|
555
566
|
*/
|
|
556
|
-
constructor(user: BMUser, stream?: SingleStream, isWhiteboard?: boolean);
|
|
567
|
+
constructor(user: BMUser, room: BMRoom, stream?: SingleStream, isWhiteboard?: boolean);
|
|
557
568
|
/**
|
|
558
569
|
* 生成订阅信息
|
|
559
570
|
*/
|
|
@@ -1762,6 +1773,7 @@ interface BMRoomProps {
|
|
|
1762
1773
|
initDevices: boolean;
|
|
1763
1774
|
/** 是否忽略 拉混流, 上层会使用cdn流去播放的时候,需要忽略混流 */
|
|
1764
1775
|
ignoreMixer: boolean;
|
|
1776
|
+
template_name: string;
|
|
1765
1777
|
}
|
|
1766
1778
|
interface MediaPermission {
|
|
1767
1779
|
microphone: boolean;
|
|
@@ -1880,7 +1892,8 @@ declare class BMRoom {
|
|
|
1880
1892
|
/** 设备是否正在变更中 */
|
|
1881
1893
|
deviceChanging: boolean;
|
|
1882
1894
|
ignoreMixer: boolean;
|
|
1883
|
-
|
|
1895
|
+
template_name: string;
|
|
1896
|
+
constructor({ initDevices, ignoreMixer, template_name }?: BMRoomProps);
|
|
1884
1897
|
/**
|
|
1885
1898
|
* 是否自动播放声音
|
|
1886
1899
|
* @param value
|
|
@@ -2073,9 +2086,10 @@ declare class BMRoom {
|
|
|
2073
2086
|
createSingleLocalStream(options: {
|
|
2074
2087
|
video: boolean;
|
|
2075
2088
|
audio: boolean;
|
|
2089
|
+
noiseSuppression?: boolean | undefined;
|
|
2076
2090
|
videoSource?: MediaStreamTrack | undefined;
|
|
2077
2091
|
audioSource?: MediaStreamTrack | undefined;
|
|
2078
|
-
} | undefined, sid: string): Promise<SingleLocalStream>;
|
|
2092
|
+
} | undefined, sid: string, enableNoisePlugging?: boolean): Promise<SingleLocalStream>;
|
|
2079
2093
|
/**
|
|
2080
2094
|
* 这个方法只是为了生成brtc的流,目的是在用户只打开音频的情况下,然后在打开视频的时候,去创建一个只有视频的track的流
|
|
2081
2095
|
* @param options
|
|
@@ -2405,7 +2419,7 @@ declare class BMRoom {
|
|
|
2405
2419
|
* @param force
|
|
2406
2420
|
*/
|
|
2407
2421
|
handlePlay(streamModel: BMStreamModel, force?: boolean): Promise<void>;
|
|
2408
|
-
handlePlaySmall(streamModel: BMStreamModel): void;
|
|
2422
|
+
handlePlaySmall(streamModel: BMStreamModel, ...args: any[]): void;
|
|
2409
2423
|
handlePlayInBIg(streamModel: BMStreamModel): void;
|
|
2410
2424
|
/**
|
|
2411
2425
|
* 处理brtc订阅这股流失败的处理
|