@hysc/meeting 10.6.6 → 10.6.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 CHANGED
@@ -306,12 +306,13 @@ declare class BMStreamModelVM {
306
306
  /**
307
307
  * brtc流更新状态失败,这个时候重新推流
308
308
  */
309
- handleStreamUpdateFailed(): Promise<void>;
309
+ handleStreamUpdateFailed(release?: boolean): Promise<void>;
310
310
  /**
311
311
  * 开关本地麦克风
312
312
  * @param status true:开,false:关
313
+ * @param release 是否释放音频流,默认false
313
314
  */
314
- setLocalAudioEnable(status: boolean): Promise<undefined>;
315
+ setLocalAudioEnable(status: boolean, release?: boolean): Promise<undefined>;
315
316
  /**
316
317
  * 该方法只是在入会的时候,同时开启音频和视频的时候使用,其他时候禁止使用该方法
317
318
  * 切换音频和视频状态请使用 setLocalAudioEnable 和 setLocalVideoEnable
@@ -355,12 +356,13 @@ declare class BMStreamModelVM {
355
356
  brtcStreamRemoveEvent(): void;
356
357
  publishBloudStream(audio: boolean, video: boolean): Promise<void>;
357
358
  muteHandler(type: 'video' | 'audio'): void;
358
- unpublishStream(isUnpubRTC?: boolean): Promise<void>;
359
+ unpublishStream(release?: boolean): Promise<void>;
359
360
  /**
360
361
  * 更改音视频状态或者取消发布
361
362
  * @param type 更改类型
362
363
  * @param mute 是否取消发布
363
364
  * @param localModel 本地的streamModel
365
+ * @param release 是否释放音频流,默认false
364
366
  * @private
365
367
  */
366
368
  private muteOrUnpublishStream;
@@ -2044,8 +2046,9 @@ declare class BMRoom {
2044
2046
  /**
2045
2047
  * 开关本地麦克风
2046
2048
  * @param status true:开,false:关
2049
+ * @param release 关闭之后,是否释放音频资源
2047
2050
  */
2048
- setLocalAudioEnable(status: boolean): Promise<void>;
2051
+ setLocalAudioEnable(status: boolean, release?: boolean): Promise<undefined>;
2049
2052
  /**
2050
2053
  * 开关本地麦克风
2051
2054
  * @param status true:开,false:关
package/dist/index.d.ts CHANGED
@@ -306,12 +306,13 @@ declare class BMStreamModelVM {
306
306
  /**
307
307
  * brtc流更新状态失败,这个时候重新推流
308
308
  */
309
- handleStreamUpdateFailed(): Promise<void>;
309
+ handleStreamUpdateFailed(release?: boolean): Promise<void>;
310
310
  /**
311
311
  * 开关本地麦克风
312
312
  * @param status true:开,false:关
313
+ * @param release 是否释放音频流,默认false
313
314
  */
314
- setLocalAudioEnable(status: boolean): Promise<undefined>;
315
+ setLocalAudioEnable(status: boolean, release?: boolean): Promise<undefined>;
315
316
  /**
316
317
  * 该方法只是在入会的时候,同时开启音频和视频的时候使用,其他时候禁止使用该方法
317
318
  * 切换音频和视频状态请使用 setLocalAudioEnable 和 setLocalVideoEnable
@@ -355,12 +356,13 @@ declare class BMStreamModelVM {
355
356
  brtcStreamRemoveEvent(): void;
356
357
  publishBloudStream(audio: boolean, video: boolean): Promise<void>;
357
358
  muteHandler(type: 'video' | 'audio'): void;
358
- unpublishStream(isUnpubRTC?: boolean): Promise<void>;
359
+ unpublishStream(release?: boolean): Promise<void>;
359
360
  /**
360
361
  * 更改音视频状态或者取消发布
361
362
  * @param type 更改类型
362
363
  * @param mute 是否取消发布
363
364
  * @param localModel 本地的streamModel
365
+ * @param release 是否释放音频流,默认false
364
366
  * @private
365
367
  */
366
368
  private muteOrUnpublishStream;
@@ -2044,8 +2046,9 @@ declare class BMRoom {
2044
2046
  /**
2045
2047
  * 开关本地麦克风
2046
2048
  * @param status true:开,false:关
2049
+ * @param release 关闭之后,是否释放音频资源
2047
2050
  */
2048
- setLocalAudioEnable(status: boolean): Promise<void>;
2051
+ setLocalAudioEnable(status: boolean, release?: boolean): Promise<undefined>;
2049
2052
  /**
2050
2053
  * 开关本地麦克风
2051
2054
  * @param status true:开,false:关