Video.js plugin for supporting concurrency—A strategy for limiting the amount of concurrent streams a user can start.
<script src="/path/to/videojs.concurrency.min.js"></script>
videojs('player_id').concurrency({
url: '/path/to/concurrency.server',
success: function (response) {
this.poll();
}
});
Note: There are multiple ways to enable plugins. For more information, please visit Video.js.
Type: Object
Type: boolean
Default: false
Type: function(error)
Default: noop
Enables polling manipulation on unsuccessful concurrency request.
Type: Object
Type: number
Default: 1000 * 60 * 30
When paused, become idle after 30 minutes.
Type: string
Default: GET
Type: number
Default: 1000 * 20
Poll every 20 seconds.
Type: function(response)
Default: noop
Enables polling manipulation on successful concurrency request.
Type: string
{
url: '/path/to/concurrency.server?foo=foo'
}
{
url: '/path/to/concurrency.server',
data: {
foo: 'foo'
}
}
npm install -g grunt-cli # only needed for contributing
npm install
npm start
karma start
# single run
npm test
Code licensed under The MIT License.