AudioPlayer icon indicating copy to clipboard operation
AudioPlayer copied to clipboard

Items in queue wrong .

Open paneaktae opened this issue 7 years ago • 11 comments

When i add items to queue two items , but i call previous or next two times player can changed item.

paneaktae avatar Apr 18 '17 04:04 paneaktae

i mean to previous function wrong

paneaktae avatar Apr 18 '17 05:04 paneaktae

Fixed on master. Thanks for reporting this.

delannoyk avatar Apr 30 '17 21:04 delannoyk

thx for support :)

paneaktae avatar May 02 '17 10:05 paneaktae

Send a new release?

jadsonlourenco avatar May 02 '17 11:05 jadsonlourenco

Done! 1.1.0 is up

delannoyk avatar May 03 '17 01:05 delannoyk

There is still a problem, previous function is wrong, hasPrevious is wrong...

Smiacter avatar Aug 25 '17 03:08 Smiacter

Yes, I can confirm, the issue is "open" again.

jadsonlourenco avatar Aug 25 '17 10:08 jadsonlourenco

I met same problem when it comes to 2 items in queue, is there a work around?

qky1412 avatar Jul 30 '19 01:07 qky1412

when it comes to one item in queue, hasPrevious is wrong

zyvv avatar Mar 04 '21 14:03 zyvv

Reopened the issue. I'm happy to review a PR if anyone is down to contribute otherwise I'll try to fix it soon.

delannoyk avatar Mar 04 '21 14:03 delannoyk

    var hasPreviousItem: Bool {
        if !queue.isEmpty &&
            (nextPosition - 1 > 0 || mode.contains(.repeat) || mode.contains(.repeatAll)) {
            return true
        }
        return false
    }

maybe should this.

zyvv avatar Mar 05 '21 02:03 zyvv