-1

因此,我通常将 VAST XML 的 url 传递到plugins.ova.ads.schedule[0].server.tag.
有没有办法直接传递 VAST XML 字符串而不是它的 url?

ova: {
    url: 'flowplayer/ova.swf',
    autoPlay: true,
    "canFireEventAPICalls": true,
    debug: {
        levels: 'all, fatal, config, vast_template, vpaid, http_calls'
    },
    ads: {
        companions: {
            regions: [
                { id: "companionad300x60", "width": "300", "height": "60", "resourceType": "static" },
                { id: "companionad300x60", "width": "300", "height": "60", "resourceType": "iframe" },
                { id: "companionad728x90", "width": "728", "height": "90", "index": 0 },
                { id: "companionad728x90", "width": "728", "height": "90", "index": 1 },
                { id: "companionad300x250", "width": "300", "height": "250", "resourceType": "static" },
                { id: "companion-300x250-iframe", "width": "300", "height": "250", "index": 1 }
            ]
        },
        schedule: [
            {
                position: "pre-roll",
                server: {
                    type: "direct",
                    tag: undefined
                }
            }
        ]
    }
}

谢谢

4

1 回答 1

1

事实证明,它就像将类型更改为“注入”一样简单。

schedule: [{
   position: "pre-roll",
   server: {
      type: "inject",
         tag: xmlString
   }
}]
于 2013-11-13T13:15:16.413 回答