我正在使用kaltura播放器播放预付费广告。我在KMC http://player.kaltura.com/docs/kvast上尝试了示例广告。这是我的代码:
kWidget.embed({
targetId: "kaltura_player_1446547025",
wid: "_2027961",
uiconf_id: "32020091",
cache_st: "1446547025",
entry_id: "1_3gmgqn2e",
flashvars: {
"vast": {
"prerollUrl" : "https://pubads.g.doubleclick.net/gampad/ads?sz=640x360&iu=/6062/iab_vast_samples/skippable&ciu_szs=300x250,728x90&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&correlator=[timestamp]",
"numPreroll" : "1",
"preSequence" : "1",
"htmlCompanions" : "testCompanion:300:250;testLongCompanion:728:90;",
"timeout" : "4",
"storeSession" : false,
"skipOffset" : "5",
"unescapeAdUrls" : false
},
"skipBtn": {
"skipOffset" : "5",
"label" : "Skip Ad"
},
"noticeMessage": {
"text" : "Advertisment {sequenceProxy.timeRemaining|timeFormat}"
},
"adsOnReplay" : true
}
})
答案 0 :(得分:1)
我已将您的数据添加到以下示例中 - 我可以看到该广告
Same code from the question
http://jsfiddle.net/itayKinnrot/gtpjh3pf/
答案 1 :(得分:0)
正如@Itay Kinnrot所说,一切正常。问题在于预卷视频 - 它没有播放:
如果您在Firefox中打开Itay的示例,您会看到前滚播放正常(因为在Firefox上加载了另一个视频)