applyAudioSpeakerSettings method

  1. @internal
Future<void> applyAudioSpeakerSettings()

Apply audio output device settings.

Implementation

@internal
Future<void> applyAudioSpeakerSettings() async {
  if (roomOptions.defaultAudioOutputOptions.speakerOn != null) {
    if (lkPlatformIs(PlatformType.iOS) ||
        lkPlatformIs(PlatformType.android)) {
      await Hardware.instance.setSpeakerphoneOn(
          roomOptions.defaultAudioOutputOptions.speakerOn!);
    }
  }
}