muteAllAudio method

  1. @override
Future<String> muteAllAudio(
  1. bool allowUnmute
)

Mute all user's audio except my self. allowUnmute = true means allow the user unmute themself, otherwise false.
Return ZoomVideoSDKError_Success if the function succeeds. Otherwise, this function returns an error.

Implementation

@override
Future<String> muteAllAudio(bool allowUnmute) async {
  var params = <String, dynamic>{};
  params.putIfAbsent("allowUnmute", () => allowUnmute);

  return await methodChannel
      .invokeMethod<String>('muteAllAudio', params)
      .then<String>((String? value) => value ?? "");
}