@hysc/meeting 10.0.12 → 10.0.13
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 +35 -4
- package/dist/index.d.ts +35 -4
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lodash_es from 'lodash-es';
|
|
2
2
|
import * as _hysc_brtc from '@hysc/brtc';
|
|
3
|
-
import { LocalStream, RemoteStream, Device, SubscribeOptions, VideoProfile, AudioHint } from '@hysc/brtc';
|
|
3
|
+
import { LocalStream, RemoteStream, Device, SubscribeOptions, VideoProfile, AudioHint, StreamCodecOption } from '@hysc/brtc';
|
|
4
4
|
import BCClient, { BCUser, ShareMediaOptions, Player, AudioPlayer } from '@hysc/core';
|
|
5
5
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
6
6
|
import { BoomError } from '@hysc/utils';
|
|
@@ -379,11 +379,14 @@ declare class BMStreamModelVM {
|
|
|
379
379
|
*/
|
|
380
380
|
localIsShare: boolean;
|
|
381
381
|
isShareWatcher: Subject<boolean>;
|
|
382
|
+
localShareCustomStats: any;
|
|
382
383
|
_speaker_enable: boolean;
|
|
383
384
|
speakerEnableWatcher: BehaviorSubject<boolean>;
|
|
384
385
|
/**
|
|
385
386
|
* 混流
|
|
386
387
|
*/
|
|
388
|
+
mixStreamUid: string | null;
|
|
389
|
+
get mixStreamModel(): BMStreamModel | null | undefined;
|
|
387
390
|
mixStreamModelWatcher: BehaviorSubject<BMStreamModel | null>;
|
|
388
391
|
canvasTimer: NodeJS.Timeout | null;
|
|
389
392
|
private _recorder;
|
|
@@ -409,12 +412,18 @@ declare class BMStreamModelVM {
|
|
|
409
412
|
* 共享屏幕流错误
|
|
410
413
|
*/
|
|
411
414
|
localShareError: Subject<BoomError>;
|
|
415
|
+
localShareEndedError: Subject<boolean>;
|
|
412
416
|
/**
|
|
413
417
|
* 共享屏幕流是单独处理的逻辑,不是先创建streamModel然后在去查流,而是先去查流,在创建streamModel
|
|
414
418
|
*/
|
|
415
419
|
shareBloudStateMap: Map<string, BloudStreamEventState>;
|
|
420
|
+
/**
|
|
421
|
+
* 窗口播放事件,给到端上去做埋点
|
|
422
|
+
*/
|
|
423
|
+
streamPlayWatcher: Subject<StreamPlayMessage>;
|
|
416
424
|
constructor();
|
|
417
425
|
private static filterStreamModels;
|
|
426
|
+
handleStreamPlay: (info: StreamPlayMessage) => void;
|
|
418
427
|
initWithRoom(room: BMRoom): this;
|
|
419
428
|
/**
|
|
420
429
|
* 设置扬声器是否打开
|
|
@@ -576,7 +585,7 @@ declare class BMStreamModelVM {
|
|
|
576
585
|
/**
|
|
577
586
|
* 更新流信息 会给服务端发送updateStream信令,会收到updateStream的广播
|
|
578
587
|
*/
|
|
579
|
-
updateBloudStreamCustomStats(uid: string, streamId: string, streamInfo: StreamCustomInfo): Promise<
|
|
588
|
+
updateBloudStreamCustomStats(uid: string, streamId: string, streamInfo: StreamCustomInfo): Promise<void>;
|
|
580
589
|
/**
|
|
581
590
|
* 布局发生变化之后去调用一下这个方法去检测所有流的播放状态
|
|
582
591
|
* @param {string} status tag 用于区分是什么状态下调用的
|
|
@@ -602,6 +611,9 @@ interface NoPlayerContainer {
|
|
|
602
611
|
container: 'small' | 'big';
|
|
603
612
|
id: string;
|
|
604
613
|
}
|
|
614
|
+
interface StreamPlayMessage {
|
|
615
|
+
uid: string;
|
|
616
|
+
}
|
|
605
617
|
/**
|
|
606
618
|
* 播放器状态
|
|
607
619
|
*/
|
|
@@ -677,7 +689,7 @@ declare class BMStreamModel {
|
|
|
677
689
|
get uuid(): string;
|
|
678
690
|
get isAudience(): boolean;
|
|
679
691
|
/**
|
|
680
|
-
*
|
|
692
|
+
* 因为直播模式中,观众是不展示的
|
|
681
693
|
* 所以这个地方要判断一下
|
|
682
694
|
*/
|
|
683
695
|
get canShow(): boolean;
|
|
@@ -946,6 +958,9 @@ declare class BMUser {
|
|
|
946
958
|
raiseVideoHands: boolean;
|
|
947
959
|
raiseAudioHands: boolean;
|
|
948
960
|
raiseHand: boolean;
|
|
961
|
+
/**
|
|
962
|
+
* 观众
|
|
963
|
+
*/
|
|
949
964
|
isAudience: boolean;
|
|
950
965
|
/**
|
|
951
966
|
* 是不是普通参会者
|
|
@@ -1582,7 +1597,7 @@ declare class BMLiveVM {
|
|
|
1582
1597
|
private get localBMUser();
|
|
1583
1598
|
private get localIsAudience();
|
|
1584
1599
|
/**
|
|
1585
|
-
*
|
|
1600
|
+
* 拉流处理, 观众只拉混流
|
|
1586
1601
|
* @param bmStreamModel
|
|
1587
1602
|
*/
|
|
1588
1603
|
handlePull(bmStreamModel: BMStreamModel): Promise<void>;
|
|
@@ -1600,6 +1615,7 @@ declare class BMLiveVM {
|
|
|
1600
1615
|
* 观众允许发言,允许发言之后,要把所有的流都拉,然后混流静音
|
|
1601
1616
|
*/
|
|
1602
1617
|
handleAudienceEnable(): Promise<void>;
|
|
1618
|
+
handleMixStream(mute: boolean): Promise<void>;
|
|
1603
1619
|
}
|
|
1604
1620
|
|
|
1605
1621
|
/**
|
|
@@ -1696,6 +1712,10 @@ declare class BMRoom {
|
|
|
1696
1712
|
videoProfile: VideoProfile;
|
|
1697
1713
|
audioProfile: AudioProfileInfo | null;
|
|
1698
1714
|
voiceMode: AudioHint;
|
|
1715
|
+
/**
|
|
1716
|
+
* 视频自定义编码设置
|
|
1717
|
+
*/
|
|
1718
|
+
videoEncodeConfig: StreamCodecOption | null;
|
|
1699
1719
|
setVoiceMode(mode: AudioHint): void;
|
|
1700
1720
|
/**
|
|
1701
1721
|
* brtc断网重连要给端上事件响应,所有端上把流单独做处理的,需要在收到这个事件之后,重新处理所有的effect
|
|
@@ -1730,6 +1750,8 @@ declare class BMRoom {
|
|
|
1730
1750
|
audioPlayer: AudioPlay;
|
|
1731
1751
|
private pubFailedTimer;
|
|
1732
1752
|
get isSingleColumns(): boolean;
|
|
1753
|
+
get localIsAudience(): boolean;
|
|
1754
|
+
get shouldIgnoreStream(): boolean;
|
|
1733
1755
|
/**
|
|
1734
1756
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
1735
1757
|
*/
|
|
@@ -1769,6 +1791,15 @@ declare class BMRoom {
|
|
|
1769
1791
|
* @param profile 设置视频分辨率
|
|
1770
1792
|
*/
|
|
1771
1793
|
setVideoProfile(profile: VideoProfile): void;
|
|
1794
|
+
/**
|
|
1795
|
+
* 设置视频分辨率, 需要在入会之前调用
|
|
1796
|
+
* @param encodeConfig
|
|
1797
|
+
* @param encodeConfig.width 宽
|
|
1798
|
+
* @param encodeConfig.height 高
|
|
1799
|
+
* @param encodeConfig.biterate 码率
|
|
1800
|
+
* @param encodeConfig.frameRate 帧率
|
|
1801
|
+
*/
|
|
1802
|
+
setCustomVideoEncodeConfig(encodeConfig: StreamCodecOption): void;
|
|
1772
1803
|
setUserListColumns(column: number): void;
|
|
1773
1804
|
setSortType(type: number): void;
|
|
1774
1805
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lodash_es from 'lodash-es';
|
|
2
2
|
import * as _hysc_brtc from '@hysc/brtc';
|
|
3
|
-
import { LocalStream, RemoteStream, Device, SubscribeOptions, VideoProfile, AudioHint } from '@hysc/brtc';
|
|
3
|
+
import { LocalStream, RemoteStream, Device, SubscribeOptions, VideoProfile, AudioHint, StreamCodecOption } from '@hysc/brtc';
|
|
4
4
|
import BCClient, { BCUser, ShareMediaOptions, Player, AudioPlayer } from '@hysc/core';
|
|
5
5
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
6
6
|
import { BoomError } from '@hysc/utils';
|
|
@@ -379,11 +379,14 @@ declare class BMStreamModelVM {
|
|
|
379
379
|
*/
|
|
380
380
|
localIsShare: boolean;
|
|
381
381
|
isShareWatcher: Subject<boolean>;
|
|
382
|
+
localShareCustomStats: any;
|
|
382
383
|
_speaker_enable: boolean;
|
|
383
384
|
speakerEnableWatcher: BehaviorSubject<boolean>;
|
|
384
385
|
/**
|
|
385
386
|
* 混流
|
|
386
387
|
*/
|
|
388
|
+
mixStreamUid: string | null;
|
|
389
|
+
get mixStreamModel(): BMStreamModel | null | undefined;
|
|
387
390
|
mixStreamModelWatcher: BehaviorSubject<BMStreamModel | null>;
|
|
388
391
|
canvasTimer: NodeJS.Timeout | null;
|
|
389
392
|
private _recorder;
|
|
@@ -409,12 +412,18 @@ declare class BMStreamModelVM {
|
|
|
409
412
|
* 共享屏幕流错误
|
|
410
413
|
*/
|
|
411
414
|
localShareError: Subject<BoomError>;
|
|
415
|
+
localShareEndedError: Subject<boolean>;
|
|
412
416
|
/**
|
|
413
417
|
* 共享屏幕流是单独处理的逻辑,不是先创建streamModel然后在去查流,而是先去查流,在创建streamModel
|
|
414
418
|
*/
|
|
415
419
|
shareBloudStateMap: Map<string, BloudStreamEventState>;
|
|
420
|
+
/**
|
|
421
|
+
* 窗口播放事件,给到端上去做埋点
|
|
422
|
+
*/
|
|
423
|
+
streamPlayWatcher: Subject<StreamPlayMessage>;
|
|
416
424
|
constructor();
|
|
417
425
|
private static filterStreamModels;
|
|
426
|
+
handleStreamPlay: (info: StreamPlayMessage) => void;
|
|
418
427
|
initWithRoom(room: BMRoom): this;
|
|
419
428
|
/**
|
|
420
429
|
* 设置扬声器是否打开
|
|
@@ -576,7 +585,7 @@ declare class BMStreamModelVM {
|
|
|
576
585
|
/**
|
|
577
586
|
* 更新流信息 会给服务端发送updateStream信令,会收到updateStream的广播
|
|
578
587
|
*/
|
|
579
|
-
updateBloudStreamCustomStats(uid: string, streamId: string, streamInfo: StreamCustomInfo): Promise<
|
|
588
|
+
updateBloudStreamCustomStats(uid: string, streamId: string, streamInfo: StreamCustomInfo): Promise<void>;
|
|
580
589
|
/**
|
|
581
590
|
* 布局发生变化之后去调用一下这个方法去检测所有流的播放状态
|
|
582
591
|
* @param {string} status tag 用于区分是什么状态下调用的
|
|
@@ -602,6 +611,9 @@ interface NoPlayerContainer {
|
|
|
602
611
|
container: 'small' | 'big';
|
|
603
612
|
id: string;
|
|
604
613
|
}
|
|
614
|
+
interface StreamPlayMessage {
|
|
615
|
+
uid: string;
|
|
616
|
+
}
|
|
605
617
|
/**
|
|
606
618
|
* 播放器状态
|
|
607
619
|
*/
|
|
@@ -677,7 +689,7 @@ declare class BMStreamModel {
|
|
|
677
689
|
get uuid(): string;
|
|
678
690
|
get isAudience(): boolean;
|
|
679
691
|
/**
|
|
680
|
-
*
|
|
692
|
+
* 因为直播模式中,观众是不展示的
|
|
681
693
|
* 所以这个地方要判断一下
|
|
682
694
|
*/
|
|
683
695
|
get canShow(): boolean;
|
|
@@ -946,6 +958,9 @@ declare class BMUser {
|
|
|
946
958
|
raiseVideoHands: boolean;
|
|
947
959
|
raiseAudioHands: boolean;
|
|
948
960
|
raiseHand: boolean;
|
|
961
|
+
/**
|
|
962
|
+
* 观众
|
|
963
|
+
*/
|
|
949
964
|
isAudience: boolean;
|
|
950
965
|
/**
|
|
951
966
|
* 是不是普通参会者
|
|
@@ -1582,7 +1597,7 @@ declare class BMLiveVM {
|
|
|
1582
1597
|
private get localBMUser();
|
|
1583
1598
|
private get localIsAudience();
|
|
1584
1599
|
/**
|
|
1585
|
-
*
|
|
1600
|
+
* 拉流处理, 观众只拉混流
|
|
1586
1601
|
* @param bmStreamModel
|
|
1587
1602
|
*/
|
|
1588
1603
|
handlePull(bmStreamModel: BMStreamModel): Promise<void>;
|
|
@@ -1600,6 +1615,7 @@ declare class BMLiveVM {
|
|
|
1600
1615
|
* 观众允许发言,允许发言之后,要把所有的流都拉,然后混流静音
|
|
1601
1616
|
*/
|
|
1602
1617
|
handleAudienceEnable(): Promise<void>;
|
|
1618
|
+
handleMixStream(mute: boolean): Promise<void>;
|
|
1603
1619
|
}
|
|
1604
1620
|
|
|
1605
1621
|
/**
|
|
@@ -1696,6 +1712,10 @@ declare class BMRoom {
|
|
|
1696
1712
|
videoProfile: VideoProfile;
|
|
1697
1713
|
audioProfile: AudioProfileInfo | null;
|
|
1698
1714
|
voiceMode: AudioHint;
|
|
1715
|
+
/**
|
|
1716
|
+
* 视频自定义编码设置
|
|
1717
|
+
*/
|
|
1718
|
+
videoEncodeConfig: StreamCodecOption | null;
|
|
1699
1719
|
setVoiceMode(mode: AudioHint): void;
|
|
1700
1720
|
/**
|
|
1701
1721
|
* brtc断网重连要给端上事件响应,所有端上把流单独做处理的,需要在收到这个事件之后,重新处理所有的effect
|
|
@@ -1730,6 +1750,8 @@ declare class BMRoom {
|
|
|
1730
1750
|
audioPlayer: AudioPlay;
|
|
1731
1751
|
private pubFailedTimer;
|
|
1732
1752
|
get isSingleColumns(): boolean;
|
|
1753
|
+
get localIsAudience(): boolean;
|
|
1754
|
+
get shouldIgnoreStream(): boolean;
|
|
1733
1755
|
/**
|
|
1734
1756
|
* 传递信息用的,主要是用于message信令往上层业务发送消息
|
|
1735
1757
|
*/
|
|
@@ -1769,6 +1791,15 @@ declare class BMRoom {
|
|
|
1769
1791
|
* @param profile 设置视频分辨率
|
|
1770
1792
|
*/
|
|
1771
1793
|
setVideoProfile(profile: VideoProfile): void;
|
|
1794
|
+
/**
|
|
1795
|
+
* 设置视频分辨率, 需要在入会之前调用
|
|
1796
|
+
* @param encodeConfig
|
|
1797
|
+
* @param encodeConfig.width 宽
|
|
1798
|
+
* @param encodeConfig.height 高
|
|
1799
|
+
* @param encodeConfig.biterate 码率
|
|
1800
|
+
* @param encodeConfig.frameRate 帧率
|
|
1801
|
+
*/
|
|
1802
|
+
setCustomVideoEncodeConfig(encodeConfig: StreamCodecOption): void;
|
|
1772
1803
|
setUserListColumns(column: number): void;
|
|
1773
1804
|
setSortType(type: number): void;
|
|
1774
1805
|
/**
|