This example illustrates how the ad streamer may be instructed to ignore the "duration" value in the VAST response. Instead, when the stream is loaded the duration is detected and the timing events are calculated accordingly.
The configuration for this example is:
flowplayer("a.example", "", {
playlist: [
{
url: ""
duration: 40
}
],
plugins: {
controls: {
autoHide: "always"
},
ova: {
url: "",
"debug": {
"levels": ""
},
"ads": {
"pauseOnClickThrough": true,
"setDurationFromMetaData": true,
"schedule": [
{
"zone": "5",
"position": "pre-roll",
"tag": "../../dist/templates/bad-duration/bad-linear-duration.xml"
}
]
}
}
}
});