Akash Patel Akash Patel - 2 years ago 293
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download