/player

New Globo.com video player

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

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>