Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including videojs-resume with all npm packages installed. Try it out:

var videojsResume = require("videojs-resume")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

videojs-resume v0.3.2

Resume playback in VideoJS

VideoJS Resume

A VideoJS plugin to resume playback of a video at the point in time it was left.

Usage

Requires Video.js 5.1.0 or greater & store.js.

Include:

  • store.js
  • videojs-resume.min.css
  • videojs-resume.min.js
  var player = videojs('example-video');
  player.Resume({
    uuid: 'UNIQUE_VIDEO_IDENTIFIER',
    playbackOffset: 5 // begin playing video this number of seconds before it otherwise would.
    title: 'Custom title of resume modal dialog',
    resumeButtonText: 'Custom resume button text',
    cancelButtonText: 'Custom cancel button text'
  });

Example

Example using Video.js 5

Support

Browser testing for this project has been graciously donated by BrowserStack.

License

Licesned Apache 2. See LICENSE file.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free