<commit_before># flowplayer-vpaid
VPAID 2.0 support within Flowplayer 6 HTML

**Note**: This project is a work in progress and may not fulfill all of the VPAID 2.0 spec yet.

## Behavior

1. Create a flowplayer instance like you normally would.
2. Invoke the attach method to listen for the vpaid_js event.
3. When the event is fired, a vpaid container will overlap the video when the user attempts to play the video.
4. After the vpaid container is closed/skipped/etc, it will disappear and the video will start.

## Usage

If you do not want to fire the vpaid_js event your self (because you parsed your own VAST response), consider using the [flowplayer-vast](https://github.com/mantisadnetwork/flowplayer-vast) project.

```
var vast = require('flowplayer-vpaid');

var container = document.getElementById('div');

var player = flowplayer(container);

vpaid.attach(container, player);
```

## Changelog

* 1.0.0: Initial release<commit_msg>trigger example<commit_after># flowplayer-vpaid
VPAID 2.0 support within Flowplayer 6 HTML

**Note**: This project is a work in progress and may not fulfill all of the VPAID 2.0 spec yet.

## Behavior

1. Create a flowplayer instance like you normally would.
2. Invoke the attach method to listen for the vpaid_js event.
3. When the event is fired, a vpaid container will overlap the video when the user attempts to play the video.
4. After the vpaid container is closed/skipped/etc, it will disappear and the video will start.

## Usage

If you do not want to fire the vpaid_js event your self (because you parsed your own VAST response), consider using the [flowplayer-vast](https://github.com/mantisadnetwork/flowplayer-vast) project.

```
var vast = require('flowplayer-vpaid');

var container = document.getElementById('div');

var player = flowplayer(container);

vpaid.attach(container, player);

player.trigger('vpaid_js', [{
    src: 'http://site.com/js',
    attributes: '',
    tracker: {} // should be a DMVAST.tracker instance from the vast-client-js project
}]);
```

## Changelog

* 1.0.0: Initial release
{'fraction_non_alphanumeric': 0.09302325581395349, 'fraction_numerical': 0.011627906976744186, 'mean_word_length': 4.349740932642487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '3447832', 'n_tokens_mistral': 614, 'n_tokens_neox': 591, 'n_words': 264}