mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-31 23:20:35 +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() {
|
private func initAudioSession() {
|
||||||
do {
|
do {
|
||||||
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .spokenAudio, options: [.allowAirPlay])
|
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .spokenAudio)
|
||||||
try AVAudioSession.sharedInstance().setActive(true)
|
try AVAudioSession.sharedInstance().setActive(true)
|
||||||
} catch {
|
} catch {
|
||||||
NSLog("Failed to set AVAudioSession category")
|
NSLog("Failed to set AVAudioSession category")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue