AudioPlayer
AudioPlayer copied to clipboard
Items in queue wrong .
When i add items to queue two items , but i call previous or next two times player can changed item.
i mean to previous function wrong
Fixed on master. Thanks for reporting this.
thx for support :)
Send a new release?
Done! 1.1.0 is up
There is still a problem, previous function is wrong, hasPrevious is wrong...
Yes, I can confirm, the issue is "open" again.
I met same problem when it comes to 2 items in queue, is there a work around?
when it comes to one item in queue, hasPrevious is wrong
Reopened the issue. I'm happy to review a PR if anyone is down to contribute otherwise I'll try to fix it soon.
var hasPreviousItem: Bool {
if !queue.isEmpty &&
(nextPosition - 1 > 0 || mode.contains(.repeat) || mode.contains(.repeatAll)) {
return true
}
return false
}
maybe should this.