因此,我通常会将VAST XML的网址传递给plugins.ova.ads.schedule[0].server.tag
有没有办法直接传递VAST XML字符串而不是网址?
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
}
}
]
}
}
由于
答案 0 :(得分:1)
事实证明,就像将类型改为“注入”一样简单。
schedule: [{
position: "pre-roll",
server: {
type: "inject",
tag: xmlString
}
}]