https://github.com/abc3/videojs-vot
https://github.com/abc3/videojs-vot
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abc3/videojs-vot
- Owner: abc3
- License: other
- Created: 2021-10-25T19:03:40.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-01T17:50:55.000Z (over 3 years ago)
- Last Synced: 2025-01-11T20:44:23.921Z (5 months ago)
- Language: JavaScript
- Size: 202 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# videojs-vot
Video observability tool for videojs.
## Installation
```sh
npm install --save @vot/videojs-vot
```## Usage
To include videojs-vot on your website or web application, use any of the following methods.
### `` Tag
This is the simplest case. Get the script in whatever way you prefer and include the plugin _after_ you include [video.js][videojs], so that the `videojs` global is available.
```html
<script src="//path/to/video.min.js">var player = videojs('my-video');
player.vot();
```
### Browserify/CommonJS
When using with Browserify, install videojs-vot via npm and `require` the plugin as you would any other module.
```js
var videojs = require('video.js');// The actual plugin function is exported by this module, but it is also
// attached to the `Player.prototype`; so, there is no need to assign it
// to a variable.
require('@vot/videojs-vot');var player = videojs('my-video');
player.vot();
```### RequireJS/AMD
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and `require` the plugin as you normally would:
```js
require(['video.js', '@vot/videojs-vot'], function(videojs) {
var player = videojs('my-video');player.vot();
});
```## License
Apache-2.0. Copyright (c) abc3 <[email protected]>
[videojs]: http://videojs.com/