VMAP AdTagUri doesn't seems to work

Topics: Windows 10 UWP
Sep 14, 2015 at 12:33 PM

We are using google VMAP in our solution (UWP WinJS) that return this:
<?xml version="1.0" encoding="UTF-8"?>
<vmap:VMAP version="1.0" xmlns:vmap="http://www.iab.net/videosuite/vmap">
<vmap:AdBreak breakId="preroll" breakType="linear" timeOffset="start">
-<vmap:AdSource followRedirects="true" allowMultipleAds="false" id="preroll-ad-1">
-<vmap:AdTagURI templateType="vast3">

And it doesn't work (infinite loading and no other call after this from Fiddler).
We noticed that contrary to the provided sample this vmap contain link to vast file (adTagUri) when your sample use embedded vast.

Is it an unsupported scenario?

Sep 15, 2015 at 1:18 AM

After checking the code, in vmapFactory.cs line 60 I can see this code :
if (vmapXml.Name != ns + "VMAP") throw new ArgumentException("Invalid VMAP xml", "vmapXml");
Where ns = static XNamespace ns = "http://www.iab.net/vmap-1.0";
--> this link return 404

So Google is using the http://www.iab.net/videosuite/vmap (this link works) so that why I can gues our vmap doesn't work.

So this code raise exception when the namespace doesn't match with a hardcoded one. I assume it was made to be sure the vmap is supported, however since it is raising an exception, better to raise exception trying to deserialize any kind of vmap and don't do those tests.

I wasn't able to compile the project (1800 error like System.String not found) I tried to search on the web with no luck, I'm missing one dependency for sure but can't find which one.

I'm including this player in a UWP solution that will be used by big national broadcaster or VOD company, we already worked with HBO, WWE, Netflix and all main broadcaster/vod in the world, it will be great to have some support on that.

Sep 15, 2015 at 5:00 AM
Hi Again,

I was able to compile finally,
here a proposal to enable google DFP or other supported vmap :

in vmapFactory.cs line 60 I can see this code :
if (vmapXml.Name != ns + "VMAP") throw new ArgumentException("Invalid VMAP xml", "vmapXml");

//if (vmapXml.Name != ns + "VMAP") throw new ArgumentException("Invalid VMAP xml", "vmapXml");
ns = vmapXml.Name.NamespaceName;

This solution will work with any supported vmap 1.0 format.

Sep 15, 2015 at 6:34 PM
Not sure about this one. The VMAP spec states:

"Because VMAP wraps VAST XML-formatted ad responses, the dual XML document structure requires the use of an XML namespace in the VMAP response. For brevity, this guideline excludes the namespace in its examples, but VMAP should use the namespace URI: http://www.iab.net/videosuite/vmap with a prefix of “vmap” in front of each element name"
Sep 16, 2015 at 5:11 AM
Yes that's the point, in the current playerframework library the hardcoded namespace is http://www.iab.net/vmap-1.0 not the vsuite one's so basically cannot handle the standard vamp. But.I can guess they updated the name space. So 2 way to fix it, you can change the hardcoded namespace by the suite one's or use my 'dynamic' solution which will work if they update the namespace again. Worth case it will raise an exception...but it is the actual behavior if the name space is different.
Sep 16, 2015 at 3:59 PM
Sorry completely misread your second post. You are correct. This does need to change. We'll get it in the next release.
Oct 7, 2015 at 2:51 PM
Fixed in latest release v