IOS 8 Swift Audio Playback Execute method on completion
1 answer
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 delegate
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
+3
source to share