Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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>

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

I had no problems testing this locally:

jwplayer(“player”).setup({
file: “tears.mp4”,
image: “tears.jpg”,
primary: ‘flash’,
advertising: {
client: “vast”,
schedule: {
block1: {
offset: ‘pre’,
tag: [‘http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,test’, ‘http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,test’]
},
block2: {
offset: ‘post’,
tag: [‘http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,test’, ‘http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,test’]
}
}
}
});

What exactly are you seeing?

-Cooper

This question has received the maximum number of answers.