<commit_before>#Video Player

A lightweight framework that allows you to easily control videos using javascript.
<commit_msg>Adding usage example to readme<commit_after>#Video Player

A lightweight framework that allows you to easily play and control social network videos using the new HTML5 `<video>` tag. Videos
can be played, stopped, paused, and more all with simple html markup or with javascript. It does not depend on a css stylesheet,
although if styles are desired they are left up to you.

The library supports [Youtube](youtube.com) videos currently. More players will be added in the next few weeks.


##Usage

Suppose you have the following HTML in the DOM.

```html
<video width="640" height="360">
    <source type="video/youtube" src="http://www.youtube.com/watch?v=ye82js0sL32" />
</video>
```

To control the video with javascript all you need to do is the following:

```javascript
require(['path/to/video-player/file'], function (VideoPlayer) {
    var videoEl = document.getElementsByTagName('video')[0];

    // start a youtube video
    var player = new VideoPlayer.Youtube({
        el: videoEl
    });

    // load the video
    player.load(function () {

        // play the video
        player.play();

        // stop the video
        player.stop();

    });
});
```





{'fraction_non_alphanumeric': 0.09907834101382489, 'fraction_numerical': 0.009984639016897081, 'mean_word_length': 3.47766323024055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '6104926', 'n_tokens_mistral': 384, 'n_tokens_neox': 345, 'n_words': 152}