1

假设我有一个用于前贴片大型视频的 VAST 广告代码。当我在浏览器中输入 VAST url 时,VAST 文档的内容包含:

...
<MediaFile delivery="progressive" width="500" height="300"
  type="application/javascript" apiFramework="VPAID">
   <![CDATA[
    http://path/to/some.js
   ]]>
</MediaFile>
...

如您所见,媒体文件是 .js 类型,而不是真正的媒体文件(例如 .mp4)

如何在我的测试页中嵌入此 VAST 代码?

我不确定将它添加到我们的播放器播放列表是否是一个好的解决方案,因为据我了解,.js 文件本身包含对播放器的引用

4

1 回答 1

0

使用 VAST 标记设置 JW 播放器时,您可以这样做 - http://support.jwplayer.com/customer/portal/articles/1431665-basic-preroll-video-ads

jwplayer('myElement').setup({
  file: 'assets/myVideo.mp4',
  primary: 'flash',
  advertising: {
    client: 'vast',
    tag: 'http://adserver.com/vastResponse.xml'
  }
});
于 2015-01-15T17:24:08.623 回答