mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-27 10:42:43 +01:00
Fix failed playback session on initAudioSession
This commit is contained in:
1 parent
a5aae3fce8
commit
66ab402a50
1 file changed
+1
-1
@@ -332,7 +332,7 @@ class AudioPlayer: NSObject {
|
||||
|
||||
private func initAudioSession() {
|
||||
do {
|
||||
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .spokenAudio, options: [.allowAirPlay])
|
||||
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .spokenAudio)
|
||||
try AVAudioSession.sharedInstance().setActive(true)
|
||||
} catch {
|
||||
NSLog("Failed to set AVAudioSession category")
|
||||
|
||||
Reference in new issue
Block a user