
Implementing Ads on Self-hosted player
According to the documentation below, we should be able to run ads
from self hosted player.
Documentation: http://support.jwplayer.com/customer/portal/articles/1434510-getting-started-with-jw-ads
I tried to make that work, but I am getting error. I am attaching the
code, with this file.
I am getting different error on chrome's console when I am making the
primary player to be "flash". Error when primary is flash: "Error
Playing Ad Tag", otherwise it is: "No Compatible Creatives".
The code is:
<html>
<head>
<script src="/jwplayer/jwplayer.js" ></script>
<script>jwplayer.key="z2AU5fmnIXE2QtpuTjOOroSsMv6FTPiwhNrYhA==";</script>
</head>
<body>
<div style="width:800px"><div id="player-1"></div></div>
<script type="text/javascript">
jwplayer("player-1").setup({
"image": "http://demo.jwplayer.com/homepage/homepage_preroll.jpg",
"file": "http://content.jwplatform.com/videos/HkauGhRi-1280.mp4",
"primary": "flash",
"advertising": {
client: "vast",
tag: "http://vast.optimatic.com/vast/getVast.aspx?id=b10gg37n3t&zone=100005&pageURL=__domain__&pageTitle=__page-url__&cb=__random-number__"
}
});
</script>
</body>
</html>