setLocalVideoMuted method

Future<bool> setLocalVideoMuted(
  1. bool muted
)

Implementation

Future<bool> setLocalVideoMuted(bool muted) async {
  if (!await hasVideoDevice()) {
    return false;
  }

  if (localUserMediaStream != null) {
    localUserMediaStream!.setVideoMuted(muted);
    setTracksEnabled(localUserMediaStream!.stream!.getVideoTracks(), !muted);
  }

  for (final call in calls) {
    await call.setLocalVideoMuted(muted);
  }

  onGroupCallEvent.add(GroupCallEvent.LocalMuteStateChanged);
  return true;
}