enableSpeakerPhone method

void enableSpeakerPhone(
  1. bool enable
)

Implementation

void enableSpeakerPhone(bool enable) {
  if (_localStream != null) {
    _localStream!.getAudioTracks()[0].enableSpeakerphone(enable);
  } else {
    _logger.d("Peer :: No local stream :: Unable to toggle speaker mode");
  }
}