1. RashiMahajan's Avatar
    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];
    2009-04-15 03:13 PM
  2. Simtech's Avatar
    How many duplicate threads do you need?
    2009-04-15 03:19 PM
  3. RashiMahajan's Avatar
    I didnt get
    2009-04-15 03:20 PM
  4. Simtech's Avatar
    exactly....
    2009-04-15 03:30 PM
  5. RashiMahajan's Avatar
    What u talkin abt
    2009-04-15 03:45 PM
  6. RashiMahajan's Avatar
    REply buddies.....
    2009-04-17 08:13 AM
LINK TO POST COPIED TO CLIPBOARD