marcelocost / player

New Globo.com video player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Player 3

Build Status Dependency Status

Installing for development

Clone the project and install gulp:

npm install -g gulp

Then enter the project directory and install the dependencies:

npm install

Embedding the player

Put this on your HTML:

  <body>
    <div id="player-wrapper"></div>
    <script>
      var playerElement = document.getElementById("player-wrapper");
      var player = new WP3.Player({sources: ["http://video.globo.com/video.mp4"]});
      player.attachTo(playerElement);
    </script>
  </body>

About

New Globo.com video player

License:BSD 3-Clause "New" or "Revised" License