# videojs-offset

VideoJS plugin to play a segment of a video

## About

A JavaScript library by Carles Galan Cladera.

See the [project homepage](http://cladera.github.io/videojs-offset).

## Installation

Using Bower:

    bower install videojs-offset

Or grab the [source](https://github.com/cladera/videojs-offset/blob/master/dist/videojs-offset.js) ([minified](https://github.com/cladera/videojs-offset/blob/master/dist/videojs-offset.min.js)).

## 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.

# videojs-offset

VideoJS plugin to play a segment of a video

## About

A JavaScript library by Carles Galan Cladera.

See the [project homepage](http://cladera.github.io/videojs-offset).

## Installation

Using Bower:

    bower install videojs-offset

Or grab the [source](https://github.com/cladera/videojs-offset/blob/master/dist/videojs-offset.js) ([minified](https://github.com/cladera/videojs-offset/blob/master/dist/videojs-offset.min.js)).

## Usage

Basic usage is as follows:

    videojs('my-video', {
      plugins: {
        offset: {
          start: 10, //Start offset in seconds
          end: 40,    //End offset in seconds
          restart_beginning: false //Should the video go to the beginning when it ends
        }
      }
    });

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.

Add documentation for restart beginning feature
Add documentation for restart beginning feature