2.0.3 • Published 10 years ago

videojs-concurrency v2.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

videojs-concurrency

Build Status

Video.js plugin for supporting concurrency.

Getting Started

Include

<script src="/path/to/videojs.concurrency.min.js"></script>

Enable

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.

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.

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago