setLocalStreamMuted method

Future<void> setLocalStreamMuted({
  1. required bool micMuted,
  2. required bool cameraMuted,
})

Mute/unmute what you publish to the stage (host only; no-op if not publishing).

Implementation

Future<void> setLocalStreamMuted({
  required bool micMuted,
  required bool cameraMuted,
}) async {
  if (!ivsNativeStageSupported) return;
  try {
    await _channel.invokeMethod<void>(
      'setLocalStreamMuted',
      <String, Object?>{
        'micMuted': micMuted,
        'cameraMuted': cameraMuted,
      },
    );
  } on PlatformException catch (_) {}
}