Akash Patel Akash Patel - 1 year ago 259
Swift Question

How to change the speed of playing audio in AVPlayer?

I am working on AVPlayer. I am done with Pause, Play and fastForward of the playing audio stream. I want to change the playing speed of audio stream while playing. I have searched a lot, but not getting accurate direction. So, help me with this.

Answer Source

I hope i will help you, speed of play back depends upon the value for the ratevalue greater than 1.0 is faster and to slow playback use less than 1.0.