Clarify state

This commit is contained in:
Joakim Ramer 2023-02-16 23:00:33 +01:00
parent b73763a9ec
commit f4b05a3236
No known key found for this signature in database
GPG key ID: 3DD9039EF02C0573

View file

@ -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
}
}