AlvaroFranco / AFSoundManager

iOS audio playing (both local and streaming) and recording made easy
MIT License
807 stars 131 forks source link

fetchInfoForCurrentPlaying is not implemented #25

Open BillHu opened 9 years ago

BillHu commented 9 years ago

hi, the fetchInfoForCurrentPlaying method is not implemented

pballada commented 9 years ago

same problem here

swaroopbutala commented 9 years ago

Encountered same error,

Tried commenting the line here and it seems to have worked.. I hope there is no random side effects. https://github.com/AlvaroFranco/AFSoundManager/blob/master/Classes/AFSoundManager.m#L68

JaviLorbada commented 9 years ago

Hi Alvaro,

Regarding this error, would it be possible to merge the pull request https://github.com/AlvaroFranco/AFSoundManager/pull/22 ?

Either that, or just remove the method being called at: https://github.com/AlvaroFranco/AFSoundManager/blob/89f7cf3522b68fb22c280fbb16cb855373b784ef/Classes/AFSoundManager.m#L68

Otherwise the library is crashing when calling

[[AFSoundManager sharedManager] startPlayingLocalFileWithName:@"Example.mp3" atPath:nil withCompletionBlock:^(int percentage, CGFloat elapsedTime, CGFloat timeRemaining, NSError *error, BOOL finished) {
    if (!error) {
      //This block will be fired when the audio progress increases in 1%
    } else {
      //Handle the error
    }
  }];

With the following error:

-[AFSoundManager fetchInfoForCurrentPlaying]: unrecognized selector sent to instance...
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AFSoundManager fetchInfoForCurrentPlaying]: unrecognized selector sent to instance ...'

Thanks in advance, Cheers!

AlvaroFranco commented 9 years ago

Sorry about the issue guys. I've merged the PR and I'm going to push a new update to CocoaPods

AlvaroFranco commented 9 years ago

OK, I've pushed the 1.2.5 version to CocoaPods, so the issue should be totally fixed now

jayjayesh commented 9 years ago

Hi Alvaro,

[AFSoundManager fetchInfoForCurrentPlaying] this method only returns for local audio files , how can i fetchInfoForCurrentPlaying for Streaming Audio ?

AlvaroFranco commented 9 years ago

AFSoundManager v2 is coming really soon with great features and all this stuff fixed and improved. Stay tuned! I guess the migration will be easy.

cloudjanak commented 8 years ago

how to handle intrruption.