setLocalStreamMuted method
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 (_) {}
}