Skip to content

Audio plays through ear speaker #1

@Ryan-Liebregts

Description

@Ryan-Liebregts

Hi,

Absolutely love your work here.

I am just wondering if there is any way to make it play through the iPhone's bottom speaker and not through the ear speaker?

Believe it relates to the way it handles the configureAudioSession()

private func configureAudioSession() {
      do {
          let audioSession = AVAudioSession.sharedInstance()
          try audioSession.setCategory(.playAndRecord, options: [.defaultToSpeaker, .allowBluetooth])
          try audioSession.setMode(.videoChat)
          try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
      } catch {
          print("Failed to configure AVAudioSession: \(error)")
      }
  }

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions