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

JW Player 6 Ads HTML5 not working


Hello all,
I have JW Player 6.5 running perfectly using flash (ie primary: 'flash'), however when flash is disabled and HTML5 takes over the ads stop playing. The main video plays fine, the pre-inline & overlay both don't work with HTML5.

Below is the full code used for a test inline video (using openX).





<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="XXXXXXXXXXXX";</script>
</head>
<body>

<div id="container">Loading video player...</div>

<script type='text/javascript'>
jwplayer("container").setup({

width: 640,
height: 360,
file: "video001.mp4",

advertising: {
client: 'vast',
schedule: {
inline: {
offset: 'pre',
tag: 'http://openx.openvideoads.org/openx/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&zones=pre-roll0-0%3D5&nz=1&source=&r=R0.023106331005692482&block=1&format=vast&charset=UTF-8'
},
}
},

});
</script>

</body>
</html>





I have hidden the jwplayer.key.
The VAST video format is .mp4, not .flv.

Everything I read on the site says that jw player 6 ads supports HTML5 with VAST

Am I missing something?

Thanks.

6 Community Answers

JW Player

User  
1 rated :

It seems to be a tag issue.
Using the tag provided in the example section of this site, it work:
http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear

The tag URL in the 1st post is the example used in JW Player 5, however if has the exact same layout as my openX XML.
I am using openX 2.8.10 with openXVideoAds 1.8.7

Ethan Feldman

JW Player Support Agent  
0 rated :

Can I see where you are running this ?

JW Player

User  
0 rated :

We had a similar issue and managed to solved it. After 2 days of debugging, we found out that it has something to do with line breaks contained in the VAST XML.

We removed the line breaks within the "MediaFiles" element, and then it worked.

You could try to remove all the line breaks from your VAST XML - hopefully it will work then.

Ethan Feldman

JW Player Support Agent  
0 rated :

Thanks for sharing this.

JW Player

User  
0 rated :

Thanks for the comments. I found out what was wrong.
I had setup a crossdomain.xml & thought that would be sufficient. I hadn't realised that the HTML header could restrict domains.
The guide is at the bottom of this page http://www.longtailvideo.com/support/jw-player/28844/crossdomain-file-loading/

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Glad you got it, np.

This question has received the maximum number of answers.