Skip to content

Instantly share code, notes, and snippets.

@giannif
Last active December 23, 2015 07:09
Show Gist options
  • Save giannif/6598709 to your computer and use it in GitHub Desktop.
Save giannif/6598709 to your computer and use it in GitHub Desktop.
p-js in a brand page
<!DOCTYPE html>
<html lang="en">
<head>
<title>MTVNPlayer</title>
<style>
.MTVNPlayer {
width: "100%";
height: "100%";
}
</style>
</head>
<body>
<!-- define a div with class MTVNPlayer -->
<div class="MTVNPlayer" data-auto-create>
<!-- include a placeholder image -->
<img src="{{placeholder}}" height="100%" width="100%"/>
</div>
<!-- load the player from the player service -->
<script type="text/javascript" src="http://media.mtvnservices.com/player/js/{{uri}}"></script>
<!-- if the service isn't ready, it'd look like
<script type="text/javascript" src="http://media.mtvnservices.com/player/js/0.1.0/vmap.min.js"></script>
-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment