I'm having a problem which prevents me from playing ads on Windows 10.
I've opened the JS sample project and when I run it I see a lot of JS errors in the console saying that it can't resolve files from playerframework. Here are two of the many lines I'm seeing:
APPHOST9623: The app couldn’t resolve ms-appx://c5bb4344-dc39-4e97-8aa1-57d4e71cc40c/Microsoft.PlayerFramework.Js.Advertising/js/Advertisement.js because of this error: DATA_NOT_AVAILABLE.
APPHOST9623: The app couldn’t resolve ms-appx://c5bb4344-dc39-4e97-8aa1-57d4e71cc40c/Microsoft.PlayerFramework.Js.TimedText/js/CaptionsPlugin.js because of this error: DATA_NOT_AVAILABLE.
Despite the errors, captions still work well when trying the sample project but whenever I try to select any ad sample the application crashes:
var prerollAd = new PlayerFramework.Advertising.PrerollAdvertisement();
Unable to get property 'PrerollAdvertisement' of undefined or null reference
What am I missing to be able to play ads correctly?