setLocalVideoMuted method

Future<void> setLocalVideoMuted(
  1. bool muted
)

Implementation

Future<void> setLocalVideoMuted(bool muted) async {
  if (!muted) {
    final videoToSend = await hasVideoToSend();
    if (!videoToSend) {
      if (remoteSDPStreamMetadata == null) return;
      await insertVideoTrackToAudioOnlyStream();
    }
  }
  localUserMediaStream?.setVideoMuted(muted);
  await updateMuteStatus();
}