fix builtInSpeaker type
This commit is contained in:
parent
409426d105
commit
a837cc0ab0
@ -201,7 +201,7 @@ protocol CallAudioServiceDelegate: class {
|
||||
|
||||
private func updateIsSpeakerphoneEnabled() {
|
||||
let value = avAudioSession.currentRoute.outputs.contains { (portDescription: AVAudioSessionPortDescription) -> Bool in
|
||||
return portDescription.portName == .builtInSpeaker
|
||||
return portDescription.portType == .builtInSpeaker
|
||||
}
|
||||
DispatchQueue.main.async {
|
||||
self.isSpeakerphoneEnabled = value
|
||||
|
||||
Loading…
Reference in New Issue
Block a user