Detecting end of the playback in AVAudioPlayer
问题 I've got couple of short .mp3 sounds which I'm storing in the array and would like to play them consecutively. Is there any way to detect when AVAudioPlayer stopped playing so that I could call a completion handler and play next sound? I know that there is a delegate for that but I'm using Playground and SKScene. 回答1: Hellp @codddeer123, AVAudioPlayer contains AVAudioPlayerDelegte method which is called on audio playing completed. I have implemented it as extension of my class, you can do as