teodorpatras / Jukebox

Player for streaming local and remote audio files. Written in Swift.
MIT License
551 stars 122 forks source link

fix: seek method did notify delegate to early #109

Open rabrschmidt opened 5 years ago

rabrschmidt commented 5 years ago

When seeking the jukebox didn't wait for AVPlayer to finish seeking before notifying delegate. When delegate receives this message, progress is still on state before seeking.

AVPlayer offers a method with completionBlock, which is called when seeking is finished. Using this completionBlock to notify the delegate resolves some issues with seeking.