Created
April 2, 2012 18:38
-
-
Save gregorymostizky/2286176 to your computer and use it in GitHub Desktop.
PlayerV3 Embed Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
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"
And what about replace_with_player_branding_id
?
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
What is "video_embed_code"?