dimitris-c / AudioStreaming

An AudioPlayer/Streaming library for iOS written in Swift using AVAudioEngine.
MIT License
266 stars 56 forks source link

return current seeking time as progress #9

Closed newbdez33 closed 3 years ago

newbdez33 commented 3 years ago

It's better to return current progress when user is seeking.

For example, if we want to implement a fast forward button(30s), and the user clicks on the fast forward button, the logic is

seek(player.progress + 30 seconds)

when the user clicks fast forward twice quickly, the second click will player.progress will be 0, which is incorrect. so this pr fixes the case.

Please consider :)