# LeaveChannelOptions (/zh-CN/api-reference/rtc/harmonyos/class-leavechanneloptions) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```ts export class LeaveChannelOptions { public stopAudioMixing: boolean; public stopAllEffect: boolean; public stopMicrophoneRecording: boolean; constructor() { this.stopAudioMixing = true; this.stopAllEffect = true; this.stopMicrophoneRecording = true; } } ``` ## 离开频道时,是否停止播放音乐文件及混音: - `true`:(默认)停止播放音乐文件及混音。 - `false`: 不停止播放音乐文件及混音。 离开频道时,是否停止播放音效: - `true`:(默认)停止播放音效。 - `false`: 不停止播放音效。 离开频道时,是否停止麦克风采集: - `true`:(默认)停止麦克风采集。 - `false`: 不停止麦克风采集。