videojs-concurrency
Video.js plugin for supporting concurrency.
Getting Started
Include
Enable
;
Note: There are multiple ways to enable plugins. For more information, please visit Video.js.
Options
data
Type: Object
debug
Type: boolean
Default: false
error
Type: function(error)
Default: noop
Enables polling manipulation on unsuccessful concurrency request.
headers
Type: Object
idleDelay
Type: number
Default: 1000 * 60 * 30
When paused, become idle after 30 minutes.
method
Type: string
Default: GET
pollDelay
Type: number
Default: 1000 * 20
Poll every 20 seconds.
success
Type: function(response)
Default: noop
Enables polling manipulation on successful concurrency request.
url
Type: string
url: '/path/to/concurrency.server?foo=foo' url: '/path/to/concurrency.server' data: foo: 'foo'
Contributing + Example
npm install -g grunt-cli # only needed for contributing npm install npm start
Testing
karma start # single run npm test
License
Code licensed under The MIT License.