AVAudioPLayer Pause method
m callin the pause meethod of the AVAudio method, but its not pausing the mp3 file on the background.
Here showing you my code......
Its really frustating me ...
Invokjing the file..
NSString *newAudioFile = [[NSBundle mainBundle] pathForResource:@"sdfsdfsdf" ofType:@"mp3"];
audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:newAudioFile] error:NULL];
[audioPlayer setDelegate:self];
[audioPlayer prepareToPlay];
[audioPlayer Play];
For pausing , m writing below lines in a function, but pause is not workin for the MP3 file ...
NSLog(@"yes");
[audioPlayer pause];
Livin the iPhone Life
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules