<commit_before>angular-youtube-preview
=======================

This AngularJS directive retrieves & displays a preview screen shot for http://www.youtube.com videos in lieu of loading the embedded player until the user clicks the preview.


API
===

>
v *required* The video's id youtube.com/watch?v= **tuSvnhcATUE**
width *required* The width of the preview and embedded player.
height *required* The height of the preview and embedded player.
frame-key *optional* The preview you want to display. Defaults to 0.
play-icon *optional* the image path for the play icon. Defaults to no icon.<commit_msg>reduced readme to a more simpler verison<commit_after>angular-youtube-preview
=======================

This AngularJS directive retrieves & displays a preview screen shot for http://www.youtube.com videos in lieu of loading the embedded player until the user clicks the preview.

Requirements: AngularJS 1.2+



## Usage:

add the module as a dependency.

```js
angular.module('myApp', ['angularYoutubePreview'])
```

#### install via bower:
```
$ bower install angular-youtube-preview
```


## Configuration
```
<youtube-preview v="SEyNApYnmgg" width="560" height="315" frame-key="0" play-icon="img/icon-youtube-play.png"></youtube-preview>
```

>
{'fraction_non_alphanumeric': 0.14, 'fraction_numerical': 0.008, 'mean_word_length': 5.132352941176471, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1608945', 'n_tokens_mistral': 371, 'n_tokens_neox': 338, 'n_words': 135}