WebRTC iOS video call- speaker audio is not working on latest iOS version

151 views
Skip to first unread message

John Doe

unread,
Dec 4, 2021, 2:48:28 PM12/4/21
to discuss-webrtc

When using WebRTC video call on the latest iOS version, the loudspeaker audio isn't working, we have to listen to it on the earpiece.

Below is the code to set the loudspeaker.


do { try self.rtcAudioSession.setCategory(AVAudioSession.Category.playAndRecord.rawValue) try self.rtcAudioSession.setMode(AVAudioSession.Mode.default.rawValue) try self.rtcAudioSession.overrideOutputAudioPort(.speaker) } catch { print("error with loud speaker") }

Reply all
Reply to author
Forward
0 new messages