Last active
December 22, 2015 20:39
-
-
Save giannif/6527629 to your computer and use it in GitHub Desktop.
p-js in syndication
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"> | |
var MTVNPlayer = { | |
defaultConfig : { | |
// config goes here. | |
// legacy is var config = | |
// but the player doesn't look for that... | |
mediaGen:"...." | |
} | |
}; | |
</script> | |
</head> | |
<body> | |
<!-- define a div with class MTVNPlayer --> | |
<div class="MTVNPlayer" data-auto-create> | |
<!-- include a placeholder image --> | |
<img src="http://media.mtvnservices.com/placeholder/{{uri}}" 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