Basics of instream playlists Configuration - Demo 7 / 8
Introduction
Since Flowplayer verion 3.1.1 you are able to configure instream playlists. These are playlists inside clip objects. The following demo shows three instream clips before, in the middle and after the main video.
Flowplayer configuration
Instream playlists are configured identically to normal playlists. They are simply placed inside a clip rather than in the root of the configuration. The duration property specifies the timing of the clip in relation to the parent video.
flowplayer("rolls", "/swf/flowplayer-3.1.5.swf", {
// the "parent" clip
clip: {
// baseUrl for both parent and instream clips
baseUrl: 'http://blip.tv/file/get',
// duration for the parent clip
duration: 10,
// instream playlist
playlist: [
// before the parent clip starts (ie. "pre-roll")
{url: 'KimAronson-TwentySeconds59483.flv', duration: 2, position: 0},
// in the middle of the parent clip (ie. "mid-roll") starting at 5 seconds
{url: 'KimAronson-TwentySeconds58192.flv', duration: 3, position: 5},
// at the end of the parent clip (ie. "post-roll")
{url: 'KimAronson-TwentySeconds63617.flv', duration: 4, position: -1}
]
}
});
Take a look at a standalone version of this demo. View its source code to get things going on your page.