LeaveChannelOptions

  • HarmonyOS

更新时间不可用

离开频道的选项。

TypeScript
export class LeaveChannelOptions {

  public stopAudioMixing: boolean;

  public stopAllEffect: boolean;

  public stopMicrophoneRecording: boolean;
  constructor() {
    this.stopAudioMixing = true;
    this.stopAllEffect = true;
    this.stopMicrophoneRecording = true;
  }
}

参数名描述
stopAudioMixing

离开频道时,是否停止播放音乐文件及混音:

  • true:(默认)停止播放音乐文件及混音。
  • false: 不停止播放音乐文件及混音。
stopAllEffect

离开频道时,是否停止播放音效:

  • true:(默认)停止播放音效。
  • false: 不停止播放音效。
stopMicrophoneRecording

离开频道时,是否停止麦克风采集:

  • true:(默认)停止麦克风采集。
  • false: 不停止麦克风采集。
表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?