This will attach to load events of any Flowplayer and display the ads according to the settings. The properties which you need to set are:

fv_vast_conf.ads

Array of ad units to display. If the first ad fails to load (no video ad available), it continues with the next one and so on. Each item has URL and the engine – “flash” or “html5”. URL tags/macros are filled in automatically, see our Use of URL tags guide.

fv_vast_conf.autoplay

Enter array of element IDs of the Flowplayer wrapping DIVs which should auto-play. The ID must start with “wpfp_” and only the remaining part must be used in this array.