2.1.1 • Published 10 years ago

videojs-resumecard v2.1.1

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

videojs-resumecard

Video.js plugin for resuming playback.

Getting Started

Include

<!-- optional: default styles -->
<link href="/path/to/videojs.resumecard.min.css" rel="stylesheet">

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

Enable

videojs('player_id').resumecard({
  time: 42,
});

Note: There are multiple ways to enable plugins. For more information, please visit Video.js.

Options

className

Type: string
Default: vjs-resumecard

HTMLElement class.

id

Type: string
Default: vjs_resumecard

HTMLElement id.

preload

Type: boolean Default: false

Have the player immediately seek to time specified.

restartCallback

Type: function(event)

Enables customization for the restart event.

resumeCallback

Type: function(event)

Enables customization for the resume event.

template

Type: function(restartCallback, resumeCallback):HTMLElement

Enables HTML customization for the template. MUST return DOM Element.

time

Type: number

In seconds.

Contributing + Example

npm install -g grunt-cli # only needed for contributing

npm install

npm start

License

Code licensed under The MIT License.

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago