AVAudioPlayer - playing multiple audio files, in sequence

后端 未结 5 806
忘了有多久
忘了有多久 2020-12-16 06:14

I want to play multiple MP3 files, in sequence (one after the other) , using AVAudioPlayer. I tried it, and it stops after playing the first MP3. However, if I go into deb

5条回答
  •  时光取名叫无心
    2020-12-16 06:23

    I think the AVQueuePlayer (subclass of AVPlayer) does exactly this job (play a sequence of items) since iOS 4.1 : http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVQueuePlayer_Class/Reference/Reference.html

    I didn't try it myself however but will definitely give a try to it.

提交回复
热议问题