mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
#4096 - Various small UI tweaks and bug fixes.
This commit is contained in:
@@ -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.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user