Skip to content

Instantly share code, notes, and snippets.

@shaunflagg
Created September 17, 2018 16:44
Show Gist options
  • Save shaunflagg/96b15f11eefbbab0b6187e6d2ad5da3e to your computer and use it in GitHub Desktop.
Save shaunflagg/96b15f11eefbbab0b6187e6d2ad5da3e to your computer and use it in GitHub Desktop.
Anvato live using class init
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>WSBTV Live using Anvato class init</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", // anvato wsbtv/global lakana web player
token: " ",
width: "100%", // use pixels or percents
height: "56.25%",
mcp: "cox", // mcp id cox or anv
profile: "cox",
video: "c279", // wsbtv main news channel (non-monetized)
plugins: {
dfp: {
clientSide: {
adTagUrl: "//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]"
}
},
comscore: {
clientId: 6035944
},
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment