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.
Exact place of the bug: