mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-02 09:04:40 +02:00
Add:Fallback to transcode when direct play fails, and send playback failed event to client
This commit is contained in:
parent
30d86279a5
commit
736e57fafd
7 changed files with 84 additions and 25 deletions
|
@ -84,6 +84,12 @@ class PlayerHandler {
|
|||
public static func setPlaybackSpeed(speed: Float) {
|
||||
self.player?.setPlaybackRate(speed)
|
||||
}
|
||||
public static func getPlayMethod() -> Int? {
|
||||
self.player?.getPlayMethod()
|
||||
}
|
||||
public static func getPlaybackSession() -> PlaybackSession? {
|
||||
self.player?.getPlaybackSession()
|
||||
}
|
||||
|
||||
public static func seekForward(amount: Double) {
|
||||
guard let player = player else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue