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="">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="XXXXXXXXXXXX";</script>

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

<script type='text/javascript'>

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

advertising: {
client: 'vast',
schedule: {
inline: {
offset: 'pre',
tag: ''



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?


6 Community Answers

JW Player

1 rated :

It seems to be a tag issue.
Using the tag provided in the example section of this site, it work:

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

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

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


Ethan Feldman

JW Player Support Agent  
0 rated :

Glad you got it, np.

This question has received the maximum number of answers.