#4096 - Various small UI tweaks and bug fixes.

This commit is contained in:
Stefan Ceriu
2021-06-15 15:20:42 +03:00
parent fbd03ed206
commit 1a47d4f058
5 changed files with 40 additions and 14 deletions
@@ -99,11 +99,8 @@ class VoiceMessageAudioPlayer: NSObject {
func play() {
isStopped = false
let audioSession = AVAudioSession.sharedInstance()
do {
try audioSession.setCategory(AVAudioSession.Category.playAndRecord, mode: .default, options: .defaultToSpeaker)
try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback)
} catch {
MXLog.error("Could not redirect audio playback to speakers.")
}