PlayerKit
PlayerKit copied to clipboard
QueuePlayer notifies track change before actually changing the currentTrack
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?