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

VAST xml with multiple mediafiles defaults to the last entry


Summary

The issue is that the JWPlayer, when given multiple formats for video files, is always defaulting to the last one. So even if the XML specifies an MP4 and FLV file, the player always defaults to the last media file and fails in case it's WEBM.

Repro

XML Includes WebM as last media file:
http://ad.doubleclick.net/pfadx/N7473.289800.DQNA.COM2/B8065885.108023453;sz=0x0;ord=${CACHEBUSTER};dcmt=text/xml


...
...
<MediaFiles>
<MediaFile delivery="progressive" width="424" height="240" type="video/x-flv" bitrate="280" scalable="false" maintainAspectRatio="false">
<![CDATA[
http://gcdn.2mdn.net/videoplayback/id/d10b65f0048159b5/itag/5/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3541496742/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/85DF51F68EB5DDCDF21A52F71B5CFEF311D1F095.650653A48926EBC4088F60B552801215E5CFAFFC/key/ck2/file/file.flv
]]>
</MediaFile>
<MediaFile delivery="progressive" width="636" height="360" type="video/x-flv" bitrate="610" scalable="false" maintainAspectRatio="false">
<![CDATA[
http://gcdn.2mdn.net/videoplayback/id/d10b65f0048159b5/itag/34/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3541496753/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/2B9C2E6A5C90FD3AD14638ACF14ED795EAB67767.AB2B767F2ACAA2A3750A13EFC2D6981E003F1427/key/ck2/file/file.flv
]]>
</MediaFile>
<MediaFile delivery="progressive" width="176" height="144" type="video/3gpp" bitrate="50" scalable="false" maintainAspectRatio="false">
<![CDATA[
http://gcdn.2mdn.net/videoplayback/id/d10b65f0048159b5/itag/17/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3541496742/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/73691F89212C91559B452D80AEA05C6DC37CA7BC.674B9E9A474B2753983F8B00B057DE711DAE4EE/key/ck2/file/file.3gpp
]]>
</MediaFile>
<MediaFile delivery="progressive" width="320" height="182" type="video/3gpp" bitrate="176" scalable="false" maintainAspectRatio="false">
<![CDATA[
http://gcdn.2mdn.net/videoplayback/id/d10b65f0048159b5/itag/36/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3541496744/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/8D102C3718A335524FB936CF230B043EF1C3386.3422E9E2FCE5AD384A6312B202FDCA8B8272FCAF/key/ck2/file/file.3gpp
]]>
</MediaFile>
<MediaFile delivery="progressive" width="636" height="360" type="video/mp4" bitrate="604" scalable="false" maintainAspectRatio="false">
<![CDATA[
http://gcdn.2mdn.net/videoplayback/id/d10b65f0048159b5/itag/18/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3541496750/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/90F789F00B825571E3EF352AA8D178E2140D14C3.97A01F9BB0776FE83E20D7DFCBDC0980F6E65F8E/key/ck2/file/file.mp4
]]>
</MediaFile>
<MediaFile delivery="progressive" width="636" height="360" type="video/webm" bitrate="751" scalable="false" maintainAspectRatio="false">
<![CDATA[
http://gcdn.2mdn.net/videoplayback/id/d10b65f0048159b5/itag/43/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3541496759/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/4E1DE321A5D5B3EAE7430C8D6A558A3B314B8ED3.B62935D939998686582954AE137FF3B7D91A6182/key/ck2/file/file.webm
]]>
</MediaFile>
</MediaFiles>
...



However, this XML without WebM as last mediafile works fine:

http://ad.doubleclick.net/pfadx/N7473.289800.DQNA.COM2/B8065885.107978432;sz=0x0;ord=${CACHEBUSTER};dcmt=text/xml

We often receive XML VAST Tags with FL4, MP4 and WEBM formats included.
This causes problems when WEBM is the last type in the order. This is an
old bug and we found a workaround by changing the order of the video
files, so that WEBM isn't the last type in the XML.


1 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

I just tested this tag out in our own ad tester and it pulled the flv, not the webm. I am using Flash mode.

This question has received the maximum number of answers.