Example 4 - A mixed RTMP and HTTP playlist

This example illustrates how to serve up a mixture of HTTP and RTMP streams (shows and ads). Zone "20" is a zone that serves all types of ads (RTMP and HTTP). This example plays a pre-roll ad (could be either HTTP or RTMP) and then a show stream (RTMP) followed by another pre-roll ad of some type and then a HTTP version of the show stream (each limited to 10 seconds).


The configuration for this example is:


flowplayer("a.example", "", {
    plugins: {
        rtmp: {
            url: ""
        },
        rtmpInstream: {
            url: ""
        },
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

            "shows": {
                "streams": [
                   {
                      "file": "",
                      "duration":"00:00:10"
                   },
                   {
                      "file": "",
                      "duration":"00:00:10"
                   }
                ]
            },

            "ads": {
                "servers": [
                    {
                       "type": "OpenX",
                       "apiAddress": ""
                    }
                ],
                "schedule": [
                   {
                      "zone": "15",
                      "position": "pre-roll"
                   }
                ]
            },

            "debug": {
                "levels": ""
            }
        }
    }
});