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