#4090 - Activating the shared AVAudioSession before recording or playback.

This commit is contained in:
Stefan Ceriu
2021-07-19 15:54:14 +03:00
parent a7d053e97f
commit 6b1f8f4c30
2 changed files with 2 additions and 0 deletions
@@ -97,6 +97,7 @@ class VoiceMessageAudioPlayer: NSObject {
do {
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback)
try AVAudioSession.sharedInstance().setActive(true)
} catch {
MXLog.error("Could not redirect audio playback to speakers.")
}