IOS 8 Swift Audio Playback Execute method on completion
It depends on how you play. Find a delegate method, notification, or observable property whose state change can trigger a KVO notification.
For example, if you are using AVAudioPlayer, it
is notified by the delegate method, which you can check here: https://developer.apple.com/library/ios/documentation/avfoundation/reference/AVAudioPlayerDelegateProtocolReference/index.html#//apple_ref/doc / uid / TP40008068
source to share