muteLocalAudioMixing method
- bool mute
Mute or resume local playback of the mixing audio.
Available since: 1.9.0
Description: When calling this function to mute the local playback audio mixing, the local (publisher side) will not play the audio provided to the SDK through onAudioMixingCopyData, but the remote (player side) can still playback it Mix.
Use case: When developers need to mix their own songs, sound effects or other audio data into the publishing stream, but the mixed audio only wants to be heard by the remote player, and does not want to be playback locally, you can use this function.
Default value: When this function is not called, the default is not mute, which is false.
When to call: It needs to be called after createEngine.
Restrictions: None.
muteWhether to mute local audio mixting, true: mute, false: unmute
Implementation
Future<void> muteLocalAudioMixing(bool mute) async {
return await ZegoExpressImpl.instance.muteLocalAudioMixing(mute);
}