The following example illustrates the delivery of a "progressive" ad from DART using VAST 2.0. The ad server URL is specified using the "tag" configuration property against the ad slot. Best sizing and bitrate options are also (optionally) provided to help select the right media file. If they are not provided, the first media file option is chosen. Two companion slots have also been provided - these will be filled if the companions are available in the VAST response.
To view a raw VAST 2.0 template, click here.
The configuration for this example is:
flowplayer("example", "", {
plugins: {
controls: {
autoHide: "always"
},
rtmp: {
url: ""
},
ova: {
url: "",
"debug": {
"levels": ""
},
"shows": {
"streams": [
{
"file": "",
"duration":"00:00:10"
}
]
},
"ads": {
"pauseOnClickThrough": true,
"deliveryType":"progressive",
"bestWidth": 420,
"bestHeight": 250,
"bestBitrate": 600,
"companions": [
{ "id":"companion-728x90", "width":"728", "height":"90" },
{ "id":"companion-300x250", "width":"300", "height":"250" }
],
"notice": { show: false },
"schedule": [
{
"position": "pre-roll",
"server": {
"type": "DART",
"tag": "http://ad.doubleclick.net/pfadx/N270.126913.6102203221521/
B3876671.20;dcadv=2215309;sz=0x0;pc=[TPAS_ID];ord=__timestamp__;
dcmt=text/xml"
}
}
]
}
}
}
});