1

Closed

HttpClient improperly implemented in the WP8 version (VAST ads not working)

description

We're developing apps for WP8 and Win8, both in C#. We have in both apps Trailer page with PrerollAdvertisement using online VAST xml from our Ad provider. It works fine on Win8, but nothing is shown in WP8. After investigating source code of the Media Player Platform I found the bug in the usage of HttpClient. In Windows 8 default HttpClient is used together with header and useragent setting. In WP8 only primitive wrapper over HttpWebRequest is used.

There are two possible solutions: Include headers and user agents in the WP8 version as well or use the "HTTP Client Libraries" from NuGet instead of the primitive wrapper.
http://nuget.org/packages/Microsoft.Net.Http

Exact place of the bug:
Microsoft.PlayerFramework.Advertising.Extensions.DownloadStreamAsync
Closed Jun 27, 2013 at 2:49 AM by timgreenfield
Released in v1.3

comments

timgreenfield wrote May 3, 2013 at 5:51 PM

Thank you for your feedback, I just checked in a change to support this. This will be included with our next release, however you can easily rebuild against the latest source yourself.

Learn more about how to create a new private build with this change.