Skip to content

Instantly share code, notes, and snippets.

@shaunflagg
Created September 5, 2018 16:30
Show Gist options
  • Save shaunflagg/815676bca2cfe1b534b58e80f8913b52 to your computer and use it in GitHub Desktop.
Save shaunflagg/815676bca2cfe1b534b58e80f8913b52 to your computer and use it in GitHub Desktop.
Anvato vod using AnvatoPlayer class
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>WSBTV VoD - AnvatoPlayer class</title>
<script type="application/javascript" src="//w3.cdn.anvato.net/player/prod/v3/scripts/anvload.js"></script>
</head>
<body>
<div id="p0"></div>
<script>
AnvatoPlayer("p0").init({
accessKey: "8v9BEynrwx8EFLYpgfOWcG1qJqyXKlRM",
token: " ",
width: "100%",
height: "56.25%",
mcp: "anv",
video: "4475931",
plugins: {
dfp: {
clientSide: {
adTagUrl: "https://pubads.g.doubleclick.net/gampad/ads?sz=400x300&iu=/12523293/Atlanta_TV/wsbtv_web_default/pre_roll&impl=s&gdfp_req=1&env=vp&output=xml_vast3&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]"
}
}
},
profile: "cox"
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment