Skip to content

emaxsaun/speed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JW Player Speed Control

This is a small JavaScript library for use with the JW Player. It creates five dock buttons on the player to control the playback rate (HTML5 mode only). Speeds are set to 1/4, 1/2, 1, 1.5X, 2X.

Implementation:

The file speed.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="speed.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="speed.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~! :)

About

This is a small JavaScript library for use with the JW Player. It creates five dock buttons on the player to control the playback rate (HTML5 mode only).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors