Skip to content

owlcoding/SimpleAudioPlayer

Repository files navigation

SimpleAudioPlayer

SimpleAudioPlayer is a simple wrapper for AVAudioPlayer

Usage

To use it, make:

[SimpleAudioPlayer playFile:@"filename.mp3"];

or

[SimpleAudioPlayer playFile:@"filename.mp3" withCompletionBlock:^(BOOL finished) {
    NSLog(@"Finished playing");
}];

Instalation

Using CocoaPods:

Add to your Podfile

pod 'SimpleAudioPlayer' 

then run

pod update

Not using CocoaPods:

Drag the .m and .h file to your project, make sure you have the AVFoundation framework added to your project and off - you go!

About

SimpleAudioPlayer is a simple wrapper for AVAudioPlayer

Resources

License

Stars

Watchers

Forks

Packages

No packages published