<commit_before>#DKAudioPlayer

Audio player component for iOS (both iPhone and iPad) with neat and flexible interface design. 

##GIF demo

<p align="center"><img src="https://github.com/wzbozon/DKAudioPlayer/blob/master/audioplayer.gif?raw=true"></p>

##Youtube demo
<a href="http://youtu.be/By0qU4dhHZ0">Watch</a>

##ScreenShot

<p align="center"><img src="https://github.com/wzbozon/DKAudioPlayer/blob/master/SmallScreenshot.png?raw=true"></p>

##Available to be added via CocoaPods
'''
pod DKAudioPlayer
'''

##How to use

There is a sample project of a universal app for iPhone and iPad. Player can stretch to the width of a parent View Controller.

First you create an instance of a player object: 
```
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    NSString *audioFilePath = [[NSBundle mainBundle] pathForResource:@"sample.mp3" ofType:nil];
    
    if ( audioFilePath ) {
        self.audioPlayer = [[DKAudioPlayer alloc] initWithAudioFilePath:audioFilePath parentViewController:self];
    }
}
```

Then on some action you can just show or hide the player: 
```
if (_audioPlayer.isVisible) {
	[_audioPlayer hideAnimated:YES];<commit_msg>Readme updated<commit_after>#DKAudioPlayer

Audio player component for iOS (both iPhone and iPad) with neat and flexible interface design. 

##GIF demo

<p align="center"><img src="https://github.com/wzbozon/DKAudioPlayer/blob/master/audioplayer.gif?raw=true"></p>

##Youtube demo
<a href="http://youtu.be/By0qU4dhHZ0">Watch</a>

##ScreenShot

<p align="center"><img src="https://github.com/wzbozon/DKAudioPlayer/blob/master/SmallScreenshot.png?raw=true"></p>

##Available to be added via CocoaPods
```
pod DKAudioPlayer
```

##How to use

There is a sample project of a universal app for iPhone and iPad. Player can stretch to the width of a parent View Controller.

First you create an instance of a player object: 
```
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    NSString *audioFilePath = [[NSBundle mainBundle] pathForResource:@"sample.mp3" ofType:nil];
    
    if ( audioFilePath ) {
        self.audioPlayer = [[DKAudioPlayer alloc] initWithAudioFilePath:audioFilePath parentViewController:self];
    }
}
```

Then on some action you can just show or hide the player: 
```
if (_audioPlayer.isVisible) {
	[_audioPlayer hideAnimated:YES];
{'fraction_non_alphanumeric': 0.12213079255088782, 'fraction_numerical': 0.0034647033347769596, 'mean_word_length': 4.746268656716418, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5053274', 'n_tokens_mistral': 757, 'n_tokens_neox': 722, 'n_words': 210}