PlayerKit icon indicating copy to clipboard operation
PlayerKit copied to clipboard

QueuePlayer notifies track change before actually changing the currentTrack

Open ivan-konov opened this issue 7 years ago • 0 comments

Hello I noticed this piece of code: case .didPlayToEndTime: notify(.didPlayToEndTime) if let _ = nextTrackIndexPath() { next() play() } else { notify(.nextPlaylistRequested) } In the listen(_ event:) function of the QueuePlayer class. So any observer of this event will check currentTrack but it is yet no changed which is not the desired behavior. Is there a specific desing decision behind this implementation?

ivan-konov avatar Feb 23 '18 23:02 ivan-konov