mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 18:15:01 +02:00
Fix failed playback session on initAudioSession
This commit is contained in:
parent
a5aae3fce8
commit
66ab402a50
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue