audioPlayerDidFinishPlaying not being called at end of audio

Hi,

I have implemented the AVAudioPlayerDelegate in my header file.

#import <AVFoundation/AVAudioPlayer.h>

@interface PlayAudioViewController : UIViewController<AVAudioPlayerDelegate>{
...}

I've also implemented the delegate method in the implementation file:

-(void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player succesfully:(BOOL) flag
{
if(flag == YES)
{
self.playButton.enabled = YES;
}
}

But for some reason the audioPlayerDidFinishPlaying method is not being called. I've read through the documentation and can't figure out why?

iOS 4

Posted on Dec 15, 2010 4:08 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

audioPlayerDidFinishPlaying not being called at end of audio

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.