【问题标题】:How can I embed the following VAST tag in a test page?如何在测试页中嵌入以下 VAST 代码?
【发布时间】:2016-05-16 16:41:16
【问题描述】:

假设我有一个用于前贴片大型视频的 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 文件本身包含对播放器的引用

【问题讨论】:

    标签: javascript jwplayer ads vast


    【解决方案1】:

    使用 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'
      }
    });
    

    【讨论】:

    • 它会起作用吗?即使嵌入文件是 .js 而不是媒体文件?
    猜你喜欢
    • 1970-01-01
    • 2010-09-05
    • 2012-09-09
    • 2019-08-19
    • 1970-01-01
    • 1970-01-01
    • 2011-12-13
    • 2020-04-12
    • 1970-01-01
    相关资源
    最近更新 更多