/disableseek

This is a small JavaScript library for use with the JW Player. It makes the player only seekable within the time that the viewer has watched. Seeking ahead of this point will not work. Great for training videos.

Primary LanguageJavaScriptMIT LicenseMIT

JW Player Disable Seek

This is a small JavaScript library for use with the JW Player. It makes the player only seekable within the time that the viewer has watched. Seeking ahead of this point will not work. Great for training videos.

Implementation:

The file disableseek.js simply needs to be loaded unerneath the closing script tag for your JW Player embed. It is that simple. Like so:

<script type="text/javascript" src="disableseek.js"></script>

Example:

<script type="text/javascript" src="jwplayer.js"></script>
<div id="player"></div>
<script type="text/javascript">
jwplayer('player').setup({
  'width': '575',
  'height': '400',
  'file': 'video.mp4'
  'image': "video.jpg"
});
</script>
<script type="text/javascript" src="disableseek.js"></script>

The source code is available for this script. There is just a .js file for JavaScript. Publishing the JavaScipt can be simply done with any text editor. Enjoy~! :)