Skip to content

AyubM/videojs-offset

 
 

Repository files navigation

videojs-offset

VideoJS plugin to play a segment of a video

About

A JavaScript library by Carles Galan Cladera.

See the project homepage.

Installation

Using Bower:

bower install videojs-offset

Or grab the source (minified).

Usage

Basic usage is as follows:

videojs('my-video', {
  plugins: {
    offset: {
      start: 10, //Start offset in seconds
      end: 40    //End offset in seconds
    }
  }
});

Either start and end offset are referred to original video duration.

Contributing

We'll check out your contribution if you:

  • Provide a comprehensive suite of tests for your fork.
  • Have a clear and documented rationale for your changes.
  • Package these up in a pull request.

We'll do our best to help you out with any contribution issues you may have.

License

MIT. See LICENSE.txt in this directory.

About

VideoJS plugin for play a segment of a video.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.1%
  • CSS 6.6%
  • HTML 3.3%