The configuration for this example is:
<script>
function dumpAdDescriptor() {
var activeAdDescriptor = $f().getPlugin('ova').getActiveAdDescriptor();
if(activeAdDescriptor != null) {
console.log(">>> ACTIVE AD DESCRIPTOR DUMP:");
console.log(activeAdDescriptor);
}
else console.log(">>> NO DESCRIPTOR AVAILABLE");
}
flowplayer("a.example", "", {
playlist: [
{
url: "",
duration: 30
}
],
plugins: {
controls: {
autoHide: "always"
},
ova: {
url: "",
"ads": {
"schedule": [
{
"position": "pre-roll",
"tag": "../../dist/templates/vpaid/vast2-linear.xml"
}
]
},
"debug": {
"levels": ""
}
}
}
});
</script>
<ul>
<li><a href="#" onclick="dumpAdDescriptor();">
Fetch Ad Descriptor and Dump to Console
</a></li>
</ul>