Open BillHu opened 9 years ago
same problem here
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
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!
Sorry about the issue guys. I've merged the PR and I'm going to push a new update to CocoaPods
OK, I've pushed the 1.2.5 version to CocoaPods, so the issue should be totally fixed now
Hi Alvaro,
[AFSoundManager fetchInfoForCurrentPlaying] this method only returns for local audio files , how can i fetchInfoForCurrentPlaying for Streaming Audio ?
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.
how to handle intrruption.
hi, the fetchInfoForCurrentPlaying method is not implemented