AFSoundManager icon indicating copy to clipboard operation
AFSoundManager copied to clipboard

fetchInfoForCurrentPlaying is not implemented

Open BillHu opened this issue 10 years ago • 8 comments

hi, the fetchInfoForCurrentPlaying method is not implemented

BillHu avatar Nov 27 '14 07:11 BillHu

same problem here

pballada avatar Jan 09 '15 11:01 pballada

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

swaroopbutala avatar Jan 16 '15 08:01 swaroopbutala

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!

JaviLorbada avatar Jan 19 '15 12:01 JaviLorbada

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

AlvaroFranco avatar Jan 19 '15 18:01 AlvaroFranco

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

AlvaroFranco avatar Jan 19 '15 18:01 AlvaroFranco

Hi Alvaro,

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

jayjayesh avatar Jan 26 '15 13:01 jayjayesh

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.

AlvaroFranco avatar Jan 29 '15 19:01 AlvaroFranco

how to handle intrruption.

cloudjanak avatar Dec 18 '15 10:12 cloudjanak