Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: AVAudioPLayer Pause method
is a discussion within theiPhone / iPod Touch SDK | Development Discussion
forums, a part of the3rd Party Apps For iPhone | iPod Touch
section;m callin the pause method of the AVAudiPlayer, but its not pausing the mp3 file on the background. Here showing you my code...... Its really frustating me ... Invokjing the
...-
04-15-2009, 06:13 AM #1
AVAudioPLayer Pause method
m callin the pause method of the AVAudiPlayer, 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];
-
04-15-2009, 06:19 AM #2Livin the iPhone Life
- Join Date
- Aug 2007
- Location
- LA
- Posts
- 2,387
- Thanks
- 105
- Thanked 304 Times in 276 Posts
How many duplicate threads do you need?
-
04-15-2009, 06:20 AM #3
I didnt get
-
04-15-2009, 06:30 AM #4Livin the iPhone Life
- Join Date
- Aug 2007
- Location
- LA
- Posts
- 2,387
- Thanks
- 105
- Thanked 304 Times in 276 Posts
exactly....
-
04-15-2009, 06:45 AM #5
What u talkin abt
-
04-16-2009, 11:13 PM #6
REply buddies.....




LinkBack URL
About LinkBacks
Reply With Quote