faster-video
faster-video copied to clipboard
A Polymer element for <video> with playback speed controls
<faster-video>
A Polymer element for Ilya Grigorik's videospeed, adding playback speed controls to <video>
.
Maintained by Addy Osmani.
Demo
Usage
-
Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.1.4/platform.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.1.4/polymer.js"></script>
-
Import Custom Element:
<link rel="import" href="src/faster-video.html">
-
Start using it!
<faster-video></faster-video>
Setup
In order to run it locally you'll need a basic server setup.
-
Install NodeJS.
-
Install GruntJS:
$ [sudo] npm install -g grunt-cli
-
Install local dependencies:
$ npm install
-
Run a local server and open
http://localhost:8000
.$ grunt connect
Options
Attribute | Options | Default | Description |
---|---|---|---|
width |
integer | 320 |
Video width |
height |
integer | 240 |
Video height |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
For detailed changelog, check Releases.