mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 06:14:00 +02:00
Clarify state
This commit is contained in:
@@ -462,11 +462,10 @@ class AudioPlayer: NSObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func getPlayerState() -> PlayerState {
|
public func getPlayerState() -> PlayerState {
|
||||||
// Other PlayerStates doesn't translate to player status
|
|
||||||
switch status {
|
switch status {
|
||||||
case .uninitialized:
|
case .uninitialized:
|
||||||
return PlayerState.buffering
|
return PlayerState.buffering
|
||||||
default:
|
case .paused, .playing:
|
||||||
return PlayerState.ready
|
return PlayerState.ready
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user