All Projects → addyosmani → faster-video

addyosmani / faster-video

Licence: MIT license
A Polymer element for <video> with playback speed controls

Programming Languages

javascript
184084 projects - #8 most used programming language

<faster-video>

A Polymer element for Ilya Grigorik's videospeed, adding playback speed controls to <video>.

Maintained by Addy Osmani.

Demo

Check it live.

Usage

  1. 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>
  2. Import Custom Element:

    <link rel="import" href="src/faster-video.html">
  3. Start using it!

    <faster-video></faster-video>

Setup

In order to run it locally you'll need a basic server setup.

  1. Install NodeJS.

  2. Install GruntJS:

    $ [sudo] npm install -g grunt-cli
  3. Install local dependencies:

    $ npm install
  4. 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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

For detailed changelog, check Releases.

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].