AVAudioPlayer has a delegate. It calls this delegate and informs it that it has completed playing the audio file through this method:
Code:
Quote:
|
audioPlayerDidFinishPlaying:successfully:
Called when a sound has finished playing.
- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag
Parameters
player
The audio player that finished playing.
flag
YES on successful completion of playback; NO if playback stopped because the system could not decode the audio data.
Discussion
This method is not called upon an audio interruption. Rather, an audio player is paused upon interruption—the sound has not finished playing.
|
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.
New app - See screenshots and details at
www.globaclock.com.
If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.