Hi,
I work for an Ad Tech company. I am trying to embed your player with a javascript VPAID tag on our servers (or, for starters, working on my local system). Long story short: it works fine on your page (including the ad), but when I try to play it locally, the video plays but the ad is just ignored and not shown. Here’s what I get in the console:
30743062:40 kWidget: Kaltura HTML5 Version: 1.9.6
XMLHttpRequest cannot load http://cdnapi.kaltura.com/serverip. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://st.localdev.com’ is therefore not allowed access.
So, this “serverip” endpoint comes back without CORS headers. I don’t know if this is the reason for the ad to be ignored, but it’s the only hint I have.
Here is the exact VAST/VPAID tag I’m trying to run, working on your demo page:
And here is the code I’m using to try to embed locally:
Js reference:
http://cdnapi.kaltura.com/p/1995821/sp/199582100/embedIframeJs/uiconf_id/30743062/partner_id/1995821
And the embedding code:
(nodeId is just a local var that resolves to the id of the DIV which hosts the player; it does exist on the page):
mw.setConfig( 'KalturaSupport.LeadWithHTML5', true );
kWidget.embed({
targetId: nodeId,
wid: "_1995821",
uiconf_id: "30743062",
"cache_st": 1441290747,
"entry_id": "1_mftmgzsv",
flashvars: {
"vast": {
"plugin" : true,
"position" : "before",
"prerollUrl" : "http://fwstage.test-adsafeprotected.com/vast?anId=7&advId=2&campId=3&chanId=5&placementId=6&pubId=8&includeFlash=false&includeHtml5=true&fwServer=http://fwstage.test-adsafeprotected.com&originalVast=http://st1.adsafecontrol.com/video/vast3Macros.xml.php",
"numPreroll" : "1",
"prerollStartWith" : "1",
"prerollInterval" : "1",
"preSequence" : "1",
"postSequence" : "1",
"timeout" : "4",
"relativeTo" : "PlayerHolder"
},
"noticeMessage": {
"plugin" : true,
"position" : "before",
"text" : "video will start in {sequenceProxy.timeRemaining}"
},
"adsOnReplay" : true
}
});
Any help would be very much appreciated. Thanks!
Slavko
Integral Ad Science