0

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

2 回答 2

1

我已将您的数据添加到以下示例中 - 我可以看到广告 Same code from the question http://jsfiddle.net/itayKinnrot/gtpjh3pf/

于 2015-11-17T08:23:15.853 回答
0

正如@Itay Kinnrot 所说,一切正常。问题在于预卷视频 - 它无法播放:

https://redirector.gvt1.com/videoplayback/id/8bd2c53a3e15469d/itag/18/source/gfp_video_ads/requiressl/yes/ip/0.0.0.0/ipbits/0/expire/1447869905/sparams/ip,ipbits,expire, id,itag,来源,需要sl/signature/700D521CA3B3D0F7AAAEB146503557132ABD1192.4A9A6774B42C29531E37E4F98905AEAB415110C4/key/ck2/file/file.mp4

如果您在 Firefox 中打开 Itay 的示例,您会看到前卷播放得很好(因为在 Firefox 中加载了另一个视频)

于 2015-11-18T12:09:27.273 回答