1. RashiMahajan's Avatar
    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];
    2009-04-15 01:16 PM
  2. Simtech's Avatar
    exactly....
    2009-04-15 02:30 PM
LINK TO POST COPIED TO CLIPBOARD