
Player stops working if pre and post adschedule waterfall is added
I have followed documentation for 'Waterfalling in an Ad Schedule’ and am not having any success. As soon as I implement the adschedule option with both "pre" and "post", all advertising disappears and no log is created in the onAdError function. I’ve attempted implementation using the tag variable ‘fallbacks’ and have also tried this listing the xml’s as an array in the tag rather than a variable.
Here’s the docs I’ve used:
http://support.jwplayer.com/customer/portal/articles/1665150-ad-tag-waterfalling
Here is my code, help is appreciated!
<code>
<script type="text/javascript">
var fallbacks = ["http://www.url.com/to/xml1.xml","http://www.url.com/to/xml2.xml","http://www.url.com/to/xml3.xml"]
var playerInstance = jwplayer("playerID");
playerInstance.setup({
file: "http://www.url.com/to/file.mp4",
primary: 'flash',
width: '80%',
aspectratio: '16:9',
autostart: 'true',
adschedule: {
adbreak1: {
offset: "pre",
tag: fallbacks,
},
adbreak2: {
offset: "post",
tag: fallbacks,
},
},
});
</code>