Skip to content

addyosmani/video-player

Repository files navigation

<video-player> Bower version

A Polymer video player element

Demo

Check it live!

Usage

  1. Install the component using Bower:

    $ bower install video-player --save
  2. Import Web Components' polyfill:

    <script src="bower_components/platform/platform.js"></script>
  3. Import Custom Element:

    <link rel="import" href="bower_components/video-player/dist/video-player.html">
  4. Start using it!

    <video-player></video-player>

Options

Attribute Options Default Description
width integer 320 Width of the video
height integer 240 Height of the video
theme string red Which of the built-in themes to use (red/blue/green)

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

  1. Install Bower & Grunt:

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

    $ bower install && npm install
  3. To test your project, start the development server and open http://localhost:8000.

    $ grunt
  4. Once you finish developing it, build the distribution files and publish it on Bower.

    $ grunt build
    $ bower register video-player https://github.com/you/video-player

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

About

A themeable Polymer video element

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors