Last active
August 29, 2015 13:56
-
-
Save giannif/8846860 to your computer and use it in GitHub Desktop.
p-js in syndication alternate
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> | |
<script type="text/javascript"> | |
// just like legacy HTML5, we can just put the config here as a var. | |
// if it's too tricky to do put in the scope of MTVNPlayer. | |
var config = {....}; | |
</script> | |
</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/pjs/{{uri}}"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment