mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-25 12:54:08 +02:00
Added PlaybackSession
This commit is contained in:
@@ -9,9 +9,12 @@ import Foundation
|
||||
|
||||
class PlayerHandler {
|
||||
private static var player: AudioPlayer?
|
||||
// private static var item: any
|
||||
private static var session: PlaybackSession?
|
||||
|
||||
public static func setItem() {
|
||||
|
||||
public static func startPlayback(session: PlaybackSession) {
|
||||
if player != nil {
|
||||
player?.destroy()
|
||||
player = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user