A videojs plugin for seeking to a query string specified value.
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.gitignore
.npmignore
Gruntfile.js
LICENSE.txt
README.md
package.json

README.md

Video.js Seek

A videojs plugin for seeking to a query string specified time.

Using the Plugin

Initialize the plugin as described in step 3 of the Video.js plugin wiki page.

<script src='videojs-seek.min.js'></script>

By default the plugin will look for a query string parameter named 't'. The plugin expects the value of the query string parameter to be a value in seconds.

?t=60

Options

Custom query string parameter name (JS):

videojs('id', {}, function() {
  this.seek({ 'seek_param': 'time' })
});

Custom query string parameter name (HTML):

<video data-setup='{"seek_param": "time"}'>

Release History

  • 0.1.0: Initial release