Alex Rivera | Logout

How to play multiple audio files in a row with AVAudioPlayer?

Asked 2011-11-12T02:56:27.617
10

I have 5 songs in my app that I would like to play one after the other with AVAudioPlayer.

Are there any examples of this? How can I accomplish this?

Any example code would be greatly appreciated!

Thanks!

Edit
Report

1 Answer

15

AVQueuePlayer work for this situation.

AVQueuePlayer is a subclass of AVPlayer you use to play a number of items in sequence.

answered 2012-09-07T07:08:48.880

Your Answer