ASAudioPlayer is a simple audio player which can play audio file from remote or local links provided a NSURL.
import ASAudioPlayer
let audioPlayer = ASAudioPlayer(frame: CGRectMake(0, 50, 300, 100))
audioPlayer.setUrl(url)
self.view.addSubview(audioPlayer)
- ARC
- iOS7 or above
ASAudioPlayer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ASAudioPlayer"
An example project is included with this repo. To run the example project, clone the repo, and run pod install
from the Example directory first.
Ankit Shah, shahankit2313@gmail.com
ASAudioPlayer is available under the MIT license. See the LICENSE file for more info.