Example 2.16.02 - Starting playback - Linear stream - load on demand



The configuration for this example is:


<script>
flowplayer("a.example", "", {
    playlist: [
        {
            url: "",
            duration: 30
        }
    ],

    plugins: {	    
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

			"delayAdRequestUntilPlay": true,

            "ads": {
                 "servers": [
                     {
                          "type": "OpenX",
                          "apiAddress": "",
                     }
                 ],
                 "notice": { "textStyle": "smalltext" },
                 "schedule": [
                       {
                           "zone": "5",
                           "position": "pre-roll",
                           "loadOnDemand": true
                       }
                 ]
            },

            "debug": {
                 "levels": ""
            }
        }
    }
});
</script>

<ul>
  <li><a href="#" onclick="$f().getPlugin("ova").play();">
    Start playback
  </a></li>
</ul>