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>
Parent topic: HTML5 Player Programing
Documentation
- Welcome
- Backlot Getting Started Guide
- Planning and Setup Guide
- Ooyala Ingestion Guide
- Player Developer Guide
- Core Platform Developer Guide
- Discovery Developer Guide
- Content Protection Developer Guide
- Backlot API Reference
- Player API Reference
- Rights Locker API Reference
- General Reference
- Glossary
- Archive
- Release Notes
