Skip to content

Using the player

Gustavo Barbosa edited this page Feb 26, 2015 · 2 revisions

Add the following script on your HTML:

<head>
  <script type="text/javascript" src="http://cdn.clappr.io/latest/clappr.min.js"></script>
</head>

Now, create the player:

<body>
  <div id="player"></div>
  <script>
    var player = new Clappr.Player({source: "http://your.video/here.mp4", parentId: "#player"});
  </script>
</body>

To learn more about what options you can pass to a player instance, check the Embed Parameters section.