我正在使用 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
}
})