mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 10:04:39 +02:00
20 lines
389 B
Swift
20 lines
389 B
Swift
//
|
|
// PlayerHandler.swift
|
|
// App
|
|
//
|
|
// Created by Rasmus Krämer on 11.04.22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class PlayerHandler {
|
|
private static var player: AudioPlayer?
|
|
private static var session: PlaybackSession?
|
|
|
|
public static func startPlayback(session: PlaybackSession) {
|
|
if player != nil {
|
|
player?.destroy()
|
|
player = nil
|
|
}
|
|
}
|
|
}
|