Skip to content

Instantly share code, notes, and snippets.

@gregorymostizky
Created April 2, 2012 18:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gregorymostizky/2286176 to your computer and use it in GitHub Desktop.
Save gregorymostizky/2286176 to your computer and use it in GitHub Desktop.
PlayerV3 Embed Example
<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', {
onCreate: function(player) {
// connect your 3rd party modules here
player.registerModule('mymodule', MyModuleFactory);
}
});
videoPlayer.play();
</script>
</body>
</html>
@AbbasAngouti
Copy link

What is "video_embed_code"?

@derikolsson
Copy link

video_embed_code is found in the following locations:

  • In Backlot: This is "Content ID" under the "Embed" tab
  • Via the API: This is an attribute of Asset, "embed_code"

@subhog
Copy link

subhog commented Jun 1, 2016

And what about replace_with_player_branding_id?

@tomstaveley
Copy link

replace_with_player_branding_id is the Player ID.
This can be found in Backlot by going to Publish > Player Branding tab > Choose your player > Discovery tab > Player ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment