muteSpeaker method

Future<void> muteSpeaker(
  1. bool mute
)

Mutes or unmutes the audio output speaker.

Available since: 1.1.0 Description: After mute speaker, all the SDK sounds will not play, including playing stream, mediaplayer, etc. Default value: The default is false, which means no muting. When to call: After creating the engine createEngine. Restrictions: None.

  • mute Whether to mute (disable) speaker audio output, true: mute (disable) speaker audio output, false: enable speaker audio output.

Implementation

Future<void> muteSpeaker(bool mute) async {
  return await ZegoExpressImpl.instance.muteSpeaker(mute);
}