SWF通过VAST标签的广告没有在JW播放器中播放

SWF advertisements through VAST Tag not played in JW player

本文关键字:JW 播放器 播放 VAST 通过 标签 SWF      更新时间:2024-01-30

我使用类似jwplayer的方式通过VAST标记配置Advertisement。

$(document).ready(function(){
var playerInstance = jwplayer("player1");
playerInstance.setup({
    file: 'https://d150hyw1dtprld.cloudfront.net/videos/HP_VideoTest_NoPostRoll_v2_720p.mp4',
    width: "100%",
    displaytitle: false,
    controls: false,
    primary: 'flash',
    mute:'false',
    autostart: true,
    advertising: {
          client: "vast",
          tag: 'http://ads.adaptv.advertising.com/a/h/DLhbzlB+8BBfoyyx+Qo7i7Bx_Mpt2nNJbie4rwz4DHkL4tzFA61JtQ==?cb=${cachebreaker}&pageUrl=${embeddingPageUrl}&description=${description}&duration=${duration}&id=${id}&keywords=${keywords}&title=${title}&url=${videourl}&eov=eov&width=${width}&height=${height}&videourl=${videourl}&duration=${duration}&br_i=ad&context=${context.homepage}&adap_uid=7924494155751153126'
        }
});
});

上述主权财富基金广告未播放。仅播放主视频(文件)。我该怎么修??

表示您在代码片段中链接到的广告的VAST文件似乎有问题——当我将其粘贴到谷歌的VAST检查器中时,我会收到以下错误:

(下午4:29:36)广告错误:AdError 901:VPAID创意中发生意外错误。有关详细信息,请参阅内部错误。原因:错误:错误:在广告标签响应中找不到广告

在广告中,只有一个<MediaFile>标签:

 <MediaFiles>
 <MediaFile delivery="progressive" width="400" height="300" type="application/x-shockwave-flash" apiFramework="VPAID">
 <![CDATA[
http://redir.adap.tv/redir/client/VPAIDClient.swf?adTagUrl=http%3A%2F%2Fads.adaptv.advertising.com%2Fa%2Fh%2FDLhbzlB%2B8BBfoyyx%2BQo7i7Bx_Mpt2nNJbie4rwz4DHkL4tzFA61JtQ%3D%3D%3Fcb%3D%24%7Bcachebreaker%7D%26pageUrl%3D%24%7BembeddingPageUrl%7D%26description%3D%24%7Bdescription%7D%26duration%3D%24%7Bduration%7D%26id%3D%24%7Bid%7D%26keywords%3D%24%7Bkeywords%7D%26title%3D%24%7Btitle%7D%26url%3D%24%7Bvideourl%7D%26eov%3Deov%26width%3D%24%7Bwidth%7D%26height%3D%24%7Bheight%7D%26videourl%3D%24%7Bvideourl%7D%26duration%3D%24%7Bduration%7D%26br_i%3Dad%26context%3D%24%7Bcontext.homepage%7D%26adap_uid%3D7924494155751153126%26a.cluster%3D0%26a.pvt%3D0&companionId=&cpmPassback=&placementId=266469&orgId=5047&injectCompanionDummy=&pauseOnClick=&d.vw=&d.app=
]]>
</MediaFile>
</MediaFiles>

查询参数adTagUrl的值为:

http://ads.adaptv.advertising.com/a/h/DLhbzlB+8BBfoyyx+Qo7i7Bx_Mpt2nNJbie4rwz4DHkL4tzFA61JtQ==?cb=${cachebreaker}&pageUrl=${embeddingPageUrl}&description=${description}&duration=${duration}&id=${id}&keywords=${keywords}&title=${title}&url=${videourl}&eov=eov&width=${width}&height=${height}&videourl=${videourl}&duration=${duration}&br_i=ad&context=${context.homepage}&adap_uid=7924494155751153126&a.cluster=0&a.pvt=0&companionId=&cpmPassback=&placementId=266469&orgId=5047&injectCompanionDummy=&pauseOnClick=&d.vw=&d.app=

它似乎正在循环回到与您链接到的文件相同的VAST文件。所以它实际上只是看起来您在这里有一个糟糕的VAST标记。