unmute method

Future<bool> unmute()

Un-mutes this LocalTrack. This will re-start the sending of track data and notify the RemoteParticipant with TrackUnmutedEvent. Returns true if un-muted, false if unchanged.

Implementation

Future<bool> unmute() async {
  logger.fine('LocalTrack.unmute() muted: $muted');
  if (!muted) return false; // already un-muted
  if (!lkPlatformIs(PlatformType.windows)) {
    await restartTrack();
  }
  await enable();
  updateMuted(false, shouldSendSignal: true);
  return true;
}