Example: Embedding a Player

Use the code example to see how to embed a player.

The following code snippet lists the entire player embed example illustrating the new embed style.

The example is also available on github at the following location: https://gist.github.com/2286176

 
<!DOCTYPE html>
<html>

<head>
<!-- Load Ooyala Player -->
<script src='http://player.ooyala.com/v3/replace_with_player_branding_id'></script>

<!-- Load additional custom modules -->
<script src='/mymodule.js'></script>
</head>

<body>

<!-- Player Placement -->
<div id='playerwrapper' style='width:480px;height:360px;'></div>

<script>
    var videoPlayer = OO.Player.create('playerwrapper','video_embed_code', {
       // additional params go here
    });

    videoPlayer.play();
</script>

</body>

</html>

Download PDF Ooyala Developer Documentation