Skip to content

Instantly share code, notes, and snippets.

@giannif
Last active December 22, 2015 20:39
Show Gist options
  • Save giannif/6527629 to your computer and use it in GitHub Desktop.
Save giannif/6527629 to your computer and use it in GitHub Desktop.
p-js in syndication
<!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