@hysc/meeting 10.5.9 → 10.6.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 CHANGED
@@ -1704,12 +1704,12 @@ declare class BMLiveVM {
1704
1704
  /**
1705
1705
  * 处理观众端举手发言完了,然后在禁止发言,这个时候,没有必要在拉所有人的流,把除了混流的人的流都取消订阅,然后播放混流的声音
1706
1706
  */
1707
- handleAudienceDisable(): Promise<void>;
1707
+ handleAudienceDisable(callback?: (mute: boolean) => void): Promise<void>;
1708
1708
  /**
1709
1709
  * 观众允许发言,允许发言之后,要把所有的流都拉,然后混流静音
1710
1710
  */
1711
- handleAudienceEnable(): Promise<void>;
1712
- handleMixStream(mute: boolean): Promise<void>;
1711
+ handleAudienceEnable(callback?: (mute: boolean) => void): Promise<void>;
1712
+ handleMixStream(mute: boolean, callback?: (mute: boolean) => void): Promise<void>;
1713
1713
  }
1714
1714
 
1715
1715
  /**
@@ -1749,6 +1749,8 @@ declare type PullItem = {
1749
1749
  };
1750
1750
  interface BMRoomProps {
1751
1751
  initDevices: boolean;
1752
+ /** 是否忽略 拉混流, 上层会使用cdn流去播放的时候,需要忽略混流 */
1753
+ ignoreMixer: boolean;
1752
1754
  }
1753
1755
  interface MediaPermission {
1754
1756
  microphone: boolean;
@@ -1865,7 +1867,8 @@ declare class BMRoom {
1865
1867
  shouldPlayAudio: boolean;
1866
1868
  /** 设备是否正在变更中 */
1867
1869
  deviceChanging: boolean;
1868
- constructor({ initDevices }?: BMRoomProps);
1870
+ ignoreMixer: boolean;
1871
+ constructor({ initDevices, ignoreMixer }?: BMRoomProps);
1869
1872
  /**
1870
1873
  * 是否自动播放声音
1871
1874
  * @param value
package/dist/index.d.ts CHANGED
@@ -1704,12 +1704,12 @@ declare class BMLiveVM {
1704
1704
  /**
1705
1705
  * 处理观众端举手发言完了,然后在禁止发言,这个时候,没有必要在拉所有人的流,把除了混流的人的流都取消订阅,然后播放混流的声音
1706
1706
  */
1707
- handleAudienceDisable(): Promise<void>;
1707
+ handleAudienceDisable(callback?: (mute: boolean) => void): Promise<void>;
1708
1708
  /**
1709
1709
  * 观众允许发言,允许发言之后,要把所有的流都拉,然后混流静音
1710
1710
  */
1711
- handleAudienceEnable(): Promise<void>;
1712
- handleMixStream(mute: boolean): Promise<void>;
1711
+ handleAudienceEnable(callback?: (mute: boolean) => void): Promise<void>;
1712
+ handleMixStream(mute: boolean, callback?: (mute: boolean) => void): Promise<void>;
1713
1713
  }
1714
1714
 
1715
1715
  /**
@@ -1749,6 +1749,8 @@ declare type PullItem = {
1749
1749
  };
1750
1750
  interface BMRoomProps {
1751
1751
  initDevices: boolean;
1752
+ /** 是否忽略 拉混流, 上层会使用cdn流去播放的时候,需要忽略混流 */
1753
+ ignoreMixer: boolean;
1752
1754
  }
1753
1755
  interface MediaPermission {
1754
1756
  microphone: boolean;
@@ -1865,7 +1867,8 @@ declare class BMRoom {
1865
1867
  shouldPlayAudio: boolean;
1866
1868
  /** 设备是否正在变更中 */
1867
1869
  deviceChanging: boolean;
1868
- constructor({ initDevices }?: BMRoomProps);
1870
+ ignoreMixer: boolean;
1871
+ constructor({ initDevices, ignoreMixer }?: BMRoomProps);
1869
1872
  /**
1870
1873
  * 是否自动播放声音
1871
1874
  * @param value