<commit_before># ng-videosharing-embed

Embed videos using AngularJS directives

[![Build Status](https://travis-ci.org/erost/ng-videosharing-embed.png?branch=master)](https://travis-ci.org/erost/ng-videosharing-embed)
***

## Purpose

A small project I've started while learning angularJS. It has no real purpose other than educational.

## Usage

### Requirements

* **AngularJS v1.0.0+** is currently required.

### Supported Video Sources

* **Youtube** (iframe)
* **Dailymotion** (iframe)
* **Vimeo** (iframe)

### Test

Generic
```html
<a href="<videoUrl>" embev-video width=xxx height=xxx [options]></a>
```

Example
```html
<a href="http://www.youtube.com/watch?v=LOKyEt36Kjc" embed-video controls=0></a>
```

Options are configured for each player, and allowed options are filtered using a whitelist.

Note: camelCase options must be changed to dash-format

## Future improvements

* Add more players
* Add support for &lt;object&gt; embedding<commit_msg>removed future improvements section, will track with issues<commit_after># ng-videosharing-embed

Embed videos using AngularJS directives

[![Build Status](https://travis-ci.org/erost/ng-videosharing-embed.png?branch=master)](https://travis-ci.org/erost/ng-videosharing-embed)
***

## Purpose

A small project I've started while learning angularJS. It has no real purpose other than educational.

## Usage

### Requirements

* **AngularJS v1.0.0+** is currently required.

### Supported Video Sources

* **Youtube** (iframe)
* **Dailymotion** (iframe)
* **Vimeo** (iframe)

### Test

Generic
```html
<a href="<videoUrl>" embev-video width=xxx height=xxx [options]></a>
```

Example
```html
<a href="http://www.youtube.com/watch?v=LOKyEt36Kjc" embed-video controls=0></a>
```

Options are configured for each player, and allowed options are filtered using a whitelist.

Note: camelCase options must be changed to dash-format
{'fraction_non_alphanumeric': 0.14679385267620562, 'fraction_numerical': 0.006359300476947536, 'mean_word_length': 5.2724252491694354, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, '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': '1803965', 'n_tokens_mistral': 649, 'n_tokens_neox': 607, 'n_words': 174}