Last active
December 23, 2015 07:09
-
-
Save giannif/6598709 to your computer and use it in GitHub Desktop.
p-js in a brand page
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
<!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